Copter: integrate change in AC_Circle init
Removed init_loiter_target when vehicle landed. We should add some initialisation of the circle controller when landed.
This commit is contained in:
parent
94d38ee294
commit
f6676be400
@ -4,12 +4,12 @@
|
||||
* control_circle.pde - init and run calls for circle flight mode
|
||||
*/
|
||||
|
||||
// circle_init - initialise circle controller
|
||||
// circle_init - initialise circle controller flight mode
|
||||
static bool circle_init(bool ignore_checks)
|
||||
{
|
||||
if ((GPS_ok() && inertial_nav.position_ok()) || ignore_checks) {
|
||||
circle_pilot_yaw_override = false;
|
||||
circle_nav.init_center();
|
||||
circle_nav.init();
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
@ -25,7 +25,7 @@ static void circle_run()
|
||||
|
||||
// if not auto armed set throttle to zero and exit immediately
|
||||
if(!ap.auto_armed || ap.land_complete) {
|
||||
wp_nav.init_loiter_target();
|
||||
// To-Do: add some initialisation of position controllers
|
||||
attitude_control.init_targets();
|
||||
attitude_control.set_throttle_out(0, false);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user