For all ArducopterNG users, how to calibrate your magnetometer offset with latest ArducopterNG Beta2 code from CLI.
This video I am using our latest ArducopterNG beta2 code and DIYDrones magnetometer is soldered directly on top of IMU board as described ArduPilot Mega wiki pages (Method two, mounted on board)
With method two you need to activate following line from ArducopterNG.pde file:
#define MAGORIENTATION AP_COMPASS_COMPONENTS_DOWN_PINS_FORWARD
At end of video I will show also 's' command output and accelerometer level calibration.