mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
676d75c391
This makes us look like Rover and Plane in terms of namespacing for the Mode classes, and removes a wart where we #include mode.h in the middle of the Mode class. This was done mechanically for the most part. I've had to remove the convenience reference for ap as part of this.
26 lines
488 B
C++
26 lines
488 B
C++
#include "Copter.h"
|
|
|
|
#if MODE_GUIDED_NOGPS_ENABLED == ENABLED
|
|
|
|
/*
|
|
* Init and run calls for guided_nogps flight mode
|
|
*/
|
|
|
|
// initialise guided_nogps controller
|
|
bool ModeGuidedNoGPS::init(bool ignore_checks)
|
|
{
|
|
// start in angle control mode
|
|
ModeGuided::angle_control_start();
|
|
return true;
|
|
}
|
|
|
|
// guided_run - runs the guided controller
|
|
// should be called at 100hz or more
|
|
void ModeGuidedNoGPS::run()
|
|
{
|
|
// run angle controller
|
|
ModeGuided::angle_control_run();
|
|
}
|
|
|
|
#endif
|