|
5 | 5 | #define LOG_IDS_FROM_NAVEKF3 \
|
6 | 6 | LOG_XKT_MSG, \
|
7 | 7 | LOG_XKFM_MSG, \
|
| 8 | + LOG_XKY0_MSG, \ |
| 9 | + LOG_XKY1_MSG, \ |
8 | 10 | LOG_XKTV_MSG
|
9 | 11 |
|
10 | 12 | // @LoggerMessage: XKT
|
@@ -70,10 +72,78 @@ struct PACKED log_XKTV {
|
70 | 72 | float tvd;
|
71 | 73 | };
|
72 | 74 |
|
| 75 | +// @LoggerMessage: XKY0 |
| 76 | +// @Description: EKF3 Yaw Estimator States |
| 77 | +// @Field: TimeUS: Time since system startup |
| 78 | +// @Field: C: EKF3 core this data is for |
| 79 | +// @Field: YC: GSF yaw estimate (rad) |
| 80 | +// @Field: YCS: GSF yaw estimate 1-Sigma uncertainty (rad) |
| 81 | +// @Field: Y0: Yaw estimate from individual EKF filter 0 (rad) |
| 82 | +// @Field: Y1: Yaw estimate from individual EKF filter 1 (rad) |
| 83 | +// @Field: Y2: Yaw estimate from individual EKF filter 2 (rad) |
| 84 | +// @Field: Y3: Yaw estimate from individual EKF filter 3 (rad) |
| 85 | +// @Field: Y4: Yaw estimate from individual EKF filter 4 (rad) |
| 86 | +// @Field: W0: Weighting applied to yaw estimate from individual EKF filter 0 |
| 87 | +// @Field: W1: Weighting applied to yaw estimate from individual EKF filter 1 |
| 88 | +// @Field: W2: Weighting applied to yaw estimate from individual EKF filter 2 |
| 89 | +// @Field: W3: Weighting applied to yaw estimate from individual EKF filter 3 |
| 90 | +// @Field: W4: Weighting applied to yaw estimate from individual EKF filter 4 |
| 91 | +struct PACKED log_XKY0 { |
| 92 | + LOG_PACKET_HEADER; |
| 93 | + uint64_t time_us; |
| 94 | + uint8_t core; |
| 95 | + float yaw_composite; |
| 96 | + float yaw_composite_variance; |
| 97 | + float yaw0; |
| 98 | + float yaw1; |
| 99 | + float yaw2; |
| 100 | + float yaw3; |
| 101 | + float yaw4; |
| 102 | + float wgt0; |
| 103 | + float wgt1; |
| 104 | + float wgt2; |
| 105 | + float wgt3; |
| 106 | + float wgt4; |
| 107 | +}; |
| 108 | + |
| 109 | +// @LoggerMessage: XKY1 |
| 110 | +// @Description: EKF3 Yaw Estimator Innovations |
| 111 | +// @Field: TimeUS: Time since system startup |
| 112 | +// @Field: C: EKF3 core this data is for |
| 113 | +// @Field: IVN0: North velocity innovation from individual EKF filter 0 (m/s) |
| 114 | +// @Field: IVN1: North velocity innovation from individual EKF filter 1 (m/s) |
| 115 | +// @Field: IVN2: North velocity innovation from individual EKF filter 2 (m/s) |
| 116 | +// @Field: IVN3: North velocity innovation from individual EKF filter 3 (m/s) |
| 117 | +// @Field: IVN4: North velocity innovation from individual EKF filter 4 (m/s) |
| 118 | +// @Field: IVE0: East velocity innovation from individual EKF filter 0 (m/s) |
| 119 | +// @Field: IVE1: East velocity innovation from individual EKF filter 1 (m/s) |
| 120 | +// @Field: IVE2: East velocity innovation from individual EKF filter 2 (m/s) |
| 121 | +// @Field: IVE3: East velocity innovation from individual EKF filter 3 (m/s) |
| 122 | +// @Field: IVE4: East velocity innovation from individual EKF filter 4 (m/s) |
| 123 | +struct PACKED log_XKY1 { |
| 124 | + LOG_PACKET_HEADER; |
| 125 | + uint64_t time_us; |
| 126 | + uint8_t core; |
| 127 | + float ivn0; |
| 128 | + float ivn1; |
| 129 | + float ivn2; |
| 130 | + float ivn3; |
| 131 | + float ivn4; |
| 132 | + float ive0; |
| 133 | + float ive1; |
| 134 | + float ive2; |
| 135 | + float ive3; |
| 136 | + float ive4; |
| 137 | +}; |
| 138 | + |
73 | 139 | #define LOG_STRUCTURE_FROM_NAVEKF3 \
|
74 | 140 | { LOG_XKT_MSG, sizeof(log_XKT), \
|
75 | 141 | "XKT", "QBIffffffff", "TimeUS,C,Cnt,IMUMin,IMUMax,EKFMin,EKFMax,AngMin,AngMax,VMin,VMax", "s#sssssssss", "F-000000000"}, \
|
76 | 142 | { LOG_XKTV_MSG, sizeof(log_XKTV), \
|
77 | 143 | "XKTV", "QBff", "TimeUS,C,TVS,TVD", "s#rr", "F-00"}, \
|
| 144 | + { LOG_XKY0_MSG, sizeof(log_XKY0), \ |
| 145 | + "XKY0", "QBffffffffffff", "TimeUS,C,YC,YCS,Y0,Y1,Y2,Y3,Y4,W0,W1,W2,W3,W4", "s#rrrrrrr-----", "F-000000000000"}, \ |
| 146 | + { LOG_XKY1_MSG, sizeof(log_XKY1), \ |
| 147 | + "XKY1", "QBffffffffff", "TimeUS,C,IVN0,IVN1,IVN2,IVN3,IVN4,IVE0,IVE1,IVE2,IVE3,IVE4", "s#nnnnnnnnnn", "F-0000000000"}, \ |
78 | 148 | { LOG_XKFM_MSG, sizeof(log_XKFM), \
|
79 | 149 | "XKFM", "QBBffff", "TimeUS,C,OGNM,GLR,ALR,GDR,ADR", "s------", "F------"},
|
0 commit comments