Calibration Model: Difference between revisions
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Each axis is converted as follows: | Each axis is converted as follows: | ||
:a = ( | :<math>a = (a_{meas} - a_{zero}) \cdot a_{scale} - a_{ofs}</math> | ||
<math>a_{meas}</math>: value obtained from the IMU | |||
<math>a_{zero}</math>: 'Acc Zero' calibration constant determined by calibration procedure | |||
<math>a_{scale}</math>: 'Acc Scale' calibration constant determined by calibration procedure | |||
<math>a_{ofs}</math>: offset entered in the GUI ({{GUIPARAM|Pitch Offset}} or {{GUIPARAM|Roll Offset}} or {{GUIPARAM|Yaw Offset}}) | |||
=== Gyro === | === Gyro === | ||
Line 20: | Line 20: | ||
Each axis is converted as follows: | Each axis is converted as follows: | ||
:g = | :<math>g = g_{meas} - g_{zero}</math> | ||
<math>g_{meas}</math>: value obtained from the IMU | |||
<math>g_{zero}</math>: bias determined during gyro calibration at startup, or 'Gyro Zero' calibration constant determined by calibration procedure | |||
=== IMU Orientation === | === IMU Orientation === | ||
The calibration constants are with respect to the IMU frame, i.e., applied before the rotation into the gimbal frame as specified by the IMU orientation settings. The offset value is however applied after this rotation, i.e., is with respect to the gimbal frame. This makes it possible to calibrate the IMU and then to mount it in any desired orientation without having to recalibrate. | The calibration constants are with respect to the IMU frame, i.e., applied before the rotation into the gimbal frame as specified by the IMU orientation settings. The offset value is however applied after this rotation, i.e., is with respect to the gimbal frame. This makes it possible to calibrate the IMU and then to mount it in any desired orientation without having to recalibrate (the offsets may have to be adjusted however, but these should normally not be needed). |
Latest revision as of 17:57, 3 February 2023
The STorM32 controller implements a relatively simple calibration model for the accelerometers and gyros.
Accelerometer
Each axis is converted as follows:
: value obtained from the IMU
: 'Acc Zero' calibration constant determined by calibration procedure
: 'Acc Scale' calibration constant determined by calibration procedure
: offset entered in the GUI ("Pitch Offset" or "Roll Offset" or "Yaw Offset")
Gyro
Each axis is converted as follows:
: value obtained from the IMU
: bias determined during gyro calibration at startup, or 'Gyro Zero' calibration constant determined by calibration procedure
IMU Orientation
The calibration constants are with respect to the IMU frame, i.e., applied before the rotation into the gimbal frame as specified by the IMU orientation settings. The offset value is however applied after this rotation, i.e., is with respect to the gimbal frame. This makes it possible to calibrate the IMU and then to mount it in any desired orientation without having to recalibrate (the offsets may have to be adjusted however, but these should normally not be needed).