AP_Mount: minor spelling fix

This commit is contained in:
Randy Mackay 2022-06-01 13:01:07 +09:00
parent 7b733da2ea
commit 9e8f000ac2

View File

@ -224,7 +224,7 @@ bool AP_Mount_Backend::calc_angle_to_location(const struct Location &target, Vec
// pan calcs // pan calcs
if (calc_pan) { if (calc_pan) {
// calc absolute heading and then onvert to vehicle relative yaw // calc absolute heading and then convert to vehicle relative yaw
angles_to_target_rad.z = atan2f(GPS_vector_x, GPS_vector_y); angles_to_target_rad.z = atan2f(GPS_vector_x, GPS_vector_y);
if (relative_pan) { if (relative_pan) {
angles_to_target_rad.z = wrap_PI(angles_to_target_rad.z - AP::ahrs().yaw); angles_to_target_rad.z = wrap_PI(angles_to_target_rad.z - AP::ahrs().yaw);