mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 18:26:34 +00:00
Refactored a8 codes and added remote testing app a8_remote.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <QJsonObject>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class RemoteControl : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RemoteControl();
|
||||
~RemoteControl();
|
||||
void openNamedPipe(void);
|
||||
void run();
|
||||
|
||||
private slots:
|
||||
QJsonObject calculateTargetPosition(QJsonObject &commandObject, QJsonObject &responseObject);
|
||||
void turnToTarget(QJsonObject &commandObject);
|
||||
void zoomToTarget(QJsonObject &commandObject);
|
||||
void restoreOrientation(void);
|
||||
void restoreZoom(void);
|
||||
void whenDone(void);
|
||||
|
||||
private:
|
||||
int mFifoFdIn;
|
||||
int mFifoFdOut;
|
||||
};
|
||||
Reference in New Issue
Block a user