mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 10:46:33 +00:00
Changed FIFO pipes to UDP.
This commit is contained in:
@@ -2,26 +2,11 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#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
|
||||
#define UDP_WHO_AM_I "AI"
|
||||
#define UDP_PORT 26662
|
||||
|
||||
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;
|
||||
static uint8_t sendData(uint16_t top, uint16_t left, uint16_t bottom, uint16_t right);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user