Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
1995 - 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
        signed short UsedCapacity;  // in mAh           //Modified  by metro
2000 - 9
#ifdef WITH_REMAINCAPACITY      // only include functions if DEBUG is defined in main.h
10
 
11
        #warning : "### with REMAIN CAPACITY ###"
1995 - 12
        signed short RemainCapacity;  // in mAh //Added by metro
2000 - 13
#endif
1995 - 14
        unsigned char MinOfMaxPWM;        // BL Power Limit
15
} __attribute__((packed)) Capacity_t;
16
 
17
extern Capacity_t Capacity;
18
 
19
void Capacity_Init(void);
20
void Capacity_Update(void);
21
 
22
#endif //_CAPACITY_H
23