forked from typhoon-hil/CHAdeMO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.h
More file actions
35 lines (29 loc) · 729 Bytes
/
globals.h
File metadata and controls
35 lines (29 loc) · 729 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
#ifndef GLOBAL_H_
#define GLOBAL_H_
#define MAX_CHARGE_V 158
#define MAX_CHARGE_A 130
#define TARGET_CHARGE_V 160
#define MIN_CHARGE_A 20
#define CAPACITY 180
extern bool in1, in2;
extern bool out1, out2;
typedef struct
{
float ampHours;
float kiloWattHours;
float packSizeKWH;
unsigned short int maxChargeVoltage;
unsigned short int targetChargeVoltage;
unsigned char maxChargeAmperage;
unsigned char minChargeAmperage;
unsigned char capacity;
} EESettings;
extern EESettings settings;
extern float Voltage;
extern float Current;
extern float Power;
//extern unsigned long CurrentMillis;
extern int Count;
extern unsigned short int errorDoProcessing;
extern unsigned short int errorHandle;
#endif