AP_ExternalAHRS: add enabled method
This commit is contained in:
parent
f933f148ed
commit
33b09ff0cb
@ -88,6 +88,11 @@ void AP_ExternalAHRS::init(void)
|
||||
}
|
||||
}
|
||||
|
||||
bool AP_ExternalAHRS::enabled() const
|
||||
{
|
||||
return DevType(devtype) != DevType::None;
|
||||
}
|
||||
|
||||
// get serial port number for the uart, or -1 if not applicable
|
||||
int8_t AP_ExternalAHRS::get_port(void) const
|
||||
{
|
||||
|
@ -75,6 +75,7 @@ public:
|
||||
} state;
|
||||
|
||||
// accessors for AP_AHRS
|
||||
bool enabled() const;
|
||||
bool healthy(void) const;
|
||||
bool initialised(void) const;
|
||||
bool get_quaternion(Quaternion &quat);
|
||||
|
Loading…
Reference in New Issue
Block a user