Commit 5bf45f8
committed
Extract DEAD_DECAY_FACTOR and SENSOR_SANITY_LIMIT_MT to Config.h
Two feel-tuning magic numbers hardcoded by PR sb-ocr#3:
- MotionController.cpp - 0.8f per-tick decay factor applied to the
Kalman estimate when the current measurement is below the dead
zone.
- SensorController.cpp - 500.0f mT outer bound for the sensor
sanity check. EXTRA_SHORT_RANGE actually peaks around 130 mT;
the note about that is moved into the Config comment where it
is discoverable.
Both now live in Config.h alongside the other user-tunable knobs
(KALMAN_Q, KALMAN_R, SENSITIVITY_EXP, etc.) as DEAD_DECAY_FACTOR
and SENSOR_SANITY_LIMIT_MT.1 parent a52c547 commit 5bf45f8
3 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments