Fix to restore Gimbal control after Mission with ROI

This commit is contained in:
Jason Short 2014-06-09 12:02:28 -07:00 committed by Randy Mackay
parent 810c87969c
commit a873942f73
1 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,9 @@ static void exit_mode(uint8_t old_control_mode, uint8_t new_control_mode)
if (mission.state() == AP_Mission::MISSION_RUNNING) {
mission.stop();
}
#if MOUNT == ENABLED
camera_mount.set_mode_to_default();
#endif // MOUNT == ENABLED
}
// smooth throttle transition when switching from manual to automatic flight modes