mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 02:41:35 +08:00
tecs: moved trivial getter methods to header file
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -627,23 +627,3 @@ void TECS::_update_speed_height_weights()
|
||||
_SPE_weighting = constrain(2.0f - _SKE_weighting, 0.f, 1.f);
|
||||
_SKE_weighting = constrain(_SKE_weighting, 0.f, 1.f);
|
||||
}
|
||||
|
||||
float TECS::SEB()
|
||||
{
|
||||
return _SPE_estimate * _SPE_weighting - _SKE_estimate * _SKE_weighting;
|
||||
}
|
||||
|
||||
float TECS::SEB_setpoint()
|
||||
{
|
||||
return _SPE_setpoint * _SPE_weighting - _SKE_setpoint * _SKE_weighting;
|
||||
}
|
||||
|
||||
float TECS::SEB_rate()
|
||||
{
|
||||
return _SPE_rate * _SPE_weighting - _SKE_rate * _SKE_weighting;
|
||||
}
|
||||
|
||||
float TECS::SEB_rate_setpoint()
|
||||
{
|
||||
return _SPE_rate_setpoint * _SPE_weighting - _SKE_rate_setpoint * _SKE_weighting;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user