Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1486 killagreg 1
#ifndef _CAPACITY_H
2
#define _CAPACITY_H
3
 
1506 holgerb 4
#define STATIC_CURRENT 4  // always calculate with a Current of 0,xA
5
extern unsigned char OwnConsumptionCurrent;  // always calculate with a Current of 0,xA
6
 
1486 killagreg 7
typedef struct
8
{
9
        unsigned short ActualCurrent; // in 0.1A Steps
10
        unsigned short UsedCapacity;    // in mAh
11
} __attribute__((packed)) Capacity_t;
12
 
13
extern Capacity_t Capacity;
14
 
15
void Capacity_Init(void);
16
void Capacity_Update(void);
17
 
18
#endif //_CAPACITY_H
19