mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Support MAVLink usage in simulation
This commit is contained in:
@@ -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) {};
|
||||
|
Reference in New Issue
Block a user