Copter: land mode inits auto yaw

This commit is contained in:
Randy Mackay 2019-09-10 13:38:32 +09:00
parent 7751352a86
commit 1818360519
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ bool ModeLand::init(bool ignore_checks)
// reset flag indicating if pilot has applied roll or pitch inputs during landing
copter.ap.land_repo_active = false;
// initialise yaw
auto_yaw.set_mode(AUTO_YAW_HOLD);
return true;
}