Rev 2003 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2003 | Rev 2005 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | // global varialbles |
63 | // global varialbles |
64 | unsigned short update_timer = 0; |
64 | unsigned short update_timer = 0; |
65 | Capacity_t Capacity; |
65 | Capacity_t Capacity; |
Line 66... | Line 66... | ||
66 | 66 | ||
- | 67 | // initialize capacity calculation |
|
67 | // initialize capacity calculation |
68 | |
68 | void Capacity_Init(void) |
69 | void Capacity_Init(void) |
69 | { |
70 | { |
70 | Capacity.ActualCurrent = 0; |
71 | Capacity.ActualCurrent = 0; |
71 | Capacity.UsedCapacity = 0; |
72 | Capacity.UsedCapacity = 0; |
72 | Capacity.ActualPower = 0; |
73 | Capacity.ActualPower = 0; |
- | 74 | Capacity.MinOfMaxPWM = 0; |
|
- | 75 | #ifdef WITH_REMAINCAPACITY // only include functions if DEBUG is defined in main.h |
|
73 | Capacity.MinOfMaxPWM = 0; |
76 | #warning : "### with REMAIN CAPACITY ###" |
- | 77 | Capacity.RemainCapacity = (EE_Parameter.UserParam1*100); |
|
74 | //Capacity.RemainCapacity = (EE_Parameter.UserParam1*100); |
78 | #endif |
75 | update_timer = SetDelay(CAPACITY_UPDATE_INTERVAL); |
79 | update_timer = SetDelay(CAPACITY_UPDATE_INTERVAL); |
Line 76... | Line 80... | ||
76 | } |
80 | } |
77 | 81 |