KiCad PCB EDA Suite

#include <eseries.h>
Public Member Functions  
E_SERIES ()  
void  Exclude (double aValue) 
If any value of the selected Eseries not available, it can be entered as an exclude value. More...  
void  NewCalc () 
initialize next calculation and erase results from previous calculation More...  
void  Calculate () 
called on calculate button to execute all the 2R, 3R and 4R calculations More...  
void  SetSeries (uint32_t aSeries) 
Interface for CheckBox, RadioButton, RequriedResistor and calculated Results. More...  
void  SetRequiredValue (double aValue) 
const std::array< R_DATA, S4R+1 > &  GetResults () 
Private Member Functions  
int  buildSeriesData (const double aList[]) 
Add values from aList to m_tables. More...  
uint32_t  combine2 () 
Build all 2R combinations from the selected Eseries values. More...  
void  simple_solution (uint32_t aSize) 
Search for closest two component solution. More...  
void  combine3 (uint32_t aSize) 
Check if there is a better 3 R solution than previous one using only two components. More...  
void  combine4 (uint32_t aSize) 
Check if there is a better four component solution. More...  
void  strip3 () 
void  strip4 () 
Private Attributes  
std::vector< std::vector< R_DATA > >  m_tables 
std::vector< R_DATA >  m_combined_table 
std::array< R_DATA, S4R+1 >  m_results 
uint32_t  m_series = E6 
double  m_required_value = 0.0 
E_SERIES::E_SERIES  (  ) 
Definition at line 81 of file eseries.cpp.
References buildSeriesData(), E12_VALUES, E1_VALUES, E24_VALUES, E3_VALUES, E6_VALUES, and m_combined_table.

private 
Add values from aList to m_tables.
Covers all decades between FIRST_VALUE and LAST_VALUE.
Definition at line 109 of file eseries.cpp.
References FIRST_VALUE, LAST_VALUE, m_tables, and strValue().
Referenced by E_SERIES().
void E_SERIES::Calculate  (  ) 
called on calculate button to execute all the 2R, 3R and 4R calculations
Definition at line 333 of file eseries.cpp.
References combine2(), combine3(), m_results, S2R, simple_solution(), strip3(), and strip4().
Referenced by PANEL_E_SERIES::OnCalculateESeries().

private 
Build all 2R combinations from the selected Eseries values.
Precalculated value combinations are saved in intermediate look up table m_combined_table
Definition at line 245 of file eseries.cpp.
References m_combined_table, m_series, and m_tables.
Referenced by Calculate().

private 
Check if there is a better 3 R solution than previous one using only two components.
aSize  gives the number of available combinations to be checked inside m_combined_table. Therefore m_combined_table is combined with the primary Eseries look up table. The 3R result with smallest deviation will be saved in results if better than 2R 
Definition at line 278 of file eseries.cpp.
References std::abs(), combine4(), m_combined_table, m_required_value, m_results, m_series, m_tables, S2R, and S3R.
Referenced by Calculate().

private 
Check if there is a better four component solution.
aSsize  gives the number of 2R combinations to be checked inside m_combined_table Occupied calculation time depends from number of available Eseries values with the power of 4 why execution for E12 is conditional with 4R check box for the case the previously found 3R solution is already exact 
Definition at line 176 of file eseries.cpp.
References std::abs(), m_combined_table, m_required_value, m_results, PROF_TIMER::msecs(), S3R, and S4R.
Referenced by combine3().
void E_SERIES::Exclude  (  double  aValue  ) 
If any value of the selected Eseries not available, it can be entered as an exclude value.
aValue  is the value to exclude from calculation Values to exclude are set to false in the selected Eseries source lookup table 
Definition at line 145 of file eseries.cpp.
References m_series, and m_tables.
Referenced by PANEL_E_SERIES::OnCalculateESeries().
Definition at line 119 of file eseries.h.
References m_results.
Referenced by PANEL_E_SERIES::OnCalculateESeries().
void E_SERIES::NewCalc  (  ) 
initialize next calculation and erase results from previous calculation
Definition at line 232 of file eseries.cpp.
References m_combined_table, m_results, m_series, and m_tables.
Referenced by PANEL_E_SERIES::OnCalculateESeries().

inline 
Definition at line 116 of file eseries.h.
References m_required_value.
Referenced by PANEL_E_SERIES::OnCalculateESeries().

inline 
Interface for CheckBox, RadioButton, RequriedResistor and calculated Results.
Definition at line 115 of file eseries.h.
References m_series.
Referenced by PANEL_E_SERIES::OnESeriesSelection().

private 
Search for closest two component solution.
aSize  is the number of valid 2R combinations in m_combined_table on where to search The 2R result with smallest deviation will be saved in results 
Definition at line 158 of file eseries.cpp.
References std::abs(), m_combined_table, m_required_value, m_results, and S2R.
Referenced by Calculate().

private 
Definition at line 348 of file eseries.cpp.
References m_results, and S3R.
Referenced by Calculate().

private 
Definition at line 367 of file eseries.cpp.
References m_results, and S4R.
Referenced by Calculate().

private 
Definition at line 195 of file eseries.h.
Referenced by combine2(), combine3(), combine4(), E_SERIES(), NewCalc(), and simple_solution().

private 
Definition at line 199 of file eseries.h.
Referenced by combine3(), combine4(), SetRequiredValue(), and simple_solution().
Definition at line 197 of file eseries.h.
Referenced by Calculate(), combine3(), combine4(), GetResults(), NewCalc(), simple_solution(), strip3(), and strip4().

private 
Definition at line 198 of file eseries.h.
Referenced by combine2(), combine3(), Exclude(), NewCalc(), and SetSeries().

private 
Definition at line 183 of file eseries.h.
Referenced by buildSeriesData(), combine2(), combine3(), Exclude(), and NewCalc().