Commit e57b8f6
committed
AP_NavEKF3: load hover Z-bias correction from INS params at init
Load _accelBiasHoverZ_correction from INS_ACC_VRFB_Z parameters during
InitialiseFilter() instead of initializing to zero. This ensures the
Replay tool (which has no vehicle code to call setHoverZBiasCorrection)
gets the correct correction values from the log's parameter set.
Without this, if a previous flight saved a non-zero bias to INS params,
the recording would apply the correction but Replay would not, causing
deterministic mismatch in all EKF outputs.1 parent bd13c5f commit e57b8f6
2 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
816 | 817 | | |
817 | 818 | | |
818 | 819 | | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
823 | 832 | | |
824 | 833 | | |
825 | 834 | | |
| |||
0 commit comments