Skip to content

Commit

Permalink
AP_HAL_ChibiOS: use standard FPV config for SpeedyBeeF405WING
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Mar 13, 2024
1 parent ab68066 commit aef7e97
Showing 1 changed file with 14 additions and 53 deletions.
67 changes: 14 additions & 53 deletions libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -169,58 +169,19 @@ PC13 PINIO1 OUTPUT GPIO(81) LOW

define STM32_PWM_USE_ADVANCED TRUE

define HAL_WITH_DSP FALSE

# save some flash

# disable SMBUS and fuel battery monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define AP_BATTMON_SYNTHETIC_CURRENT_ENABLED 0
define HAL_BATTMON_INA2XX_ENABLED 0

# disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define AP_GRIPPER_ENABLED 0
define HAL_GENERATOR_ENABLED 0
define AP_ICENGINE_ENABLED 0
#define LANDING_GEAR_ENABLED 0
define WINCH_ENABLED 0
define HAL_ADSB_ENABLED 0

define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
#define HAL_BARO_WIND_COMP_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0


# Disable un-needed hardware drivers
define HAL_WITH_ESC_TELEM 0
define AP_FETTEC_ONEWIRE_ENABLED 0

define AP_VOLZ_ENABLED 0
define AP_ROBOTISSERVO_ENABLE 0
define HAL_PICCOLO_CAN_ENABLE 0
define HAL_TORQEEDO_ENABLED 0
define HAL_RUNCAM_ENABLED 0
define HAL_HOTT_TELEM_ENABLED 0
define HAL_NMEA_OUTPUT_ENABLED 0
define HAL_BUTTON_ENABLED 0
define AP_NOTIFY_OREOLED_ENABLED 0

#only support MS4525 ANALOG ASP5033 driver
define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED 0
define AP_AIRSPEED_MS4525_ENABLED 1
define AP_AIRSPEED_ANALOG_ENABLED 1
define AP_AIRSPEED_ASP5033_ENABLED 1

#only support UBLOX and NMEA GPS driver
define AP_GPS_BACKEND_DEFAULT_ENABLED 0
define AP_GPS_UBLOX_ENABLED 1
define AP_GPS_NMEA_ENABLED 1
define HAL_MSP_GPS_ENABLED 1

define AP_TRAMP_ENABLED 1
# minimal drivers to reduce flash usage
include ../include/minimize_fpv_osd.inc

undef AP_CAMERA_MOUNT_ENABLED
undef AP_LANDINGGEAR_ENABLED
undef HAL_MOUNT_ENABLED
undef HAL_MOUNT_SERVO_ENABLED
undef QAUTOTUNE_ENABLED

define AP_CAMERA_MOUNT_ENABLED 1
define AP_LANDINGGEAR_ENABLED 1
define HAL_MOUNT_ENABLED 1
define HAL_MOUNT_SERVO_ENABLED 1
define QAUTOTUNE_ENABLED 1

define DEFAULT_NTF_LED_TYPES 257

0 comments on commit aef7e97

Please sign in to comment.