mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:33:34 +08:00
params: remove unused SENS_EN_* params
Replaced with the more general serial config params.
This commit is contained in:
@@ -215,14 +215,9 @@ TFMINI::~TFMINI()
|
||||
int
|
||||
TFMINI::init()
|
||||
{
|
||||
int32_t hw_model;
|
||||
param_get(param_find("SENS_EN_TFMINI"), &hw_model);
|
||||
int32_t hw_model = 1; // only one model so far...
|
||||
|
||||
switch (hw_model) {
|
||||
case 0:
|
||||
PX4_WARN("disabled.");
|
||||
return 0;
|
||||
|
||||
case 1: /* TFMINI (12m, 100 Hz)*/
|
||||
_min_distance = 0.3f;
|
||||
_max_distance = 12.0f;
|
||||
|
||||
Reference in New Issue
Block a user