rover: constrain update steps

This commit is contained in:
chfriedrich98
2025-08-22 11:29:48 +02:00
committed by chfriedrich98
parent 248f113141
commit 4a5eabb61e
15 changed files with 16 additions and 16 deletions
@@ -63,7 +63,7 @@ void DifferentialSpeedControl::updateSpeedControl()
const hrt_abstime timestamp_prev = _timestamp;
_timestamp = hrt_absolute_time();
const float dt = math::constrain(_timestamp - timestamp_prev, 1_ms, 5000_ms) * 1e-6f;
const float dt = math::constrain(_timestamp - timestamp_prev, 1_ms, 10_ms) * 1e-6f;
// Throttle Setpoint
if (PX4_ISFINITE(_speed_setpoint)) {