mirror of https://github.com/ArduPilot/ardupilot
Mount_MAVLink: fix to calc_angle_to_location params
This commit is contained in:
parent
f509dad991
commit
66ad56161b
|
@ -39,7 +39,7 @@ void AP_Mount_MAVLink::update()
|
|||
// point mount to a GPS point given by the mission planner
|
||||
case MAV_MOUNT_MODE_GPS_POINT:
|
||||
if(_frontend._ahrs.get_gps().status() >= AP_GPS::GPS_OK_FIX_2D) {
|
||||
calc_angle_to_location(_frontend.state[_instance]._roi_target, _angle_ef_target_rad, true, true);
|
||||
calc_angle_to_location(_frontend.state[_instance]._roi_target, _angle_ef_target_rad, true, false);
|
||||
send_angle_target(_angle_ef_target_rad, false);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue