mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 16:46:35 +00:00
Added functionality to calculate target location.
Added functionality to capture camera frame from RTSP stream. Refactored code. Fixed some minor issues.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include "defines.h"
|
||||
|
||||
struct Command {
|
||||
COMMAND_ID id;
|
||||
QByteArray command;
|
||||
QString description;
|
||||
};
|
||||
@@ -12,12 +15,13 @@ class SerialCommand {
|
||||
public:
|
||||
SerialCommand();
|
||||
~SerialCommand();
|
||||
QByteArray createByteArray(const std::initializer_list<int> &bytes);
|
||||
void printCommands(void);
|
||||
QByteArray getCommand(uint8_t number);
|
||||
void setExtraValues(uint8_t number);
|
||||
QByteArray getCommandByID(COMMAND_ID commandId);
|
||||
uint8_t getCommandCount();
|
||||
|
||||
private:
|
||||
QList<Command> mSerialCommands;
|
||||
void setExtraValues(COMMAND_ID commandId);
|
||||
QByteArray createByteArray(const std::initializer_list<int> &bytes);
|
||||
int16_t getCommandIndex(COMMAND_ID commandId);
|
||||
std::vector<Command> mSerialCommands;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user