mirror of
https://github.com/okalachev/flix.git
synced 2026-09-06 00:10:58 +00:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
+2
-2
@@ -89,7 +89,7 @@ void pause(float duration) {
|
||||
float start = t;
|
||||
while (t - start < duration) {
|
||||
step();
|
||||
handleInput();
|
||||
handleConsole();
|
||||
processMavlink();
|
||||
delay(50);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ void doCommand(String str, bool echo = false) {
|
||||
}
|
||||
}
|
||||
|
||||
void handleInput() {
|
||||
void handleConsole() {
|
||||
static bool showMotd = true;
|
||||
static String input;
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ void loop() {
|
||||
estimate();
|
||||
control();
|
||||
sendMotors();
|
||||
handleInput();
|
||||
handleConsole();
|
||||
processMavlink();
|
||||
readVoltage();
|
||||
loopLog();
|
||||
|
||||
+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();
|
||||
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
attitude.setYaw(this->model->WorldPose().Yaw());
|
||||
|
||||
control();
|
||||
handleInput();
|
||||
handleConsole();
|
||||
processMavlink();
|
||||
|
||||
applyMotorForces();
|
||||
|
||||
Reference in New Issue
Block a user