A comment is added for TFmini valid minimum parameter.

This commit is contained in:
Hyon Lim
2020-03-27 09:59:05 -04:00
committed by Daniel Agar
parent 7e7506ec52
commit eb1bad0185
@@ -60,6 +60,11 @@ TFMINI::init()
switch (hw_model) {
case 1: // TFMINI (12m, 100 Hz)
// Note:
// Sensor specification shows 0.3m as minimum, but in practice
// 0.3 is too close to minimum so chattering of invalid sensor decision
// is happening sometimes. this cause EKF to believe inconsistent range readings.
// So we set 0.4 as valid minimum.
_px4_rangefinder.set_min_distance(0.4f);
_px4_rangefinder.set_max_distance(12.0f);
_px4_rangefinder.set_fov(math::radians(1.15f));