Subversion Repositories FlightCtrl

Rev

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

Rev 2052 Rev 2055
Line 87... Line 87...
87
                                        setActiveParamSet(argument);
87
                                        setActiveParamSet(argument);
88
                                }
88
                                }
89
                                paramSet_readFromEEProm(getActiveParamSet());
89
                                paramSet_readFromEEProm(getActiveParamSet());
90
                                analog_calibrateGyros();
90
                                analog_calibrateGyros();
91
                                attitude_setNeutral();
91
                                attitude_setNeutral();
92
                                flight_setNeutral();
-
 
93
                                controlMixer_setNeutral();
92
                                controlMixer_setNeutral();
94
                                beepNumber(getActiveParamSet());
93
                                beepNumber(getActiveParamSet());
95
                        }
94
                        }
96
#ifdef USE_MK3MAG
95
#ifdef USE_MK3MAG
97
                        else if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED) && argument == 7) {
96
                        else if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED) && argument == 7) {
Line 106... Line 105...
106
                else {
105
                else {
107
                        if (command == COMMAND_ACCCAL && !repeated) {
106
                        if (command == COMMAND_ACCCAL && !repeated) {
108
                                // Run gyro and acc. meter calibration but do not repeat it.
107
                                // Run gyro and acc. meter calibration but do not repeat it.
109
                                analog_calibrateAcc();
108
                                analog_calibrateAcc();
110
                                attitude_setNeutral();
109
                                attitude_setNeutral();
111
                                flight_setNeutral();
-
 
112
                                controlMixer_setNeutral();
110
                                controlMixer_setNeutral();
113
                                beepNumber(getActiveParamSet());
111
                                beepNumber(getActiveParamSet());
114
                        }
112
                        }
115
                }
113
                }
116
        } // end !MOTOR_RUN condition.
114
        } // end !MOTOR_RUN condition.