19 #ifndef HOSTETHCONTROLLER_H
20 #define HOSTETHCONTROLLER_H
42 enum class ControllerAction;
58 std::string address,
int port, uint32_t period = 10,
59 uint32_t _bitsPerAxis = 7, uint8_t priority = 0);
61 void DrawUserInterface();
64 std::string controllerName;
67 std::string targetAddress;
71 virtual bool IsDataFrameReady() {
return true; };
72 virtual void CompleteDataFrameGrab(){};
75 char *dataFrameBuffer;
77 virtual void ProcessMessage(
core::Message *controllerAction){};
79 virtual std::string GetAxisDescription(
unsigned int axis);
82 unsigned int axisNumber;
86 uint32_t nativeBitsPerAxis;
88 virtual std::string GetButtonDescription(
unsigned int button);
89 virtual void GetButtonData() = 0;
91 unsigned int buttonNumber;
94 bool meaningfulDataAvailable;
100 std::string name, uint8_t priority = 0);
106 DataSender *dataSender;
108 bool ControllerInitialization();
109 bool ConnectWithTarget();
110 void SendControllerInfo();
112 void BuildDataFrame();
113 bool writeBits(uint16_t value, uint8_t valueSizeInBits,
char *buffer,
114 uint8_t offsetInBits);
120 #endif // HOSTETHCONTROLLER_H
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a mutex.
Definition: Mutex.h:29
Class encapsulating a TCP socket.
Definition: TcpSocket.h:25
Abstract class for input/ouput system.
Abstract class for a thread.
Base Class for host side remote controls that talks to target side through ethernet connection...
Definition: HostEthController.h:55
Abstract class for a thread.
Definition: Thread.h:38
Class defining a matrix.
Definition: Matrix.h:31
Class displaying a 1D plot on the ground station.
Definition: DataPlot1D.h:33
Class displaying a QTab on the ground station.
Definition: Tab.h:29
Class encapsulating a UDP socket. It assumes packets are coming from only one distant host on a given...
Definition: UdpSocket.h:31
Object(const Object *parent=NULL, std::string name="", std::string type="")
Constructor.