aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sensors/sensor_params.c
diff options
context:
space:
mode:
authorDarryl Taylor <darryl.c.taylor@gmail.com>2014-06-18 20:27:35 +0800
committerDarryl Taylor <darryl.c.taylor@gmail.com>2014-06-18 20:27:35 +0800
commit90a89ff2cdbb5268f4b8bee64b8da24db508f5a7 (patch)
tree8522638a03e77e930d056902316dc72adb46be09 /src/modules/sensors/sensor_params.c
parent0f41d8b5077856cf8d00f30acf9f4bc52f6e41a6 (diff)
downloadpx4-firmware-90a89ff2cdbb5268f4b8bee64b8da24db508f5a7.tar.gz
px4-firmware-90a89ff2cdbb5268f4b8bee64b8da24db508f5a7.tar.bz2
px4-firmware-90a89ff2cdbb5268f4b8bee64b8da24db508f5a7.zip
WIP: Support in-flight fine tuning of board alignment. Implemented by applying a user supplied rotation matrix via new SENS_BOARD_(PITCH, ROLL, YAW)_OFF params in the sensors app. Currently only tested in QGC.
Diffstat (limited to 'src/modules/sensors/sensor_params.c')
-rw-r--r--src/modules/sensors/sensor_params.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c
index 999cf8bb3..c90633822 100644
--- a/src/modules/sensors/sensor_params.c
+++ b/src/modules/sensors/sensor_params.c
@@ -243,6 +243,30 @@ PARAM_DEFINE_INT32(SENS_DPRES_ANA, 0);
PARAM_DEFINE_INT32(SENS_BOARD_ROT, 0);
/**
+ * Board rotation pitch offset
+ *
+ * This parameter defines a pitch offset from the board rotation. It allows the user
+ * to fine tune the board offset in the event of misalignment.
+ */
+ PARAM_DEFINE_FLOAT(SENS_BOARD_PITCH_OFF, 0);
+
+/**
+ * Board rotation roll offset
+ *
+ * This parameter defines a pitch offset from the board rotation. It allows the user
+ * to fine tune the board offset in the event of misalignment.
+ */
+PARAM_DEFINE_FLOAT(SENS_BOARD_ROLL_OFF, 0);
+
+/**
+ * Board rotation YAW offset
+ *
+ * This parameter defines a pitch offset from the board rotation. It allows the user
+ * to fine tune the board offset in the event of misalignment.
+ */
+PARAM_DEFINE_FLOAT(SENS_BOARD_YAW_OFF, 0);
+
+/**
* External magnetometer rotation
*
* This parameter defines the rotation of the external magnetometer relative