Subversion Repositories FlightCtrl

Rev

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

Rev 2106 Rev 2108
Line 19... Line 19...
19
        uint8_t command = controlMixer_getCommand();
19
        uint8_t command = controlMixer_getCommand();
20
        uint8_t repeated = controlMixer_isCommandRepeated();
20
        uint8_t repeated = controlMixer_isCommandRepeated();
21
        uint8_t argument = controlMixer_getArgument();
21
        uint8_t argument = controlMixer_getArgument();
Line 22... Line 22...
22
 
22
 
23
        // TODO! Mode change gadget of some kind.
23
        // TODO! Mode change gadget of some kind.
24
        if (!isMotorRunning) {
24
        if (!isFlying) {
25
                if (command == COMMAND_GYROCAL && !repeated) {
25
                if (command == COMMAND_GYROCAL && !repeated) {
26
                        // Gyro calinbration, with or without selecting a new parameter-set.
26
                        // Gyro calinbration, with or without selecting a new parameter-set.
27
                        paramSet_readFromEEProm(1);
27
                        paramSet_readFromEEProm(1);
28
                        analog_calibrate();
28
                        analog_calibrate();