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;
|
float start = t;
|
||||||
while (t - start < duration) {
|
while (t - start < duration) {
|
||||||
step();
|
step();
|
||||||
handleInput();
|
handleConsole();
|
||||||
processMavlink();
|
processMavlink();
|
||||||
delay(50);
|
delay(50);
|
||||||
}
|
}
|
||||||
@@ -232,7 +232,7 @@ void doCommand(String str, bool echo = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleInput() {
|
void handleConsole() {
|
||||||
static bool showMotd = true;
|
static bool showMotd = true;
|
||||||
static String input;
|
static String input;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ void loop() {
|
|||||||
estimate();
|
estimate();
|
||||||
control();
|
control();
|
||||||
sendMotors();
|
sendMotors();
|
||||||
handleInput();
|
handleConsole();
|
||||||
processMavlink();
|
processMavlink();
|
||||||
readVoltage();
|
readVoltage();
|
||||||
loopLog();
|
loopLog();
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ void testMotor(int, float);
|
|||||||
void print(const char* format, ...);
|
void print(const char* format, ...);
|
||||||
void pause(float duration);
|
void pause(float duration);
|
||||||
void doCommand(String str, bool echo);
|
void doCommand(String str, bool echo);
|
||||||
void handleInput();
|
void handleConsole();
|
||||||
void setupRC();
|
void setupRC();
|
||||||
void normalizeRC();
|
void normalizeRC();
|
||||||
void calibrateRC();
|
void calibrateRC();
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public:
|
|||||||
attitude.setYaw(this->model->WorldPose().Yaw());
|
attitude.setYaw(this->model->WorldPose().Yaw());
|
||||||
|
|
||||||
control();
|
control();
|
||||||
handleInput();
|
handleConsole();
|
||||||
processMavlink();
|
processMavlink();
|
||||||
|
|
||||||
applyMotorForces();
|
applyMotorForces();
|
||||||
|
|||||||
Reference in New Issue
Block a user