mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:41:35 +08:00
Update src/modules/mc_pos_control/MulticopterPositionControl.cpp
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
committed by
Matthias Grob
co-authored by
Mathieu Bresciani
parent
3fb4889ab9
commit
7f1bb556e9
@@ -371,7 +371,7 @@ void MulticopterPositionControl::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vehicle_local_position.heading_reset_counter != _heading_reset_counter) {
|
if (vehicle_local_position.heading_reset_counter != _heading_reset_counter) {
|
||||||
_setpoint.yaw += vehicle_local_position.delta_heading;
|
_setpoint.yaw = wrap_pi(_setpoint.yaw + vehicle_local_position.delta_heading);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user