diff --git a/libraries/DataFlash/DataFlash.h b/libraries/DataFlash/DataFlash.h index 2864478ffcdea1102b96fce6012374022da6d044..6f74c7c78f40d1eeaf90d4748df5820e34ccf19d 100644 --- a/libraries/DataFlash/DataFlash.h +++ b/libraries/DataFlash/DataFlash.h @@ -251,6 +251,7 @@ struct PACKED log_BARO { float altitude; float pressure; int16_t temperature; + float climbrate; }; struct PACKED log_AHRS { @@ -431,7 +432,7 @@ struct PACKED log_Ubx2 { { LOG_RCOUT_MSG, sizeof(log_RCOUT), \ "RCOU", "Ihhhhhhhh", "TimeMS,Chan1,Chan2,Chan3,Chan4,Chan5,Chan6,Chan7,Chan8" }, \ { LOG_BARO_MSG, sizeof(log_BARO), \ - "BARO", "Iffc", "TimeMS,Alt,Press,Temp" }, \ + "BARO", "Iffcf", "TimeMS,Alt,Press,Temp,CRt" }, \ { LOG_POWR_MSG, sizeof(log_POWR), \ "POWR","ICCH","TimeMS,Vcc,VServo,Flags" }, \ { LOG_CMD_MSG, sizeof(log_Cmd), \ diff --git a/libraries/DataFlash/LogFile.cpp b/libraries/DataFlash/LogFile.cpp index 96500451fd15a08d93e385d468fd3b0149365cae..a0abbfc1fa17a0a842556168cf79ab1d7fa487f9 100644 --- a/libraries/DataFlash/LogFile.cpp +++ b/libraries/DataFlash/LogFile.cpp @@ -763,6 +763,7 @@ void DataFlash_Class::Log_Write_Baro(AP_Baro &baro) altitude : baro.get_altitude(), pressure : baro.get_pressure(), temperature : (int16_t)(baro.get_temperature() * 100), + climbrate : baro.get_climb_rate() }; WriteBlock(&pkt, sizeof(pkt)); }