AP_L1_Control: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:29 -03:00 committed by Andrew Tridgell
parent dc6f5aec92
commit d006012cee
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ const AP_Param::GroupInfo AP_L1_Control::var_info[] = {
/*
Wrap AHRS yaw if in reverse - radians
*/
float AP_L1_Control::get_yaw()
float AP_L1_Control::get_yaw() const
{
if (_reverse) {
return wrap_PI(M_PI + _ahrs.yaw);

View File

@ -127,6 +127,6 @@ private:
AP_Float _loiter_bank_limit;
bool _reverse = false;
float get_yaw();
float get_yaw() const;
int32_t get_yaw_sensor() const;
};