voted_sensors_update: fix mag rotation

fixes a wrong index for _mag_device_id: previously, driver_index was used
(the CAL_MAG param index), but the correct index is the uorb topic
instance.
This commit is contained in:
Beat Küng
2017-06-17 06:36:54 +02:00
committed by Lorenz Meier
parent 4d6c1b5749
commit 4afa931d80
3 changed files with 25 additions and 32 deletions
+2 -1
View File
@@ -942,7 +942,8 @@ PARAM_DEFINE_FLOAT(SENS_BOARD_X_OFF, 0.0f);
PARAM_DEFINE_FLOAT(SENS_BOARD_Z_OFF, 0.0f);
/**
* Select primary magnetometer
* Select primary magnetometer.
* DEPRECATED, only used on V1 hardware
*
* @min 0
* @max 2