master ← tpwrules:pr/ek3-rng-norm
opened 06:34PM - 06 Apr 26 UTC
### Summary
All other fusion functions normalize the quaternion but this one,… so make this one do it. Probably not a massive problem in practice as other fusion functions will also do the normalization.
### Classification & Testing (check all that apply and add your own)
- [X] Checked by a human programmer
- [ ] Non-functional change
- [ ] No-binary change
- [ ] Infrastructure change (e.g. unit tests, helper scripts)
- [X] Automated test(s) verify changes (e.g. unit test, autotest)
- [X] Tested manually, description below (e.g. SITL)
- [ ] Tested on hardware
- [X] Logs attached
- [ ] Logs available on request
There are minute replay changes, as expected. But the BeaconPosition test passes and looks good.
```
TOGCS: EKF3 IMU1 initial pos NE = -0.0,0.3 (m)
TOGCS: EKF3 IMU1 initial beacon pos D offset = 0.5 (m)
TOGCS: EKF3 IMU0 is using range beacons
TOGCS: EKF3 IMU0 initial pos NE = -0.0,0.3 (m)
TOGCS: EKF3 IMU0 initial beacon pos D offset = -0.5 (m)
TOGCS: EKF3 IMU0 MAG0 in-flight yaw alignment complete
TOGCS: EKF3 IMU1 MAG0 in-flight yaw alignment complete
Replay counts: 14262272 bytes 447977 entries
CRB: Running check_replay.py on Replay output log: logs/00000032.BIN
Processing log logs/00000032.BIN
Mismatch in field XKF1.dPD: -1.9197011624783045e-06 -1.91970138985198e-06
XKF1 {TimeUS : 62939814, C : 1, Roll : -7.34, Pitch : -7.56, Yaw : 48.4, VN : 2.6186347007751465, VE : -2.3593521118164062, VD : 0.008993205614387989, dPD : -1.91970138985198e-06, PN : -6.615180969238281, PE : -14.77216911315918, PD : -19.808935165405273, GX : 0.01, GY : 0.03, GZ : -0.03, OH : 584.06}
XKF1 {TimeUS : 62939814, C : 101, Roll : -7.34, Pitch : -7.56, Yaw : 48.4, VN : 2.6186347007751465, VE : -2.3593521118164062, VD : 0.008993205614387989, dPD : -1.9197011624783045e-06, PN : -6.615180969238281, PE : -14.77216911315918, PD : -19.808935165405273, GX : 0.01, GY : 0.03, GZ : -0.03, OH : 584.06}
Processed 16968/16977 messages, 1 errors
XKF4 2536/2538 2
XKF1 2536/2538 2
XKF2 2536/2537 1
XKF3 2536/2537 1
XKFS 2536/2537 1
XKQ 2536/2537 1
XKV1 254/254 0
XKV2 254/254 0
XKF0 1244/1245 1
CRB: check_replay.py of (logs/00000032.BIN): FAILED
```
### Description
As above.