#pragma once #include #define FIFO_WHO_AM_I "AI" #define FIFO_TO_GIMBAL "/tmp/fifo_to_a8_gimbal" #define FIFO_FROM_GIMBAL "/tmp/fifo_from_a8_gimbal" //#define FIFO_TEST class RemoteControl { public: RemoteControl(); ~RemoteControl(); void sendData(uint16_t top, uint16_t left, uint16_t bottom, uint16_t right); #ifdef FIFO_TEST void startTest(void); #endif private: void createNamedPipe(void); #ifdef FIFO_TEST float randomFloatBetween(float min, float max); int mFifoFdIn; #endif int mFifoFdOut; };