AP_L1_Control: wrap_180_cd no longer solely returns floats

This commit is contained in:
Peter Barker 2019-09-09 18:50:53 +10:00 committed by Andrew Tridgell
parent 7c2c809b06
commit 3e9f470bfb
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ float AP_L1_Control::get_yaw()
/*
Wrap AHRS yaw sensor if in reverse - centi-degress
*/
float AP_L1_Control::get_yaw_sensor()
int32_t AP_L1_Control::get_yaw_sensor() const
{
if (_reverse) {
return wrap_180_cd(18000 + _ahrs.yaw_sensor);

View File

@ -128,5 +128,5 @@ private:
bool _reverse = false;
float get_yaw();
float get_yaw_sensor();
int32_t get_yaw_sensor() const;
};