mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Copter: move auto allows_arming in mode_auto.cpp
this should be a non-functional change
This commit is contained in:
parent
ab42bbc43f
commit
c1c9d87efe
@ -59,11 +59,6 @@ bool ModeAuto::init(bool ignore_checks)
|
||||
}
|
||||
}
|
||||
|
||||
bool ModeAuto::allows_arming(bool from_gcs) const
|
||||
{
|
||||
return (copter.g2.auto_options & (int32_t)Options::AllowArming) != 0;
|
||||
};
|
||||
|
||||
// auto_run - runs the auto controller
|
||||
// should be called at 100hz or more
|
||||
// relies on run_autopilot being called at 10hz which handles decision making and non-navigation related commands
|
||||
@ -117,6 +112,11 @@ void ModeAuto::run()
|
||||
}
|
||||
}
|
||||
|
||||
bool ModeAuto::allows_arming(bool from_gcs) const
|
||||
{
|
||||
return (copter.g2.auto_options & (int32_t)Options::AllowArming) != 0;
|
||||
};
|
||||
|
||||
// auto_loiter_start - initialises loitering in auto mode
|
||||
// returns success/failure because this can be called by exit_mission
|
||||
bool ModeAuto::loiter_start()
|
||||
|
Loading…
Reference in New Issue
Block a user