Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
throwing.h
Go to the documentation of this file.
1 /*
2  * throwing.h
3  *
4  * Created : 5/18/2019
5  * Author : n-is
6  * email : 073bex422.nischal@pcampus.edu.np
7  */
8 
9 #ifndef _THROWING_H_
10 #define _THROWING_H_
11 
12 #include "queue_custom.h"
13 
14 
16 {
17  GRIP = 0x01,
18  ACTUATE = 0x02,
19  EXTEND = 0x03,
20  PASS_GEREGE = 0x04,
21  THROW = 0x05,
22  RETRIEVE = 0x06,
23  MOVE_PLATFORM_LEFT = 0x07,
24  MOVE_PLATFORM_RIGHT = 0x08,
25  ROTATE_GEREGE = 0x09
26 };
27 
28 class Throwing
29 {
30 public:
31  Throwing(Throwing &&) = default;
32  Throwing(const Throwing &) = default;
33  Throwing &operator=(Throwing &&) = default;
34  Throwing &operator=(const Throwing &) = default;
35  ~Throwing() { }
36 
37  static Throwing& get_Instance();
38 
39  int init();
40  int write(uint8_t cmd);
41 
42 private:
43  Throwing() { }
44 };
45 
46 
47 void Throwing_Handle_TxCplt(void);
48 
49 
50 #endif
static Throwing & get_Instance()
Definition: throwing.cpp:20
Throwing & operator=(Throwing &&)=default
Throwing_Commands
Definition: throwing.h:15
int init()
Definition: throwing.cpp:27
void Throwing_Handle_TxCplt(void)
Definition: throwing.cpp:56
~Throwing()
Definition: throwing.h:35
Definition: throwing.h:28
int write(uint8_t cmd)
Definition: throwing.cpp:41
Throwing()
Definition: throwing.h:43