mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_ExternalAHRS: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
842360b5e3
commit
be37f10d61
@ -361,7 +361,7 @@ bool AP_ExternalAHRS::healthy(void) const
|
||||
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;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ public:
|
||||
|
||||
// accessors for AP_AHRS
|
||||
bool healthy(void) const;
|
||||
bool initialised(void);
|
||||
bool initialised(void) const;
|
||||
bool get_quaternion(Quaternion &quat);
|
||||
bool get_origin(Location &loc);
|
||||
bool get_location(Location &loc);
|
||||
|
Loading…
Reference in New Issue
Block a user