mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
Qcom localizer: erratic clocks have an erratic error rate too (#28654)
Erratic clocks drift erratically too old-commit-hash: af9edb020ddd3d12db8acd531180a8b77ae95225
This commit is contained in:
@@ -334,12 +334,13 @@ class LocKalman():
|
||||
|
||||
|
||||
# process noise
|
||||
clock_error_drift = 100.0 if erratic_clock else 0.1
|
||||
q_clock_error = 100.0 if erratic_clock else 0.1
|
||||
q_clock_error_rate = 10 if erratic_clock else 0.0
|
||||
self.Q = np.diag([0.03**2, 0.03**2, 0.03**2,
|
||||
0.0**2, 0.0**2, 0.0**2,
|
||||
0.0**2, 0.0**2, 0.0**2,
|
||||
0.1**2, 0.1**2, 0.1**2,
|
||||
(clock_error_drift)**2, (0)**2,
|
||||
(q_clock_error)**2, (q_clock_error_rate)**2,
|
||||
(0.005 / 100)**2, (0.005 / 100)**2, (0.005 / 100)**2,
|
||||
(0.02 / 100)**2,
|
||||
3**2, 3**2, 3**2,
|
||||
|
||||
Reference in New Issue
Block a user