ardupilot/ArduCopter/control_guided_nogps.cpp

22 lines
500 B
C++

#include "Copter.h"
/*
* Init and run calls for guided_nogps flight mode
*/
// initialise guided_nogps controller
bool Copter::FlightMode_GUIDED_NOGPS::init(bool ignore_checks)
{
// start in angle control mode
Copter::FlightMode_GUIDED::angle_control_start();
return true;
}
// guided_run - runs the guided controller
// should be called at 100hz or more
void Copter::FlightMode_GUIDED_NOGPS::run()
{
// run angle controller
Copter::FlightMode_GUIDED::angle_control_run();
}