Files
autopilot/misc/camera/a8_remote/remoteControl.hpp
T
Nffj84 3e0841b0ca Hard coded values to target location until real values are available.
Added function for remote which AI can call.
2024-07-03 15:59:11 +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 createNamedPipe(void);
void sendData(uint16_t top, uint16_t left, uint16_t bottom, uint16_t right);
#ifdef FIFO_TEST
void startTest(void);
#endif
private:
#ifdef FIFO_TEST
float randomFloatBetween(float min, float max);
#endif
int mFifoFdIn;
int mFifoFdOut;
};