AP_Baro: add documentation for ICBM message (ICM20789 diagnostics)

This commit is contained in:
Peter Barker 2020-04-24 09:33:22 +10:00 committed by Peter Barker
parent 91a79543c9
commit 6b232ee515
1 changed files with 7 additions and 0 deletions

View File

@ -339,6 +339,13 @@ void AP_Baro_ICM20789::update()
{ {
#if BARO_ICM20789_DEBUG #if BARO_ICM20789_DEBUG
// useful for debugging // useful for debugging
// @LoggerMessage: ICMB
// @Description: ICM20789 diagnostics
// @Field: TimeUS: Time since system startup
// @Field: Traw: raw temperature from sensor
// @Field: Praw: raw pressure from sensor
// @Field: P: pressure
// @Field: T: temperature
AP::logger().Write("ICMB", "TimeUS,Traw,Praw,P,T", "QIIff", AP::logger().Write("ICMB", "TimeUS,Traw,Praw,P,T", "QIIff",
AP_HAL::micros64(), AP_HAL::micros64(),
dd.Traw, dd.Praw, dd.P, dd.T); dd.Traw, dd.Praw, dd.P, dd.T);