38#define E24_VALUES 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0,\
39 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1, 0.0
41#define E12_VALUES 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, 0.0
43#define E6_VALUES 1.0, 1.5, 2.2, 3.3, 4.7, 6.8, 0.0
45#define E3_VALUES 1.0, 2.2, 4.7, 0.0
47#define E1_VALUES 1.0, 0.0
77 R_DATA(
const std::string& aName,
double aValue )
void combine4(uint32_t aSize)
Check if there is a better four component solution.
void SetSeries(uint32_t aSeries)
Interface for CheckBox, RadioButton, RequriedResistor and calculated Results.
void Exclude(double aValue)
If any value of the selected E-series not available, it can be entered as an exclude value.
uint32_t combine2()
Build all 2R combinations from the selected E-series values.
int buildSeriesData(const double aList[])
Add values from aList to m_tables.
std::vector< R_DATA > m_combined_table
void Calculate()
called on calculate button to execute all the 2R, 3R and 4R calculations
std::vector< std::vector< R_DATA > > m_tables
void NewCalc()
initialize next calculation and erase results from previous calculation
std::array< R_DATA, S4R+1 > m_results
void simple_solution(uint32_t aSize)
Search for closest two component solution.
void SetRequiredValue(double aValue)
const std::array< R_DATA, S4R+1 > & GetResults()
void combine3(uint32_t aSize)
Check if there is a better 3 R solution than previous one using only two components.
R_DATA(const std::string &aName, double aValue)