calibrate_accelerometer
Calibrate the accelerometer to fix 'not level' and 'accel not calibrated' arming blocks. Place the aircraft level, then run to sample and save zero-level to EEPROM.
Instructions
Calibrate the accelerometer (zero-level). Fixes most 'not level' / 'accel not calibrated' arming blocks.
Sends MSP_ACC_CALIBRATION; iNAV samples for ~2s and saves to EEPROM automatically (no reboot).
BEFORE running: set the board/aircraft on a LEVEL surface in its normal flight orientation and DO NOT move it until this returns.
Gates: connected, not armed, confirm=True (dry-run otherwise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No |