diff options
author | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-06-20 14:37:44 +0800 |
---|---|---|
committer | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-06-20 14:37:44 +0800 |
commit | 45d5e2600911682a9117b26603e3213c6b918fa4 (patch) | |
tree | fb0f05d6e998587433e1461d41de960b8e89a9ae /src/modules/sensors/sensor_params.c | |
parent | 2475efe13d8f8d9d801276b73b98759676a64db6 (diff) | |
download | px4-firmware-45d5e2600911682a9117b26603e3213c6b918fa4.tar.gz px4-firmware-45d5e2600911682a9117b26603e3213c6b918fa4.tar.bz2 px4-firmware-45d5e2600911682a9117b26603e3213c6b918fa4.zip |
Define float params properly: 0.0f instead of just 0
Diffstat (limited to 'src/modules/sensors/sensor_params.c')
-rw-r--r-- | src/modules/sensors/sensor_params.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index 687efc49b..850e5f4e2 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -248,7 +248,7 @@ PARAM_DEFINE_INT32(SENS_BOARD_ROT, 0); * 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_Y_OFF, 0); + PARAM_DEFINE_FLOAT(SENS_BOARD_Y_OFF, 0.0f); /** * Board rotation roll offset @@ -256,7 +256,7 @@ PARAM_DEFINE_INT32(SENS_BOARD_ROT, 0); * This parameter defines a roll 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_X_OFF, 0); +PARAM_DEFINE_FLOAT(SENS_BOARD_X_OFF, 0.0f); /** * Board rotation YAW offset @@ -264,7 +264,7 @@ PARAM_DEFINE_FLOAT(SENS_BOARD_X_OFF, 0); * This parameter defines a yaw 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_Z_OFF, 0); +PARAM_DEFINE_FLOAT(SENS_BOARD_Z_OFF, 0.0f); /** * External magnetometer rotation |