Skip to content

(feature) Move E-series resistor selector table out of resistor value

Steve Bollinger requested to merge mail4steveb/kicad:issue14672-01s into master

(feature) Move E-series resistor selector table out of resistor value calculator in PCB calculator

This change makes the following changes suggested by JV in the issue.

1. remove the E-series table in the resistor calculators help text
2. rename the resistor calculator from e-series into resistor-calculator in the UI
3. move the resistor calculator to system design branch of UI tree selector
4. add all series up to E96 or higher (E192) into eseries.h
5. write static lookup table e-series using eseries.h (wxWidgets, not HTML)
6. locate this new lookup table in the memo branch of UI tree selector

In addition I did the following at the same time:

7. I moved the E-series values in eseries.h into the 100 decade so they can all be
represented as integers to retain full precision.
8. Removed everything in eseries.h into a namespace and removed the #defines so
that this file does not add anything to the global namespace.
9. I moved all the resistor substitution calculation functions and code out of
the global kicad directories and into the pcb calculator directories. It was not
used elsewhere.
10. In order to remove the #defines of the E series values I "C++ed up" eseries.h
a bit. You now create a class which is a subclass of std::vector<T> to get the
values you want.

#14627 (closed)

Merge request reports