mirror of
https://github.com/okalachev/flix.git
synced 2026-09-05 16:00:56 +00:00
Refactor the console subsystem
Rename cli.ino => console.ino. Rename handleInput => handleConsole. Separate console initialization function. Always use usb cdc by default on s3/c3 (no configuration needed).
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ void testMotor(int, float);
|
||||
void print(const char* format, ...);
|
||||
void pause(float duration);
|
||||
void doCommand(String str, bool echo);
|
||||
void handleInput();
|
||||
void handleConsole();
|
||||
void setupRC();
|
||||
void normalizeRC();
|
||||
void calibrateRC();
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "Arduino.h"
|
||||
#include "flix.h"
|
||||
|
||||
#include "cli.ino"
|
||||
#include "console.ino"
|
||||
#include "control.ino"
|
||||
#include "estimate.ino"
|
||||
#include "safety.ino"
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
attitude.setYaw(this->model->WorldPose().Yaw());
|
||||
|
||||
control();
|
||||
handleInput();
|
||||
handleConsole();
|
||||
processMavlink();
|
||||
|
||||
applyMotorForces();
|
||||
|
||||
Reference in New Issue
Block a user