AP_NavEKF3: unify singleton naming to _singleton and get_singleton()

This commit is contained in:
Tom Pittenger 2019-02-10 10:03:42 -08:00 committed by Tom Pittenger
parent 699b7b9788
commit 8a6a39b590
2 changed files with 2 additions and 2 deletions

View File

@ -611,7 +611,7 @@ bool NavEKF2::InitialiseFilter(void)
_framesPerPrediction = uint8_t((EKF_TARGET_DT / (_frameTimeUsec * 1.0e-6) + 0.5));
// see if we will be doing logging
AP_Logger *dataflash = AP_Logger::instance();
AP_Logger *dataflash = AP_Logger::get_singleton();
if (dataflash != nullptr) {
logging.enabled = dataflash->log_replay();
}

View File

@ -635,7 +635,7 @@ bool NavEKF3::InitialiseFilter(void)
if (core == nullptr) {
// see if we will be doing logging
AP_Logger *dataflash = AP_Logger::instance();
AP_Logger *dataflash = AP_Logger::get_singleton();
if (dataflash != nullptr) {
logging.enabled = dataflash->log_replay();
}