Define float params properly: 0.0f instead of just 0

This commit is contained in:
Darryl Taylor 2014-06-20 14:37:44 +08:00
parent 2475efe13d
commit 45d5e26009
1 changed files with 3 additions and 3 deletions

View File

@ -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 * 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. * 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 * 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 * 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. * 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 * 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 * 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. * 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 * External magnetometer rotation