Rev 1887 | Rev 1963 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1887 | Rev 1960 | ||
---|---|---|---|
Line 80... | Line 80... | ||
80 | // Gyro calinbration, with or without selecting a new parameter-set. |
80 | // Gyro calinbration, with or without selecting a new parameter-set. |
81 | if (argument > 0 && argument < 6) { |
81 | if (argument > 0 && argument < 6) { |
82 | // A valid parameter-set (1..5) was chosen - use it. |
82 | // A valid parameter-set (1..5) was chosen - use it. |
83 | setActiveParamSet(argument); |
83 | setActiveParamSet(argument); |
84 | } |
84 | } |
85 | ParamSet_ReadFromEEProm(getActiveParamSet()); |
85 | paramSet_readFromEEProm(getActiveParamSet()); |
86 | attitude_setNeutral(); |
86 | attitude_setNeutral(); |
87 | flight_setNeutral(); |
87 | flight_setNeutral(); |
88 | controlMixer_setNeutral(); |
88 | controlMixer_setNeutral(); |
89 | beepNumber(getActiveParamSet()); |
89 | beepNumber(getActiveParamSet()); |
90 | } else if (staticParams.GlobalConfig & (CFG_COMPASS_ACTIVE |
90 | } else if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE |
91 | | CFG_GPS_ACTIVE) && argument == 7) { |
91 | | CFG_GPS_ACTIVE) && argument == 7) { |
92 | // If right stick is centered and down |
92 | // If right stick is centered and down |
93 | // TODO: Out of here! State machine instead. |
93 | // TODO: Out of here! State machine instead. |
94 | compassCalState = 1; |
94 | compassCalState = 1; |
95 | beep(1000); |
95 | beep(1000); |