mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:31:35 +08:00
esc_calibration: adjust timeout when waiting for user to connect battery
to 20 seconds Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ int do_esc_calibration(orb_advert_t *mavlink_log_pub, struct actuator_armed_s* a
|
|||||||
bool batt_updated = false;
|
bool batt_updated = false;
|
||||||
bool batt_connected = true; // for safety resons assume battery is connected, will be cleared below if not the case
|
bool batt_connected = true; // for safety resons assume battery is connected, will be cleared below if not the case
|
||||||
|
|
||||||
hrt_abstime battery_connect_wait_timeout = 3_s;
|
hrt_abstime battery_connect_wait_timeout = 20_s;
|
||||||
hrt_abstime pwm_high_timeout = 3_s;
|
hrt_abstime pwm_high_timeout = 3_s;
|
||||||
hrt_abstime timeout_start = 0;
|
hrt_abstime timeout_start = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user