AP_Compass: fix rotation for bebop AK8963

Set the correct rotation for bebop
This commit is contained in:
Julien BERAUD 2015-06-26 09:38:57 +02:00 committed by Andrew Tridgell
parent 7dd0b5fae6
commit 0cd584c293
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ void AP_Compass_AK8963::read()
_mag_x_accum = _mag_y_accum = _mag_z_accum = 0;
_accum_count = 0;
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
field.rotate(ROTATION_YAW_90);
#endif
publish_field(field, _compass_instance);
}