Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

added a SET_MAG_OFFSETS command

this is very useful when diagnosing magnetometer problems
  • Loading branch information...
1 parent c13acc0 commit 99d14fd722db37c069bcf7962a3caa370300b7a0 @tridge committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 message_definitions/ardupilotmega.xml
10 message_definitions/ardupilotmega.xml
@@ -25,5 +25,15 @@
<field type="float" name="accel_cal_y">accel Y calibration</field>
<field type="float" name="accel_cal_z">accel Z calibration</field>
+ <message id="151" name="SET_MAG_OFFSETS">
+ <description>set the magnetometer offsets</description>
+ <field type="uint8_t" name="target_system">System ID</field>
+ <field type="uint8_t" name="target_component">Component ID</field>
+ <field type="int16_t" name="mag_ofs_x">magnetometer X offset</field>
+ <field type="int16_t" name="mag_ofs_y">magnetometer Y offset</field>
+ <field type="int16_t" name="mag_ofs_z">magnetometer Z offset</field>
+ </message>

0 comments on commit 99d14fd

Please sign in to comment.
Something went wrong with that request. Please try again.