mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-06 04:25:18 +08:00
Sub: Move some common functions to AP_Math (NFC)
This commit is contained in:
committed by
Randy Mackay
parent
bd027e4fcb
commit
9f6342a1d1
@@ -71,7 +71,7 @@ float Sub::get_roi_yaw()
|
||||
roi_yaw_counter++;
|
||||
if (roi_yaw_counter >= 4) {
|
||||
roi_yaw_counter = 0;
|
||||
yaw_look_at_WP_bearing = pv_get_bearing_cd(inertial_nav.get_position(), roi_WP);
|
||||
yaw_look_at_WP_bearing = get_bearing_cd(inertial_nav.get_position(), roi_WP);
|
||||
}
|
||||
|
||||
return yaw_look_at_WP_bearing;
|
||||
|
||||
Reference in New Issue
Block a user