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:
Silvan Fuhrer
2023-11-07 12:18:06 -05:00
committed by Thomas Stastny
parent 8741a9784d
commit a47b684fd7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.