diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-SimOnHardWare/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-SimOnHardWare/hwdef.dat index 8228b5e156..c19be7b7b4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-SimOnHardWare/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-SimOnHardWare/hwdef.dat @@ -1,32 +1,6 @@ # Firmware suitable for flashing into a CubeOrange to experience Simulation-on-Hardware include ../CubeOrange/hwdef.dat - -env SIM_ENABLED 1 - -define INS_MAX_INSTANCES 2 -define HAL_COMPASS_MAX_SENSORS 2 - -define HAL_NAVEKF2_AVAILABLE 0 -define EK3_FEATURE_BODY_ODOM 0 -define EK3_FEATURE_EXTERNAL_NAV 0 -define EK3_FEATURE_DRAG_FUSION 0 -define HAL_ADSB_ENABLED 0 -define HAL_MOUNT_ENABLED 0 -define HAL_PROXIMITY_ENABLED 0 -define HAL_VISUALODOM_ENABLED 0 -define HAL_GENERATOR_ENABLED 0 -# define HAL_LOGGING_ENABLED 0 -define HAL_CRSF_TELEM_ENABLED 0 -#define OSD_ENABLED 0 - -define AP_MOTORS_FRAME_DEFAULT_ENABLED 0 -define AP_MOTORS_FRAME_QUAD_ENABLED 1 - -define LANDING_GEAR_ENABLED 0 -define HAL_MSP_OPTICALFLOW_ENABLED 0 -define HAL_SUPPORT_RCOUT_SERIAL 0 -define HAL_HOTT_TELEM_ENABLED 0 -# define HAL_WITH_DSP 0 +include ../include/SimOnHW.inc AUTOBUILD_TARGETS Copter diff --git a/libraries/AP_HAL_ChibiOS/hwdef/include/SimOnHW.inc b/libraries/AP_HAL_ChibiOS/hwdef/include/SimOnHW.inc new file mode 100644 index 0000000000..d431193110 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/include/SimOnHW.inc @@ -0,0 +1,26 @@ +env SIM_ENABLED 1 + +define INS_MAX_INSTANCES 2 +define HAL_COMPASS_MAX_SENSORS 2 + +define HAL_NAVEKF2_AVAILABLE 0 +define EK3_FEATURE_BODY_ODOM 0 +define EK3_FEATURE_EXTERNAL_NAV 0 +define EK3_FEATURE_DRAG_FUSION 0 +define HAL_ADSB_ENABLED 0 +define HAL_MOUNT_ENABLED 0 +define HAL_PROXIMITY_ENABLED 0 +define HAL_VISUALODOM_ENABLED 0 +define HAL_GENERATOR_ENABLED 0 +# define HAL_LOGGING_ENABLED 0 +define HAL_CRSF_TELEM_ENABLED 0 +#define OSD_ENABLED 0 + +define AP_MOTORS_FRAME_DEFAULT_ENABLED 0 +define AP_MOTORS_FRAME_QUAD_ENABLED 1 + +define LANDING_GEAR_ENABLED 0 +define HAL_MSP_OPTICALFLOW_ENABLED 0 +define HAL_SUPPORT_RCOUT_SERIAL 0 +define HAL_HOTT_TELEM_ENABLED 0 +# define HAL_WITH_DSP 0