|
|
|
@ -8,7 +8,7 @@ float Mode::AutoYaw::roi_yaw()
@@ -8,7 +8,7 @@ float Mode::AutoYaw::roi_yaw()
|
|
|
|
|
roi_yaw_counter++; |
|
|
|
|
if (roi_yaw_counter >= 4) { |
|
|
|
|
roi_yaw_counter = 0; |
|
|
|
|
_roi_yaw = get_bearing_cd(copter.inertial_nav.get_position(), roi); |
|
|
|
|
_roi_yaw = get_bearing_cd(copter.inertial_nav.get_position(), roi)+27000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return _roi_yaw; |
|
|
|
|