mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:53:34 +08:00
Save and check device id for acc and gyro calibration parameters.
Fix config utility to work with all devices of each type. Accel, gyro and mag devices correctly set their device_id devtype. Combo devices (mpu6000 lsm303d) now correctly return their devtype. config util shows device id for all sensor types. Add, save during calibration and check during preflight ID parameters for accelerometer and gyro
This commit is contained in:
@@ -44,6 +44,13 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <systemlib/param/param.h>
|
||||
|
||||
/**
|
||||
* ID of the Gyro that the calibration is for.
|
||||
*
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_GYRO_ID, 0);
|
||||
|
||||
/**
|
||||
* Gyro X-axis offset
|
||||
*
|
||||
@@ -153,6 +160,12 @@ PARAM_DEFINE_FLOAT(SENS_MAG_YSCALE, 1.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SENS_MAG_ZSCALE, 1.0f);
|
||||
|
||||
/**
|
||||
* ID of the Accelerometer that the calibration is for.
|
||||
*
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_ACC_ID, 0);
|
||||
|
||||
/**
|
||||
* Accelerometer X-axis offset
|
||||
@@ -270,7 +283,7 @@ PARAM_DEFINE_INT32(SENS_BOARD_ROT, 0);
|
||||
/**
|
||||
* PX4Flow board rotation
|
||||
*
|
||||
* This parameter defines the rotation of the PX4FLOW board relative to the platform.
|
||||
* This parameter defines the rotation of the PX4FLOW board relative to the platform.
|
||||
* Zero rotation is defined as Y on flow board pointing towards front of vehicle
|
||||
* Possible values are:
|
||||
* 0 = No rotation
|
||||
|
||||
Reference in New Issue
Block a user