mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 10:03:33 +08:00
reduce wheel control speed scaling
This commit is contained in:
@@ -85,7 +85,8 @@ float ECL_WheelController::control_bodyrate(const struct ECL_ControlData &ctl_da
|
|||||||
speed = ctl_data.ground_speed;
|
speed = ctl_data.ground_speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
float scaler = 1.0f / speed;
|
/* only scale a certain amount with speed else the corrections get to small */
|
||||||
|
float scaler = 0.7f + 0.3f / speed;
|
||||||
|
|
||||||
/* Calculate body angular rate error */
|
/* Calculate body angular rate error */
|
||||||
_rate_error = _rate_setpoint - ctl_data.yaw_rate; //body angular rate error
|
_rate_error = _rate_setpoint - ctl_data.yaw_rate; //body angular rate error
|
||||||
|
|||||||
Reference in New Issue
Block a user