ardupilot/ArduCopter/mode_guided_nogps.cpp
murata 8644f4d76e Copter: Disable option code
Copter: Revert change

Copter: Change mistakes
2019-02-26 10:00:00 +09:00

26 lines
520 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 Copter::ModeGuidedNoGPS::init(bool ignore_checks)
{
// start in angle control mode
Copter::ModeGuided::angle_control_start();
return true;
}
// guided_run - runs the guided controller
// should be called at 100hz or more
void Copter::ModeGuidedNoGPS::run()
{
// run angle controller
Copter::ModeGuided::angle_control_run();
}
#endif