Update uuv_att_control.cpp

Modified the thruster value to be accessed from attitude setpoint message instead of parameters
This commit is contained in:
hanyang2013212
2020-06-15 16:22:28 +08:00
committed by Daniel Agar
parent 24ae8f601d
commit 4209101333

View File

@@ -235,7 +235,7 @@ void UUVAttitudeControl::control_attitude_geo(const vehicle_attitude_s &att, con
*/
// take thrust as
thrust_u = _param_direct_thrust.get();
thrust_u = _vehicle_attitude_sp.thrust_body[0];
constrain_actuator_commands(roll_u, pitch_u, yaw_u, thrust_u);
/* Geometric Controller END*/