Subversion Repositories FlightCtrl

Rev

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

Rev 1963 Rev 1964
Line 66... Line 66...
66
        uint8_t argument = controlMixer_getArgument();
66
        uint8_t argument = controlMixer_getArgument();
Line 67... Line 67...
67
 
67
 
68
        if (!(MKFlags & MKFLAG_MOTOR_RUN)) {
68
        if (!(MKFlags & MKFLAG_MOTOR_RUN)) {
69
                if (command == COMMAND_GYROCAL && !repeated) {
69
                if (command == COMMAND_GYROCAL && !repeated) {
70
                        // Run gyro calibration but do not repeat it.
-
 
Line 71... Line 70...
71
                        GRN_OFF;
70
                        // Run gyro calibration but do not repeat it.
72
 
71
 
73
                        // TODO: out of here. Anyway, MKFLAG_MOTOR_RUN is cleared. Not enough?
72
                        // TODO: out of here. Anyway, MKFLAG_MOTOR_RUN is cleared. Not enough?
74
                        // isFlying = 0;
73
                        // isFlying = 0;
Line 98... Line 97...
98
 
97
 
99
                // save the ACC neutral setting to eeprom
98
                // save the ACC neutral setting to eeprom
100
                else {
99
                else {
101
                        if (command == COMMAND_ACCCAL && !repeated) {
100
                        if (command == COMMAND_ACCCAL && !repeated) {
102
                                // Run gyro and acc. meter calibration but do not repeat it.
-
 
103
                                GRN_OFF;
101
                                // Run gyro and acc. meter calibration but do not repeat it.
104
                                analog_calibrateAcc();
102
                                analog_calibrateAcc();
105
                                attitude_setNeutral();
103
                                attitude_setNeutral();
106
                                flight_setNeutral();
104
                                flight_setNeutral();
107
                                controlMixer_setNeutral();
105
                                controlMixer_setNeutral();