AP_L1_Control: wrap the target_bearing

This commit is contained in:
Andrew Tridgell 2014-05-21 20:20:33 +10:00
parent 9882763873
commit aba11a0634

View File

@ -67,7 +67,7 @@ int32_t AP_L1_Control::bearing_error_cd(void) const
int32_t AP_L1_Control::target_bearing_cd(void) const
{
return _target_bearing_cd;
return wrap_180_cd(_target_bearing_cd);
}
float AP_L1_Control::turn_distance(float wp_radius) const