AP_ExternalAHRS: 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:27 -03:00 committed by Andrew Tridgell
parent 842360b5e3
commit be37f10d61
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ bool AP_ExternalAHRS::healthy(void) const
return (now - last_pkt1_ms < 40 && now - last_pkt2_ms < 500); return (now - last_pkt1_ms < 40 && now - last_pkt2_ms < 500);
} }
bool AP_ExternalAHRS::initialised(void) bool AP_ExternalAHRS::initialised(void) const
{ {
return last_pkt1_ms != 0 && last_pkt2_ms != 0; return last_pkt1_ms != 0 && last_pkt2_ms != 0;
} }

View File

@ -93,7 +93,7 @@ public:
// accessors for AP_AHRS // accessors for AP_AHRS
bool healthy(void) const; bool healthy(void) const;
bool initialised(void); bool initialised(void) const;
bool get_quaternion(Quaternion &quat); bool get_quaternion(Quaternion &quat);
bool get_origin(Location &loc); bool get_origin(Location &loc);
bool get_location(Location &loc); bool get_location(Location &loc);