SITL: add AP_MOTORS_FRAME_xxx_ENABLED guards #28885
Open
+39
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
AP_MOTORS_FRAME_xxx_ENABLED
guards toSIM_Frame.cpp
as they are applied inAP_Motors_Matrix.cpp
. This does not change default behaviour and allows the majority of the motor mixes to be disabled in theesp32xxempty
boards which frees up RAM.Related
Testing
esp32empty
Before
Total sizes: Used static DRAM: 147848 bytes ( 32888 remain, 81.8% used) .data size: 19368 bytes .bss size: 128480 bytes Used static IRAM: 113718 bytes ( 17354 remain, 86.8% used) .text size: 112691 bytes .vectors size: 1027 bytes Used Flash size : 1856264 bytes .text: 1548788 bytes .rodata: 307220 bytes Total image size: 1989350 bytes (.bin may be padded larger)
After
Total sizes: Used static DRAM: 120488 bytes ( 60248 remain, 66.7% used) .data size: 19368 bytes .bss size: 101120 bytes Used static IRAM: 113718 bytes ( 17354 remain, 86.8% used) .text size: 112691 bytes .vectors size: 1027 bytes Used Flash size : 1849596 bytes .text: 1545128 bytes .rodata: 304212 bytes Total image size: 1982682 bytes (.bin may be padded larger)
esp32s3empty
Before
Total sizes: Used stat D/IRAM: 236610 bytes ( 105150 remain, 69.2% used) .data size: 21960 bytes .bss size: 109784 bytes .text size: 103839 bytes .vectors size: 1027 bytes Used Flash size : 1636580 bytes .text: 1354860 bytes .rodata: 281464 bytes Total image size: 1763406 bytes (.bin may be padded larger)
After
Total sizes: Used stat D/IRAM: 209250 bytes ( 132510 remain, 61.2% used) .data size: 21960 bytes .bss size: 82424 bytes .text size: 103839 bytes .vectors size: 1027 bytes Used Flash size : 1629848 bytes .text: 1351152 bytes .rodata: 278440 bytes Total image size: 1756674 bytes (.bin may be padded larger)