Hard coded values to target location until real values are available.

Added function for remote which AI can call.
This commit is contained in:
Nffj84
2024-07-03 15:59:11 +03:00
parent f2dc975d9f
commit 3e0841b0ca
5 changed files with 73 additions and 20 deletions
+13 -1
View File
@@ -1,15 +1,27 @@
#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 startCommunication(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;
};