Skip to content

Commit 1fc3c02

Browse files
committed
Remote: Decrease timeout for UART/PPM remote to 0.5s
This shouldn't affect operation, but will make the reaction to a disconnect (e.g. remote moving the board out of range) significantly faster.
1 parent 0f4d44d commit 1fc3c02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/remote.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ void remote_input(Remote *remote, const Time *time, const RefloatConfig *config)
6767
switch (config->inputtilt_remote_type) {
6868
case (INPUTTILT_PPM):
6969
value = VESC_IF->get_ppm();
70-
connected = VESC_IF->get_ppm_age() < 1;
70+
connected = VESC_IF->get_ppm_age() < REMOTE_TIMEOUT;
7171
break;
7272
case (INPUTTILT_UART): {
7373
remote_state remote = VESC_IF->get_remote_state();
7474
value = remote.js_y;
75-
connected = remote.age_s < 1;
75+
connected = remote.age_s < REMOTE_TIMEOUT;
7676
break;
7777
}
7878
case (INPUTTILT_NONE):

0 commit comments

Comments
 (0)