Line data Source code
1 : #include "Copter.h" 2 : 3 : #if MODE_GUIDED_NOGPS_ENABLED 4 : 5 : /* 6 : * Init and run calls for guided_nogps flight mode 7 : */ 8 : 9 : // initialise guided_nogps controller 10 2 : bool ModeGuidedNoGPS::init(bool ignore_checks) 11 : { 12 : // start in angle control mode 13 2 : ModeGuided::angle_control_start(); 14 2 : return true; 15 : } 16 : 17 : // guided_run - runs the guided controller 18 : // should be called at 100hz or more 19 1440 : void ModeGuidedNoGPS::run() 20 : { 21 : // run angle controller 22 1440 : ModeGuided::angle_control_run(); 23 1440 : } 24 : 25 : #endif