2016-08-01 05:44:12 -03:00
|
|
|
#include "Copter.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Init and run calls for guided_nogps flight mode
|
|
|
|
*/
|
|
|
|
|
|
|
|
// initialise guided_nogps controller
|
|
|
|
bool Copter::guided_nogps_init(bool ignore_checks)
|
|
|
|
{
|
|
|
|
// start in angle control mode
|
2016-03-21 23:13:34 -03:00
|
|
|
flightmode_guided.angle_control_start();
|
2016-08-01 05:44:12 -03:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// guided_run - runs the guided controller
|
|
|
|
// should be called at 100hz or more
|
|
|
|
void Copter::guided_nogps_run()
|
|
|
|
{
|
|
|
|
// run angle controller
|
2016-03-21 23:13:34 -03:00
|
|
|
flightmode_guided.angle_control_run();
|
2016-08-01 05:44:12 -03:00
|
|
|
}
|
|
|
|
|