mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
rover_steering_control: fixed comment
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -177,7 +177,7 @@ void control_attitude(const struct vehicle_attitude_setpoint_s *att_sp, const st
|
||||
actuators->control[1] = 0.0f;
|
||||
|
||||
/*
|
||||
* Calculate roll error and apply P gain
|
||||
* Calculate yaw error and apply P gain
|
||||
*/
|
||||
float yaw_err = Eulerf(Quaternion(att->q)).psi() - Eulerf(Quaternion(att->q_d)).psi();
|
||||
actuators->control[2] = yaw_err * pp.yaw_p;
|
||||
|
||||
Reference in New Issue
Block a user