mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-27 17:10:00 +08:00
UAVCAN esc: relax threshold for detecting offline escs.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
f3eafdc296
commit
ec5d36d9c7
@@ -240,7 +240,7 @@ uint8_t UavcanEscController::check_escs_status()
|
|||||||
|
|
||||||
for (int index = 0; index < esc_status_s::CONNECTED_ESC_MAX; index++) {
|
for (int index = 0; index < esc_status_s::CONNECTED_ESC_MAX; index++) {
|
||||||
|
|
||||||
if (_esc_status.esc[index].timestamp > 0 && now - _esc_status.esc[index].timestamp < 800_ms) {
|
if (_esc_status.esc[index].timestamp > 0 && now - _esc_status.esc[index].timestamp < 1200_ms) {
|
||||||
esc_status_flags |= (1 << index);
|
esc_status_flags |= (1 << index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user