Subversion Repositories FlightCtrl

Rev

Rev 1828 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1486 killagreg 1
#ifndef _CAPACITY_H
2
#define _CAPACITY_H
3
 
4
typedef struct
5
{
6
        unsigned short ActualCurrent; // in 0.1A Steps
1526 killagreg 7
        unsigned short ActualPower;   // in 0.1W
1829 - 8
        signed short UsedCapacity;  // in mAh           //Modified  by metro
9
        signed short RemainCapacity;  // in mAh //Added by metro
1672 killagreg 10
        unsigned char MinOfMaxPWM;        // BL Power Limit
1486 killagreg 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