11
11
12
12
enum {
13
13
IMU_TIMEOUT = (uint16_t ) (100 / 16.384 ),
14
- FLIGHTCOMPUTER_TIMOUT = (uint16_t ) ((2 * 100 ) / 16.384 ),
15
- REMOTE_TIMEOUT = (uint16_t ) (200 / 16.384 ),
14
+ FLIGHTCOMPUTER_TIMEOUT = (uint16_t ) ((2 * 100 ) / 16.384 ),
15
+ REMOTE_TIMEOUT = (uint16_t ) (100 / 16.384 ),
16
16
};
17
17
18
18
static uint8_t imu_timeout_counter ;
@@ -21,7 +21,7 @@ static uint8_t remote_timeout_counter;
21
21
22
22
void mode_handler_init (void ) {
23
23
imu_timeout_counter = IMU_TIMEOUT ;
24
- flightcomputer_timeout_counter = FLIGHTCOMPUTER_TIMOUT ;
24
+ flightcomputer_timeout_counter = FLIGHTCOMPUTER_TIMEOUT ;
25
25
remote_timeout_counter = REMOTE_TIMEOUT ;
26
26
}
27
27
@@ -60,8 +60,8 @@ mode_handler_mode_t mode_handler_handle(imu_data_t *imu_data, remote_data_t *rem
60
60
flightcomputer_timeout_counter = 0 ;
61
61
}
62
62
bool flightcomputer_active = true;
63
- if (flightcomputer_timeout_counter >= FLIGHTCOMPUTER_TIMOUT ) {
64
- flightcomputer_timeout_counter = FLIGHTCOMPUTER_TIMOUT ;
63
+ if (flightcomputer_timeout_counter >= FLIGHTCOMPUTER_TIMEOUT ) {
64
+ flightcomputer_timeout_counter = FLIGHTCOMPUTER_TIMEOUT ;
65
65
flightcomputer_active = false;
66
66
}
67
67
* flightcomputer_setpoint = flightcomputer_get_setpoint ();
0 commit comments