mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 17:44:07 +08:00
FailureDetector: increase threshold for valid current to 1A
Signed-off-by: Silvan <silvan@auterion.com>
This commit is contained in:
parent
f161a32c55
commit
f5bc0591e0
@ -394,7 +394,9 @@ void FailureDetector::updateMotorStatus(const vehicle_status_s &vehicle_status,
|
||||
}
|
||||
|
||||
// Check if ESC telemetry was available and valid at some point. This is a prerequisite for the failure detection.
|
||||
if (!(_motor_failure_esc_valid_current_mask & (1 << i_esc)) && cur_esc_report.esc_current > 0.0f) {
|
||||
static constexpr float kMinExpectedCurrent = 1.f; // we consider the current measurement valid if ever above this value
|
||||
|
||||
if (!(_motor_failure_esc_valid_current_mask & (1 << i_esc)) && cur_esc_report.esc_current > kMinExpectedCurrent) {
|
||||
_motor_failure_esc_valid_current_mask |= (1 << i_esc);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user