diff --git a/libraries/AP_Compass/Compass.h b/libraries/AP_Compass/Compass.h index b901410557..d157419965 100644 --- a/libraries/AP_Compass/Compass.h +++ b/libraries/AP_Compass/Compass.h @@ -33,6 +33,9 @@ # define MAG_BOARD_ORIENTATION ROTATION_ROLL_180 #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP # define MAG_BOARD_ORIENTATION ROTATION_YAW_90 +#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLEBRAIN2 || \ + CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXFMINI) +# define MAG_BOARD_ORIENTATION ROTATION_YAW_270 #else # define MAG_BOARD_ORIENTATION ROTATION_NONE #endif