From f621c334a809aafd239f14fa72dd59391905604f Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 10 Feb 2018 16:25:28 -0500 Subject: [PATCH] sensors don't find parameters that are unused by QGC --- src/modules/sensors/parameters.cpp | 60 +----------------------------- 1 file changed, 2 insertions(+), 58 deletions(-) diff --git a/src/modules/sensors/parameters.cpp b/src/modules/sensors/parameters.cpp index 9191dd0bed..a76dc216d1 100644 --- a/src/modules/sensors/parameters.cpp +++ b/src/modules/sensors/parameters.cpp @@ -164,8 +164,10 @@ void initialize_parameter_handles(ParameterHandles ¶meter_handles) // These are parameters for which QGroundControl always expects to be returned in a list request. // We do a param_find here to force them into the list. (void)param_find("RC_CHAN_CNT"); + (void)param_find("CAL_ACC0_ID"); (void)param_find("CAL_GYRO0_ID"); + (void)param_find("CAL_MAG0_ID"); (void)param_find("CAL_MAG1_ID"); (void)param_find("CAL_MAG2_ID"); @@ -176,69 +178,11 @@ void initialize_parameter_handles(ParameterHandles ¶meter_handles) (void)param_find("CAL_MAG3_ROT"); (void)param_find("CAL_MAG_SIDES"); - (void)param_find("CAL_MAG1_XOFF"); - (void)param_find("CAL_MAG1_XSCALE"); - (void)param_find("CAL_MAG1_YOFF"); - (void)param_find("CAL_MAG1_YSCALE"); - (void)param_find("CAL_MAG1_ZOFF"); - (void)param_find("CAL_MAG1_ZSCALE"); - - (void)param_find("CAL_MAG2_XOFF"); - (void)param_find("CAL_MAG2_XSCALE"); - (void)param_find("CAL_MAG2_YOFF"); - (void)param_find("CAL_MAG2_YSCALE"); - (void)param_find("CAL_MAG2_ZOFF"); - (void)param_find("CAL_MAG2_ZSCALE"); - - (void)param_find("CAL_MAG3_XOFF"); - (void)param_find("CAL_MAG3_XSCALE"); - (void)param_find("CAL_MAG3_YOFF"); - (void)param_find("CAL_MAG3_YSCALE"); - (void)param_find("CAL_MAG3_ZOFF"); - (void)param_find("CAL_MAG3_ZSCALE"); - - (void)param_find("CAL_GYRO1_XOFF"); - (void)param_find("CAL_GYRO1_XSCALE"); - (void)param_find("CAL_GYRO1_YOFF"); - (void)param_find("CAL_GYRO1_YSCALE"); - (void)param_find("CAL_GYRO1_ZOFF"); - (void)param_find("CAL_GYRO1_ZSCALE"); - - (void)param_find("CAL_GYRO2_XOFF"); - (void)param_find("CAL_GYRO2_XSCALE"); - (void)param_find("CAL_GYRO2_YOFF"); - (void)param_find("CAL_GYRO2_YSCALE"); - (void)param_find("CAL_GYRO2_ZOFF"); - (void)param_find("CAL_GYRO2_ZSCALE"); - - (void)param_find("CAL_ACC1_XOFF"); - (void)param_find("CAL_ACC1_XSCALE"); - (void)param_find("CAL_ACC1_YOFF"); - (void)param_find("CAL_ACC1_YSCALE"); - (void)param_find("CAL_ACC1_ZOFF"); - (void)param_find("CAL_ACC1_ZSCALE"); - - (void)param_find("CAL_ACC2_XOFF"); - (void)param_find("CAL_ACC2_XSCALE"); - (void)param_find("CAL_ACC2_YOFF"); - (void)param_find("CAL_ACC2_YSCALE"); - (void)param_find("CAL_ACC2_ZOFF"); - (void)param_find("CAL_ACC2_ZSCALE"); - (void)param_find("SYS_PARAM_VER"); (void)param_find("SYS_AUTOSTART"); (void)param_find("SYS_AUTOCONFIG"); - (void)param_find("SYS_HITL"); - (void)param_find("PWM_RATE"); - (void)param_find("PWM_MIN"); - (void)param_find("PWM_MAX"); - (void)param_find("PWM_DISARMED"); - (void)param_find("PWM_AUX_MIN"); - (void)param_find("PWM_AUX_MAX"); - (void)param_find("PWM_AUX_DISARMED"); (void)param_find("TRIG_MODE"); (void)param_find("UAVCAN_ENABLE"); - (void)param_find("SYS_MC_EST_GROUP"); // Parameters controlling the on-board sensor thermal calibrator (void)param_find("SYS_CAL_TDEL");