-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_HVU.cpp
43 lines (29 loc) · 1.09 KB
/
main_HVU.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
using namespace std;
#include "schematic.h"
#include "component.h"
#include "capacitor_WUERTH.h"
#include "resistor_VISHAY_CRCWe3.h"
#include "IC_TI.h"
#include "IC_AD.h"
#include "IC_MAXIM.h"
#include "inductor_WUERTH.h"
#include "diode.h"
#include "PCB.h"
#include "utils.h"
int main(){
cout << "Reliability Calculator" << endl;
cout << "\tcompiled @ " << __DATE__ << " " << __TIME__ << " using GCC " << __VERSION__ << endl << endl;
cout << "FIT for 0.5% in 6 years " << utils::FailureRate2FIT(0.5/100., 6*365*24.) << endl;
component::setAmbientTemperature(45);
schematic* HVU = new schematic("High Voltage Unit");
HVU -> addComponent( new IC_TI("U2", "LP2981-50DBVT"));
HVU -> addComponent( new IC_TI("U3", "REF3033"));
HVU -> addComponent( new IC_TI("U4", "LMC555CMM"));
HVU -> addComponent( new IC_AD("U5", "AD8603"));
HVU -> addComponent( new IC_AD("U6", "AD8603"));
HVU -> addComponent( new IC_MAXIM("U7", "MAX3471EUA"));
HVU -> setVerboseOutput(true); // enable verbose output
HVU -> getFIT();
return 0;
}