AP_InertialSensor: add ins() to AP:: namespace

This commit is contained in:
Peter Barker 2017-11-13 18:09:43 +11:00 committed by Andrew Tridgell
parent 73092c3c30
commit 096f7367bf
2 changed files with 14 additions and 0 deletions

View File

@ -1995,3 +1995,13 @@ MAV_RESULT AP_InertialSensor::simple_accel_cal(AP_AHRS &ahrs)
return result; return result;
} }
namespace AP {
AP_InertialSensor &ins()
{
return *AP_InertialSensor::get_instance();
}
};

View File

@ -563,3 +563,7 @@ private:
bool _startup_error_counts_set; bool _startup_error_counts_set;
uint32_t _startup_ms; uint32_t _startup_ms;
}; };
namespace AP {
AP_InertialSensor &ins();
};