AP_Mount: SToRM32 provides calc_angle_to_xxx relative_pan argument

This commit is contained in:
Randy Mackay 2022-06-17 15:57:14 +09:00
parent 57a508b037
commit 5958bced0c

View File

@ -63,7 +63,7 @@ void AP_Mount_SToRM32::update()
// point mount to a GPS point given by the mission planner
case MAV_MOUNT_MODE_GPS_POINT:
if (calc_angle_to_roi_target(_angle_ef_target_rad, true, true)) {
if (calc_angle_to_roi_target(_angle_ef_target_rad, true, true, true)) {
resend_now = true;
}
break;
@ -75,13 +75,13 @@ void AP_Mount_SToRM32::update()
}
_state._roi_target = AP::ahrs().get_home();
_state._roi_target_set = true;
if (calc_angle_to_roi_target(_angle_ef_target_rad, true, true)) {
if (calc_angle_to_roi_target(_angle_ef_target_rad, true, true, true)) {
resend_now = true;
}
break;
case MAV_MOUNT_MODE_SYSID_TARGET:
if (calc_angle_to_sysid_target(_angle_ef_target_rad, true, true)) {
if (calc_angle_to_sysid_target(_angle_ef_target_rad, true, true, true)) {
resend_now = true;
}
break;