Subversion Repositories FlightCtrl

Rev

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

Rev 1775 Rev 1796
Line 72... Line 72...
72
        // 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?
73
        // isFlying = 0;
73
        // isFlying = 0;
74
        // check roll/pitch stick position
74
        // check roll/pitch stick position
75
        // if pitch stick is top or roll stick is left or right --> change parameter setting
75
        // if pitch stick is top or roll stick is left or right --> change parameter setting
76
        // according to roll/pitch stick position
76
        // according to roll/pitch stick position
77
         
77
 
78
        if (argument < 6) {
78
        if (argument < 6) {
79
          // Gyro calinbration, with or without selecting a new parameter-set.
79
          // Gyro calinbration, with or without selecting a new parameter-set.
80
          if(argument > 0 && argument < 6) {
80
          if(argument > 0 && argument < 6) {
81
            // A valid parameter-set (1..5) was chosen - use it.
81
            // A valid parameter-set (1..5) was chosen - use it.
82
            setActiveParamSet(argument);
82
            setActiveParamSet(argument);
Line 91... Line 91...
91
          // TODO: Out of here! State machine instead.
91
          // TODO: Out of here! State machine instead.
92
          compassCalState = 1;
92
          compassCalState = 1;
93
          beep(1000);
93
          beep(1000);
94
        }
94
        }
95
      }
95
      }
96
     
96
 
97
      // save the ACC neutral setting to eeprom
97
      // save the ACC neutral setting to eeprom
98
      else  {
98
      else  {
99
        if(command == COMMAND_ACCCAL && !repeated) {
99
        if(command == COMMAND_ACCCAL && !repeated) {
100
          // Run gyro and acc. meter calibration but do not repeat it.
100
          // Run gyro and acc. meter calibration but do not repeat it.
101
          GRN_OFF;
101
          GRN_OFF;