Support MAVLink usage in simulation

This commit is contained in:
Oleg Kalachev
2024-01-31 12:10:18 +03:00
parent 4850b95029
commit f718af7f0e
9 changed files with 78 additions and 11 deletions

View File

@@ -8,6 +8,7 @@
#include "vector.h"
#include "quaternion.h"
#include "Arduino.h"
#include "wifi.h"
#define RC_CHANNELS 6
@@ -16,6 +17,8 @@
#define MOTOR_FRONT_RIGHT 2
#define MOTOR_REAR_RIGHT 1
#define WIFI_ENABLED 1
float t = NAN;
float dt;
float loopFreq;
@@ -40,6 +43,11 @@ void showTable();
bool motorsActive();
void cliTestMotor(uint8_t n);
void printRCCal();
void processMavlink();
void sendMavlink();
void sendMessage(const void *msg);
void receiveMavlink();
void handleMavlink(const void *_msg);
// mocks
void setLED(bool on) {};