AP_Logger: add AP::logger() method

This commit is contained in:
Peter Barker 2019-01-18 12:40:57 +11:00 committed by Andrew Tridgell
parent b47733142f
commit 8e2a229e5d
2 changed files with 9 additions and 0 deletions

View File

@ -1036,3 +1036,8 @@ bool AP_Logger::Log_Write_ISBD(const uint16_t isb_seqno,
return backends[0]->WriteBlock(&pkt, sizeof(pkt));
}
AP_Logger &AP::logger()
{
return *AP_Logger::instance();
}

View File

@ -385,3 +385,7 @@ private:
/* end support for retrieving logs via mavlink: */
};
namespace AP {
AP_Logger &logger();
};