Subversion Repositories FlightCtrl

Rev

Rev 1739 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1739 Rev 1756
Line 78... Line 78...
78
// called in main loop at a regular interval
78
// called in main loop at a regular interval
79
void Capacity_Update(void)
79
void Capacity_Update(void)
80
{
80
{
81
        unsigned short Current, SetSum; // max value will be 255 * 12 = 3060
81
        unsigned short Current, SetSum; // max value will be 255 * 12 = 3060
82
        static unsigned short SubCounter = 0;
82
        static unsigned short SubCounter = 0;
83
        static unsigned short CurrentOffset = 0;
83
//      static unsigned short CurrentOffset = 0;
84
        static unsigned long SumCurrentOffset = 0;
84
        static unsigned long SumCurrentOffset = 0;
85
        unsigned char i, NumOfMotors, MinOfMaxPWM;
85
        unsigned char i, NumOfMotors, MinOfMaxPWM;
Line 86... Line 86...
86
 
86
 
87
        if(CheckDelay(update_timer))
87
        if(CheckDelay(update_timer))