mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 21:23:33 +08:00
batteryCheck: fix comment typo hyster{i,e}sis
This commit is contained in:
committed by
Silvan Fuhrer
parent
2e66bbdfb8
commit
72ed160aa9
@@ -301,7 +301,7 @@ void BatteryChecks::rtlEstimateCheck(const Context &context, Report &reporter, f
|
|||||||
rtl_time_estimate_s rtl_time_estimate;
|
rtl_time_estimate_s rtl_time_estimate;
|
||||||
|
|
||||||
// Compare estimate of RTL time to estimate of remaining flight time
|
// Compare estimate of RTL time to estimate of remaining flight time
|
||||||
// add hysterisis: if already in the condition, only get out of it if the remaining flight time is significantly higher again
|
// add hysteresis: if already in the condition, only get out of it if the remaining flight time is significantly higher again
|
||||||
const float hysteresis_factor = reporter.failsafeFlags().battery_low_remaining_time ? 1.1f : 1.0f;
|
const float hysteresis_factor = reporter.failsafeFlags().battery_low_remaining_time ? 1.1f : 1.0f;
|
||||||
|
|
||||||
reporter.failsafeFlags().battery_low_remaining_time = _rtl_time_estimate_sub.copy(&rtl_time_estimate)
|
reporter.failsafeFlags().battery_low_remaining_time = _rtl_time_estimate_sub.copy(&rtl_time_estimate)
|
||||||
|
|||||||
Reference in New Issue
Block a user