mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
astyle src/modules/fw_pos_control_l1
This commit is contained in:
committed by
Lorenz Meier
parent
a14c5b29ea
commit
830cb44b9c
@@ -1102,7 +1102,7 @@ void FixedwingPositionControl::get_waypoint_heading_distance(float heading, floa
|
||||
|
||||
if (flag_init) {
|
||||
// on init set previous waypoint HDG_HOLD_SET_BACK_DIST meters behind us
|
||||
waypoint_from_heading_and_distance(_global_pos.lat, _global_pos.lon, heading + 180.0f * M_DEG_TO_RAD_F ,
|
||||
waypoint_from_heading_and_distance(_global_pos.lat, _global_pos.lon, heading + 180.0f * M_DEG_TO_RAD_F,
|
||||
HDG_HOLD_SET_BACK_DIST,
|
||||
&temp_prev.lat, &temp_prev.lon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user