mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Mount: minor spelling fix
This commit is contained in:
parent
7b733da2ea
commit
9e8f000ac2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user