mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_InertialSensor: add ins() to AP:: namespace
This commit is contained in:
parent
73092c3c30
commit
096f7367bf
@ -1995,3 +1995,13 @@ MAV_RESULT AP_InertialSensor::simple_accel_cal(AP_AHRS &ahrs)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
namespace AP {
|
||||
|
||||
AP_InertialSensor &ins()
|
||||
{
|
||||
return *AP_InertialSensor::get_instance();
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -563,3 +563,7 @@ private:
|
||||
bool _startup_error_counts_set;
|
||||
uint32_t _startup_ms;
|
||||
};
|
||||
|
||||
namespace AP {
|
||||
AP_InertialSensor &ins();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user