mirror of https://github.com/ArduPilot/ardupilot
Plane: remove unused location argument to control_auto
This commit is contained in:
parent
739bc486fa
commit
9405fd6958
|
@ -57,7 +57,7 @@ void ModeAuto::update()
|
|||
uint16_t nav_cmd_id = plane.mission.get_current_nav_cmd().id;
|
||||
|
||||
if (plane.quadplane.in_vtol_auto()) {
|
||||
plane.quadplane.control_auto(plane.next_WP_loc);
|
||||
plane.quadplane.control_auto();
|
||||
} else if (nav_cmd_id == MAV_CMD_NAV_TAKEOFF ||
|
||||
(nav_cmd_id == MAV_CMD_NAV_LAND && plane.flight_stage == AP_Vehicle::FixedWing::FLIGHT_ABORT_LAND)) {
|
||||
plane.takeoff_calc_roll();
|
||||
|
|
|
@ -2387,7 +2387,7 @@ void QuadPlane::waypoint_controller(void)
|
|||
/*
|
||||
handle auto-mode when auto_state.vtol_mode is true
|
||||
*/
|
||||
void QuadPlane::control_auto(const Location &loc)
|
||||
void QuadPlane::control_auto(void)
|
||||
{
|
||||
if (!setup()) {
|
||||
return;
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
static const struct AP_Param::GroupInfo var_info2[];
|
||||
|
||||
void control_run(void);
|
||||
void control_auto(const Location &loc);
|
||||
void control_auto(void);
|
||||
bool init_mode(void);
|
||||
bool setup(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue