mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-30 04:30:28 +08:00
feat(boards/px4/fmu-v4): drop UAVCAN, uxrce_dds_client, mag bias estimator and SIH
This board is at 94.7% flash on main and out of heap before MAVLink starts (#28109), so it needs static RAM back, not only flash. Measured by building fmu-v4 with and without each: UAVCAN flash -147276 B static RAM -3520 B uxrce_dds_client flash -59508 B static RAM -64 B Effect: 3652 B of static RAM and 207 kB of flash returned. UAVCAN is the only module here that returns meaningful RAM, and it is paid even though the driver never starts, since UAVCAN_ENABLE defaults to 0. For contrast, dropping five other modules including attitude_estimator_q and local_position_estimator returned 128 B, so module removal is otherwise a flash lever only. The UAVCAN driver costing 3.5 kB of .bss wherever it is compiled in and not started is worth fixing properly for every constrained board. This is a trade and is offered as one. A Pixracer with a DroneCAN GPS or CAN ESCs loses them and must set CONFIG_DRIVERS_UAVCAN=y in a local build. mag_bias_estimator is likewise a deliberate feature removal: MBE_ENABLE defaults to 1 and rcS starts it, so pre-takeoff continuous magnetometer calibration goes away on this board. SIH never runs on hardware and uxrce_dds_client only starts when UXRCE_DDS_CFG points at a port, so neither holds heap today.
This commit is contained in:
1 parent
001817022a
commit
6388739efb
1 file changed
+4
-4
@@ -35,7 +35,7 @@ CONFIG_DRIVERS_SAFETY_BUTTON=y
|
||||
CONFIG_DRIVERS_SMART_BATTERY_BATMON=y
|
||||
CONFIG_COMMON_TELEMETRY=y
|
||||
CONFIG_DRIVERS_TONE_ALARM=y
|
||||
CONFIG_DRIVERS_UAVCAN=y
|
||||
CONFIG_DRIVERS_UAVCAN=n
|
||||
CONFIG_BOARD_UAVCAN_INTERFACES=1
|
||||
CONFIG_MODULES_AIRSPEED_SELECTOR=y
|
||||
CONFIG_MODULES_ATTITUDE_ESTIMATOR_Q=y
|
||||
@@ -60,7 +60,7 @@ CONFIG_MODULES_LANDING_TARGET_ESTIMATOR=y
|
||||
CONFIG_MODULES_LOAD_MON=y
|
||||
CONFIG_MODULES_LOCAL_POSITION_ESTIMATOR=y
|
||||
CONFIG_MODULES_LOGGER=y
|
||||
CONFIG_MODULES_MAG_BIAS_ESTIMATOR=y
|
||||
CONFIG_MODULES_MAG_BIAS_ESTIMATOR=n
|
||||
CONFIG_MODULES_MANUAL_CONTROL=y
|
||||
CONFIG_MODULES_MAVLINK=y
|
||||
CONFIG_MODULES_MC_ATT_CONTROL=y
|
||||
@@ -72,10 +72,10 @@ CONFIG_MODULES_NAVIGATOR=y
|
||||
# CONFIG_NAVIGATOR_GEOFENCE_AVOIDANCE is not set
|
||||
CONFIG_MODULES_RC_UPDATE=y
|
||||
CONFIG_MODULES_SENSORS=y
|
||||
CONFIG_MODULES_SIMULATION_SIMULATOR_SIH=y
|
||||
CONFIG_MODULES_SIMULATION_SIMULATOR_SIH=n
|
||||
CONFIG_MODULES_UUV_ATT_CONTROL=y
|
||||
CONFIG_MODULES_UUV_POS_CONTROL=y
|
||||
CONFIG_MODULES_UXRCE_DDS_CLIENT=y
|
||||
CONFIG_MODULES_UXRCE_DDS_CLIENT=n
|
||||
CONFIG_MODULES_VTOL_ATT_CONTROL=y
|
||||
CONFIG_SYSTEMCMDS_ACTUATOR_TEST=y
|
||||
CONFIG_SYSTEMCMDS_BL_UPDATE=y
|
||||
|
||||
Reference in new issue
Block a user