mirror of https://github.com/ArduPilot/ardupilot
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