Files
autopilot/misc/camera/a8_remote/remoteControl.hpp
T
Nffj84 0b4b2f9f10 Added sendData function call to remote main.
Commented out more things that are currently not needed.
2024-07-03 16:10:24 +03:00

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;
};