mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 16:30:34 +08:00
rover: constrain update steps
This commit is contained in:
committed by
chfriedrich98
parent
248f113141
commit
4a5eabb61e
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user