Browse Source

AP_NavEKF2: move EKF2 message ids into AP_NavEKF2

zr-v5.1
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
f6d3983e1b
  1. 2
      libraries/AP_NavEKF2/AP_NavEKF2_Logging.cpp
  2. 9
      libraries/AP_NavEKF2/LogStructure.h

2
libraries/AP_NavEKF2/AP_NavEKF2_Logging.cpp

@ -225,7 +225,7 @@ void NavEKF2_core::Log_Write_Beacon(uint64_t time_us) @@ -225,7 +225,7 @@ void NavEKF2_core::Log_Write_Beacon(uint64_t time_us)
}
struct log_NKF0 pkt0 = {
LOG_PACKET_HEADER_INIT(LOG_NKF10_MSG),
LOG_PACKET_HEADER_INIT(LOG_NKF0_MSG),
time_us : time_us,
core : DAL_CORE(core_index),
ID : rngBcnFuseDataReportIndex,

9
libraries/AP_NavEKF2/LogStructure.h

@ -3,6 +3,13 @@ @@ -3,6 +3,13 @@
#include <AP_Logger/LogStructure.h>
#define LOG_IDS_FROM_NAVEKF2 \
LOG_NKF0_MSG, \
LOG_NKF1_MSG, \
LOG_NKF2_MSG, \
LOG_NKF3_MSG, \
LOG_NKF4_MSG, \
LOG_NKF5_MSG, \
LOG_NKQ_MSG, \
LOG_NKT_MSG, \
LOG_NKY0_MSG, \
LOG_NKY1_MSG
@ -344,7 +351,7 @@ struct PACKED log_NKY1 { @@ -344,7 +351,7 @@ struct PACKED log_NKY1 {
#define LOG_STRUCTURE_FROM_NAVEKF2 \
{ LOG_NKF10_MSG, sizeof(log_NKF0), \
{ LOG_NKF0_MSG, sizeof(log_NKF0), \
"NKF0","QBBccCCcccccccc","TimeUS,C,ID,rng,innov,SIV,TR,BPN,BPE,BPD,OFH,OFL,OFN,OFE,OFD", "s#-m---mmmmmmmm", "F--B---BBBBBBBB" }, \
{ LOG_NKF1_MSG, sizeof(log_NKF1), \
"NKF1","QBccCfffffffccce","TimeUS,C,Roll,Pitch,Yaw,VN,VE,VD,dPD,PN,PE,PD,GX,GY,GZ,OH", "s#ddhnnnnmmmkkkm", "F-BBB0000000BBBB" }, \

Loading…
Cancel
Save