mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:56:35 +00:00
0b4b2f9f10
Commented out more things that are currently not needed.
28 lines
546 B
C++
28 lines
546 B
C++
#pragma once
|
|
|
|
#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
|
|
|
|
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;
|
|
};
|