mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
AP_NavEKF: added a getter function for active source set
This commit is contained in:
parent
0c65cd1b47
commit
5decc08dd4
@ -524,6 +524,12 @@ bool AP_NavEKF_Source::wheel_encoder_enabled(void) const
|
||||
return false;
|
||||
}
|
||||
|
||||
// returns active source set
|
||||
uint8_t AP_NavEKF_Source::get_active_source_set() const
|
||||
{
|
||||
return active_source_set;
|
||||
}
|
||||
|
||||
// return true if GPS yaw is enabled on any source
|
||||
bool AP_NavEKF_Source::gps_yaw_enabled(void) const
|
||||
{
|
||||
|
@ -103,6 +103,9 @@ public:
|
||||
// return true if wheel encoder is enabled on any source
|
||||
bool wheel_encoder_enabled(void) const;
|
||||
|
||||
// returns active source set
|
||||
uint8_t get_active_source_set() const;
|
||||
|
||||
static const struct AP_Param::GroupInfo var_info[];
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user