Prefer part selector footprint by smaller area #375
Merged
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.
A cleaner version of sorting parts instead of by footprint name before, which mostly worked for 0402, ..., but did awful things for diodes. Also replaces the smd-min-package with a footprint (courtyard) area range. The default is set around 0603 (4mm^2).
Removes a bunch of footprint refinements on example designs, these mostly were to get reasonable diode / FET selections. The area-minimization now handles it. Some examples go from SOD-123 to SOD-323.
The footprint area calculator does not handle arcs, that may be future work.
Some cleanup of the existing parts tables, to unify sorting criteria and deduplicate code. A future PR will refactor those parts more.