Mount_MAVLink: fix to calc_angle_to_location params

This commit is contained in:
Randy Mackay 2015-01-15 16:49:18 +09:00 committed by Andrew Tridgell
parent f509dad991
commit 66ad56161b
1 changed files with 1 additions and 1 deletions

View File

@ -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;