mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Do not integrate steering input
This commit is contained in:
parent
840d76ef5f
commit
62f0fafe29
@ -431,8 +431,11 @@ RoverPositionControl::control_rates(const vehicle_angular_velocity_s &rates, con
|
||||
const matrix::Vector3f angular_acceleration{acc.xyz};
|
||||
const matrix::Vector3f torque = _rate_control.update(vehicle_rates, rates_setpoint, angular_acceleration, dt,
|
||||
lock_integrator);
|
||||
///TODO: Handle mimimum speed constraints
|
||||
float steering_input = math::constrain(torque(2), -1.0f, 1.0f);
|
||||
|
||||
_steering_input = math::constrain(_steering_input + torque(2), -1.0f, 1.0f);
|
||||
///TODO: Add slew rate constraints
|
||||
_steering_input = steering_input;
|
||||
|
||||
_act_controls.control[actuator_controls_s::INDEX_YAW] = _steering_input;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user