← All tools

Message & Error Explainer

What an ArduPilot message means and what to do about it

Українська

Raw IMU logging was switched on but is not running yet

Stops itIMU: accelerometers, gyros, vibration

What ArduPilot says:

Batch sampling records short bursts of raw gyro or accelerometer data in the log, used to see which frequencies the frame vibrates at. It is switched on with INS_LOG_BAT_MASK, but its memory is set aside only at start-up. The check fails while it is switched on and that memory is not there: either the parameter was changed since the last boot, or at boot there was not enough memory (“Failed to allocate … bytes for IMU batch sampling”).

What to do, most likely first

  1. INS_LOG_BAT_MASK was changed since the last boot.

    FixReboot the flight controller.

  2. The message is still there after a reboot: the board has too little free memory for the sample buffer.

    Check“Failed to allocate … bytes for IMU batch sampling” appears in the start-up messages.

    FixLower INS_LOG_BAT_CNT (1024 by default) to 512 or 256 and reboot. When the measuring is done, set INS_LOG_BAT_MASK back to 0.

Parameters to look at

ParameterWhat it is
INS_LOG_BAT_MASKSensor Bitmask
INS_LOG_BAT_CNTsample count per batch
The code that sends it

Failed to allocate N bytes for IMU batch sampling

libraries/AP_InertialSensor/BatchSampler.cpp AP_InertialSensor::BatchSampler::init() · Open in ArduPilot Copter-4.7.1

PreArm: Batch sampling requires reboot

libraries/AP_Arming/AP_Arming.cpp AP_Arming::ins_checks() · Open in ArduPilot Copter-4.7.1

Written here for Copter 4.6. In the tool you choose your vehicle and version, see your own parameter values beside the ones named here, and drop a flight log to have every message in it explained.

Open it in the Message & Error Explainer