mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
tecs: also fix the bug in update_vehicle_state_estimates()
This commit is contained in:
parent
0f461f7f60
commit
b4b424bf7d
@ -60,7 +60,7 @@ void TECS::update_vehicle_state_estimates(float equivalent_airspeed, const float
|
||||
{
|
||||
// calculate the time lapsed since the last update
|
||||
uint64_t now = hrt_absolute_time();
|
||||
float dt = constrain((now - _state_update_timestamp) * 1.0e-6f, DT_MIN, DT_MAX);
|
||||
float dt = fmaxf((now - _state_update_timestamp) * 1e-6f, DT_MIN);
|
||||
|
||||
bool reset_altitude = false;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user