mirror of https://github.com/ArduPilot/ardupilot
hwdef:include minimal in minimize_common
This commit is contained in:
parent
de05ee442d
commit
5c546dedcb
|
@ -193,7 +193,4 @@ define STM32_PWM_USE_ADVANCED TRUE
|
|||
|
||||
# --------------------- save flash ----------------------
|
||||
include ../include/minimize_features.inc
|
||||
include ../include/minimal.inc
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -198,5 +198,4 @@ define STM32_PWM_USE_ADVANCED TRUE
|
|||
|
||||
# --------------------- save flash ----------------------
|
||||
include ../include/minimize_features.inc
|
||||
include ../include/minimal.inc
|
||||
|
||||
|
|
|
@ -157,11 +157,10 @@ define HAL_BATT_VOLT_SCALE 11
|
|||
define HAL_BATT_CURR_SCALE 25
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
||||
# enable IMU fast sampling
|
||||
define HAL_DEFAULT_INS_FAST_SAMPLE 1
|
||||
|
||||
# no space for bootloader:
|
||||
# no space for bootloader in firmware image:
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
|
|
@ -170,15 +170,9 @@ define STM32_PWM_USE_ADVANCED TRUE
|
|||
|
||||
# save some flash
|
||||
include ../include/save_some_flash.inc
|
||||
define AP_GRIPPER_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define AP_BATTERY_SMBUS_ENABLED 0
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
||||
|
|
|
@ -165,33 +165,7 @@ define HAL_GYROFFT_ENABLED 0
|
|||
# --------------------- save flash ----------------------
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/save_some_flash.inc
|
||||
|
||||
# features that users are likely to want
|
||||
define AP_TRAMP_ENABLED 1
|
||||
define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED 1
|
||||
|
||||
# features that users are unlikely to want
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define AC_PRECLAND_ENABLED 0
|
||||
define AP_ICENGINE_ENABLED 0
|
||||
define AP_OPTICALFLOW_ENABLED 0
|
||||
define HAL_GENERATOR_ENABLED 0
|
||||
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
define GRIPPER_ENABLED 0
|
||||
define HAL_HOTT_TELEM_ENABLED 0
|
||||
define HAL_NMEA_OUTPUT_ENABLED 0
|
||||
define HAL_BUTTON_ENABLED 0
|
||||
define HAL_OREO_LED_ENABLED 0
|
||||
define AP_OPTICALFLOW_ENABLED 0
|
||||
define AP_ICENGINE_ENABLED 0
|
||||
define AP_RANGEFINDER_ENABLED 0
|
||||
define AP_RPM_EFI_ENABLED 0
|
||||
define AP_RPM_PIN_ENABLED 0
|
||||
define AP_RPM_GENERATOR_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
||||
AUTOBUILD_TARGETS Plane
|
||||
|
|
|
@ -151,6 +151,6 @@ define HAL_OSD_TYPE_DEFAULT 1
|
|||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 256
|
||||
|
|
|
@ -33,7 +33,4 @@ IMU Invensensev3 SPI:icm42688 ROTATION_ROLL_180_YAW_270
|
|||
BARO SPL06 I2C:0:0x76
|
||||
define AP_BARO_SPL06_ENABLED 1
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
|
|
@ -157,4 +157,5 @@ define HAL_OSD_TYPE_DEFAULT 1
|
|||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
# no space for bootloader:
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
|
|
@ -152,4 +152,4 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
|||
define HAL_MOUNT_ENABLED 0
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
|
|
|
@ -192,7 +192,6 @@ define HAL_STORAGE_SIZE 16384
|
|||
|
||||
# --------------------- save flash ----------------------
|
||||
include ../include/minimize_features.inc
|
||||
include ../include/minimal.inc
|
||||
|
||||
# setup for OSD
|
||||
undef OSD_ENABLED
|
||||
|
|
|
@ -147,7 +147,7 @@ define STM32_PWM_USE_ADVANCED TRUE
|
|||
|
||||
# save some flash
|
||||
include ../include/save_some_flash.inc
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
define AP_GRIPPER_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
|
|
@ -132,5 +132,5 @@ define HAL_SPRAYER_ENABLED 0
|
|||
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
|
|
@ -164,4 +164,4 @@ define HAL_BATT_CURR_SCALE 17.0
|
|||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_features.inc
|
||||
|
|
|
@ -164,4 +164,4 @@ define HAL_BATT_CURR_SCALE 17.0
|
|||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_features.inc
|
||||
|
|
|
@ -173,5 +173,4 @@ include ../include/save_some_flash.inc
|
|||
define HAL_SPEKTRUM_TELEM_ENABLED 0
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_features.inc
|
||||
|
|
|
@ -14,9 +14,6 @@ include ../include/minimize_features.inc
|
|||
# we don't have a flash page spare to write parameters to:
|
||||
undef STORAGE_FLASH_PAGE
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
|
||||
# produce this error if we are on a 2M board and using 1M firmware
|
||||
define BOARD_CHECK_F427_USE_2M "2M flash - use fmuv3 firmware"
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
include minimal_GPS.inc
|
||||
include minimal_Airspeed.inc
|
|
@ -1,10 +0,0 @@
|
|||
# include file to reduce flash by including *fewer* Airspeed drivers
|
||||
|
||||
define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED 0
|
||||
define AP_AIRSPEED_MS4525_ENABLED 1
|
||||
define AP_AIRSPEED_ANALOG_ENABLED 1
|
||||
define AP_AIRSPEED_MS5525_ENABLED 1
|
||||
define AP_AIRSPEED_SDP3X_ENABLED 1
|
||||
define AP_AIRSPEED_NMEA_ENABLED 1 # additional checks for vehicle type in .cpp
|
||||
|
||||
define AP_AIRSPEED_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
|
@ -25,8 +25,12 @@ define AP_NOTIFY_NCP5623_ENABLED 0
|
|||
# HOTT telemetry is quite rare, so we don't include it on smaller boards
|
||||
define HAL_HOTT_TELEM_ENABLED 0
|
||||
|
||||
# smaller boards lose SIRF GPS support
|
||||
define AP_GPS_SIRF_ENABLED 0
|
||||
# smaller boards lose some GPS support
|
||||
define AP_GPS_BACKEND_DEFAULT_ENABLED 0
|
||||
define AP_GPS_UBLOX_ENABLED 1
|
||||
define AP_GPS_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
||||
undef HAL_MSP_GPS_ENABLED
|
||||
define HAL_MSP_GPS_ENABLED HAL_MSP_SENSORS_ENABLED
|
||||
|
||||
# no moving baseline support:
|
||||
define GPS_MOVING_BASELINE 0
|
||||
|
@ -113,3 +117,12 @@ define MODE_AUTOROTATE_ENABLED 0
|
|||
|
||||
# don't send RELAY_STATUS messages:
|
||||
define AP_MAVLINK_MSG_RELAY_STATUS_ENABLED 0
|
||||
|
||||
#fewer airspeed sensors
|
||||
define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED 0
|
||||
define AP_AIRSPEED_MS4525_ENABLED 1
|
||||
define AP_AIRSPEED_ANALOG_ENABLED 1
|
||||
define AP_AIRSPEED_MS5525_ENABLED 1
|
||||
define AP_AIRSPEED_SDP3X_ENABLED 1
|
||||
define AP_AIRSPEED_NMEA_ENABLED 1 # additional checks for vehicle type in .cpp
|
||||
define AP_AIRSPEED_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
||||
|
|
|
@ -153,4 +153,4 @@ define OSD_ENABLED 1
|
|||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
|
|
|
@ -145,6 +145,6 @@ define HAL_OSD_TYPE_DEFAULT 1
|
|||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
|
||||
|
|
|
@ -152,7 +152,7 @@ define HAL_OSD_TYPE_DEFAULT 1
|
|||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
# minimal drivers to reduce flash usage
|
||||
include ../include/minimal.inc
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue