Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
2286 - 1
#ifndef _CAPACITY_H
2
#define _CAPACITY_H
3
 
4
typedef struct
5
{
6
        unsigned short ActualCurrent; // in 0.1A Steps
7
        unsigned short ActualPower;   // in 0.1W
8
        unsigned short UsedCapacity;  // in mAh
9
        unsigned char MinOfMaxPWM;        // BL Power Limit
10
} __attribute__((packed)) Capacity_t;
11
 
12
extern Capacity_t Capacity;
13
 
14
void Capacity_Init(void);
15
void Capacity_Update(void);
16
 
17
#endif //_CAPACITY_H
18