mirror of
https://github.com/okalachev/flix.git
synced 2026-06-28 05:56:44 +00:00
Revert t variable type to float instead of double
For the sake of simplicity and consistency.
This commit is contained in:
+2
-3
@@ -9,8 +9,7 @@
|
||||
|
||||
extern const int MOTOR_REAR_LEFT, MOTOR_REAR_RIGHT, MOTOR_FRONT_RIGHT, MOTOR_FRONT_LEFT;
|
||||
extern const int ACRO, STAB, AUTO;
|
||||
extern float loopRate, dt;
|
||||
extern double t;
|
||||
extern float t, dt, loopRate;
|
||||
extern uint16_t channels[16];
|
||||
extern float controlRoll, controlPitch, controlThrottle, controlYaw, controlMode;
|
||||
extern int mode;
|
||||
@@ -60,7 +59,7 @@ void print(const char* format, ...) {
|
||||
}
|
||||
|
||||
void pause(float duration) {
|
||||
double start = t;
|
||||
float start = t;
|
||||
while (t - start < duration) {
|
||||
step();
|
||||
handleInput();
|
||||
|
||||
Reference in New Issue
Block a user