AP_InertialSensor: Allow gyro counts to be returned

This commit is contained in:
murata 2022-08-10 02:58:53 +09:00 committed by Randy Mackay
parent 5ce02708cf
commit 4d7e819bac

View File

@ -164,7 +164,7 @@ public:
bool get_gyro_health(uint8_t instance) const { return (instance<_gyro_count) ? _gyro_healthy[instance] : false; }
bool get_gyro_health(void) const { return get_gyro_health(_primary_gyro); }
bool get_gyro_health_all(void) const;
uint8_t get_gyro_count(void) const { return MIN(INS_MAX_INSTANCES, _accel_count); }
uint8_t get_gyro_count(void) const { return MIN(INS_MAX_INSTANCES, _gyro_count); }
bool gyro_calibrated_ok(uint8_t instance) const { return _gyro_cal_ok[instance]; }
bool gyro_calibrated_ok_all() const;
bool use_gyro(uint8_t instance) const;