AP_Compass: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
This commit is contained in:
parent
b734777b95
commit
eb75d73952
@ -23,7 +23,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
// AVR LibC Includes
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
|
@ -29,9 +29,7 @@
|
||||
#define AP_COMPASS_MOT_COMP_CURRENT 0x02
|
||||
|
||||
// setup default mag orientation for some board types
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
# define MAG_BOARD_ORIENTATION ROTATION_ROLL_180
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RASPILOT
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RASPILOT
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user