-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (27 loc) · 1010 Bytes
/
Copy pathmain.cpp
File metadata and controls
35 lines (27 loc) · 1010 Bytes
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
#include <QCoreApplication>
#include <QDebug>
#include <QTimer>
#include "canbusnodedetector.h"
#include "chargingrelaycontroller.h"
#include "tccharger.h"
#include "tcchargercontroller.h"
#include "leafchademoport.h"
#include "leafobcharger.h"
#include "leafhvbattery.h"
#include "lim.h"
#include "openinverter/params.h"
int main(int argc, char* argv[])
{
QCoreApplication app(argc, argv);
ChargingRelayController relays;
CanBusNodeDetector nodeDetector;
nodeDetector.registerCanBusNodeType<TcCharger>(0x18ff50e7); // protocol 998
nodeDetector.registerCanBusNodeType<TcCharger>(0x18ff50e8);
nodeDetector.registerCanBusNodeType<TcCharger>(0x18ff50e5); // protocol 1430
nodeDetector.registerCanBusNodeType<LeafChademoPort>(0x100);
nodeDetector.registerCanBusNodeType<LeafOBCharger>(0x390);
nodeDetector.registerCanBusNodeType<LeafHVBattery>(0x1db);
nodeDetector.registerCanBusNodeType<I3LIM>(0x3b4);
TcChargerController tcController;
return app.exec();
}