mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 07:30:35 +08:00
Fixed too-long param names.
This commit is contained in:
@@ -248,23 +248,23 @@ 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_PITCH_OFF, 0);
|
||||
PARAM_DEFINE_FLOAT(SENS_BOARD_Y_OFF, 0);
|
||||
|
||||
/**
|
||||
* Board rotation roll offset
|
||||
*
|
||||
* This parameter defines a pitch 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.
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SENS_BOARD_ROLL_OFF, 0);
|
||||
PARAM_DEFINE_FLOAT(SENS_BOARD_X_OFF, 0);
|
||||
|
||||
/**
|
||||
* Board rotation YAW offset
|
||||
*
|
||||
* This parameter defines a pitch 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.
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SENS_BOARD_YAW_OFF, 0);
|
||||
PARAM_DEFINE_FLOAT(SENS_BOARD_Z_OFF, 0);
|
||||
|
||||
/**
|
||||
* External magnetometer rotation
|
||||
|
||||
@@ -595,9 +595,9 @@ Sensors::Sensors() :
|
||||
_parameter_handles.external_mag_rotation = param_find("SENS_EXT_MAG_ROT");
|
||||
|
||||
/* rotation offsets */
|
||||
_parameter_handles.board_offset[0] = param_find("SENS_BOARD_ROLL_OFF");
|
||||
_parameter_handles.board_offset[1] = param_find("SENS_BOARD_PITCH_OFF");
|
||||
_parameter_handles.board_offset[2] = param_find("SENS_BOARD_YAW_OFF");
|
||||
_parameter_handles.board_offset[0] = param_find("SENS_BOARD_X_OFF");
|
||||
_parameter_handles.board_offset[1] = param_find("SENS_BOARD_Y_OFF");
|
||||
_parameter_handles.board_offset[2] = param_find("SENS_BOARD_Z_OFF");
|
||||
|
||||
/* fetch initial parameter values */
|
||||
parameters_update();
|
||||
|
||||
Reference in New Issue
Block a user