Subversion Repositories FlightCtrl

Rev

Rev 2027 | Rev 2048 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2027 Rev 2039
Line 35... Line 35...
35
// not implemented.
35
// not implemented.
36
int16_t EC_getVariable(uint8_t varNum) {
36
int16_t EC_getVariable(uint8_t varNum) {
37
        return 0;
37
        return 0;
38
}
38
}
Line 39... Line 39...
39
 
39
 
40
void EC_update() {
40
void EC_periodicTask() {
41
        if (externalControlActive) {
41
        if (externalControlActive) {
42
                externalControlActive--;
42
                externalControlActive--;
43
                EC_PRTY[CONTROL_PITCH] = externalControl.pitch * (int16_t) staticParams.stickP;
43
                EC_PRTY[CONTROL_PITCH] = externalControl.pitch * (int16_t) staticParams.stickP;
44
                EC_PRTY[CONTROL_ROLL] = externalControl.roll * (int16_t) staticParams.stickP;
44
                EC_PRTY[CONTROL_ROLL] = externalControl.roll * (int16_t) staticParams.stickP;