mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Mount: Solo in sysid target sets lockedToBody
Also re-order calls in home-location mode to be consistent with other modes
This commit is contained in:
parent
e8ab4eb8b7
commit
e58d72931e
@ -73,17 +73,18 @@ void AP_Mount_SoloGimbal::update()
|
||||
break;
|
||||
|
||||
case MAV_MOUNT_MODE_HOME_LOCATION:
|
||||
_gimbal.set_lockedToBody(false);
|
||||
// constantly update the home location:
|
||||
if (!AP::ahrs().home_is_set()) {
|
||||
break;
|
||||
}
|
||||
_state._roi_target = AP::ahrs().get_home();
|
||||
_state._roi_target_set = true;
|
||||
_gimbal.set_lockedToBody(false);
|
||||
UNUSED_RESULT(calc_angle_to_roi_target(_angle_ef_target_rad, true, true, true));
|
||||
break;
|
||||
|
||||
case MAV_MOUNT_MODE_SYSID_TARGET:
|
||||
_gimbal.set_lockedToBody(false);
|
||||
UNUSED_RESULT(calc_angle_to_sysid_target(_angle_ef_target_rad, true, true, true));
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user