mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 05:23:34 +08:00
tecs_status.msg: directly add underspeed ratio to msg instead of boolean
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Thomas Stastny
parent
8741a9784d
commit
a47b684fd7
@@ -646,7 +646,7 @@ public:
|
||||
float get_throttle_setpoint() {return _control.getThrottleSetpoint();}
|
||||
|
||||
uint64_t timestamp() { return _update_timestamp; }
|
||||
bool underspeed_detected() { return _control.getRatioUndersped() > 0.f; }
|
||||
float get_underspeed_ratio() { return _control.getRatioUndersped(); }
|
||||
|
||||
private:
|
||||
TECSControl _control; ///< Control submodule.
|
||||
|
||||
Reference in New Issue
Block a user