mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_Beacon: added const
This commit is contained in:
parent
8813057b4c
commit
3f4c605361
@ -109,13 +109,13 @@ void AP_Beacon::init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// return true if beacon feature is enabled
|
// return true if beacon feature is enabled
|
||||||
bool AP_Beacon::enabled(void)
|
bool AP_Beacon::enabled(void) const
|
||||||
{
|
{
|
||||||
return (_type != AP_BeaconType_None);
|
return (_type != AP_BeaconType_None);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return true if sensor is basically healthy (we are receiving data)
|
// return true if sensor is basically healthy (we are receiving data)
|
||||||
bool AP_Beacon::healthy(void)
|
bool AP_Beacon::healthy(void) const
|
||||||
{
|
{
|
||||||
if (!device_ready()) {
|
if (!device_ready()) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -59,10 +59,10 @@ public:
|
|||||||
void init(void);
|
void init(void);
|
||||||
|
|
||||||
// return true if beacon feature is enabled
|
// return true if beacon feature is enabled
|
||||||
bool enabled(void);
|
bool enabled(void) const;
|
||||||
|
|
||||||
// return true if sensor is basically healthy (we are receiving data)
|
// return true if sensor is basically healthy (we are receiving data)
|
||||||
bool healthy(void);
|
bool healthy(void) const;
|
||||||
|
|
||||||
// update state of all beacons
|
// update state of all beacons
|
||||||
void update(void);
|
void update(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user