Subversion Repositories FlightCtrl

Rev

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

Rev 2108 Rev 2109
Line 17... Line 17...
17
         * Get the current command (start/stop motors, calibrate), if any.
17
         * Get the current command (start/stop motors, calibrate), if any.
18
         */
18
         */
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();
22
 
-
 
23
        // TODO! Mode change gadget of some kind.
-
 
24
        if (!isFlying) {
22
        if (!isFlying) {
25
                if (command == COMMAND_GYROCAL && !repeated) {
23
                if (command == COMMAND_GYROCAL && !repeated) {
26
                        // Gyro calinbration, with or without selecting a new parameter-set.
24
                        // Gyro calinbration, with or without selecting a new parameter-set.
27
                        paramSet_readFromEEProm(1);
25
                        paramSet_readFromEEProm(1);
28
                        analog_calibrate();
26
                        analog_calibrate();