Rev 706 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 706 | Rev 707 | ||
---|---|---|---|
Line 107... | Line 107... | ||
107 | WDTCSR |= (1<<WDCE)|(1<<WDE); |
107 | WDTCSR |= (1<<WDCE)|(1<<WDE); |
108 | WDTCSR = 0; |
108 | WDTCSR = 0; |
Line 109... | Line 109... | ||
109 | 109 | ||
Line 110... | Line 110... | ||
110 | BeepTime = 2000; |
110 | BeepTime = 2000; |
111 | 111 | ||
112 | PPM_in[CH_GAS] = 0; |
112 | PPM_in[CH_THRUST] = 0; |
113 | StickYaw = 0; |
113 | StickYaw = 0; |
Line 114... | Line 114... | ||
114 | StickRoll = 0; |
114 | StickRoll = 0; |
Line 148... | Line 148... | ||
148 | //kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
148 | //kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
149 | timer = SetDelay(500); |
149 | timer = SetDelay(500); |
150 | while(!CheckDelay(timer)); |
150 | while(!CheckDelay(timer)); |
Line 151... | Line 151... | ||
151 | 151 | ||
152 | //Compass calibration? |
152 | //Compass calibration? |
153 | if(PPM_in[ParamSet.ChannelAssignment[CH_GAS]] > 100 && PPM_in[ParamSet.ChannelAssignment[CH_YAW]] > 100) |
153 | if(PPM_in[ParamSet.ChannelAssignment[CH_THRUST]] > 100 && PPM_in[ParamSet.ChannelAssignment[CH_YAW]] > 100) |
154 | { |
154 | { |
155 | printf("\n\rCalibrating Compass"); |
155 | printf("\n\rCalibrating Compass"); |
156 | MM3_calibrate(); |
156 | MM3_calibrate(); |