mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Landing: Leverage new nav_controller loiter radius interface
This commit is contained in:
parent
7b2da01836
commit
a0cb34db57
@ -375,9 +375,11 @@ void AP_Landing_Deepstall::build_approach_path(void)
|
|||||||
memcpy(&arc, &arc_exit, sizeof(Location));
|
memcpy(&arc, &arc_exit, sizeof(Location));
|
||||||
memcpy(&arc_entry, &arc_exit, sizeof(Location));
|
memcpy(&arc_entry, &arc_exit, sizeof(Location));
|
||||||
|
|
||||||
|
float loiter_radius = landing.nav_controller->loiter_radius(landing.aparm.loiter_radius);
|
||||||
|
|
||||||
// TODO: Support loitering on either side of the approach path
|
// TODO: Support loitering on either side of the approach path
|
||||||
location_update(arc, target_heading_deg + 90.0, landing.aparm.loiter_radius);
|
location_update(arc, target_heading_deg + 90.0, loiter_radius);
|
||||||
location_update(arc_entry, target_heading_deg + 90.0, landing.aparm.loiter_radius * 2);
|
location_update(arc_entry, target_heading_deg + 90.0, loiter_radius * 2);
|
||||||
|
|
||||||
#ifdef DEBUG_PRINTS
|
#ifdef DEBUG_PRINTS
|
||||||
// TODO: Send this information via a MAVLink packet
|
// TODO: Send this information via a MAVLink packet
|
||||||
|
Loading…
Reference in New Issue
Block a user