Rev 1623 | Rev 1645 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1623 | Rev 1634 | ||
---|---|---|---|
Line 127... | Line 127... | ||
127 | printf("\n\r==================================="); |
127 | printf("\n\r==================================="); |
Line 128... | Line 128... | ||
128 | 128 | ||
129 | // Parameter Set handling |
129 | // Parameter Set handling |
Line 130... | Line 130... | ||
130 | ParamSet_Init(); |
130 | ParamSet_Init(); |
131 | 131 | ||
132 | // wait for a short time (otherwise the RC channel check won't work below) |
132 | // Wait for a short time (otherwise the RC channel check won't work below) |
- | 133 | // timer = SetDelay(500); |
|
133 | // timer = SetDelay(500); |
134 | // while(!CheckDelay(timer)); |
134 | // while(!CheckDelay(timer)); |
135 | |
135 | // Instead, while away the time by flashing the 2 outputs: |
- | |
136 | // First J16, then J17. Makes it easier to see which is which. |
136 | // Instead, while away the time by flashing the 2 outputs: |
137 | 137 | // First J16, then J17. Makes it easier to see which is which. |
|
138 | timer = SetDelay(200); |
138 | timer = SetDelay(200); |
139 | J16_ON; |
139 | J16_ON; |
140 | GRN_OFF; |
140 | GRN_OFF; |
Line 151... | Line 151... | ||
151 | timer = SetDelay(200); |
151 | timer = SetDelay(200); |
152 | while(!CheckDelay(timer)); |
152 | while(!CheckDelay(timer)); |
153 | J17_OFF; |
153 | J17_OFF; |
Line 154... | Line 154... | ||
154 | 154 | ||
- | 155 | twi_diagnostics(); |
|
155 | twi_diagnostics(); |
156 | |
Line 156... | Line 157... | ||
156 | printf("\n\r==================================="); |
157 | printf("\n\r==================================="); |
157 | 158 | ||
158 | /* |
159 | /* |
Line 193... | Line 194... | ||
193 | Servo_On(); |
194 | Servo_On(); |
Line 194... | Line 195... | ||
194 | 195 | ||
195 | // Init flight parameters |
196 | // Init flight parameters |
Line 196... | Line 197... | ||
196 | flight_setNeutral(); |
197 | flight_setNeutral(); |
Line 197... | Line 198... | ||
197 | 198 | ||
Line 198... | Line 199... | ||
198 | RED_OFF; |
199 | // RED_OFF; |
199 | 200 | ||
Line 258... | Line 259... | ||
258 | } |
259 | } |
259 | } else { |
260 | } else { |
260 | RED_OFF; |
261 | RED_OFF; |
261 | } |
262 | } |
Line 262... | Line 263... | ||
262 | 263 | ||
263 | // allow Serial Data Transmit if motors must not updated or motors are not running |
- | |
264 | // Why only when that??? |
264 | // Allow Serial Data Transmit if motors must not updated or motors are not running |
265 | if( !runFlightControl || !(MKFlags & MKFLAG_MOTOR_RUN)) { |
265 | if( !runFlightControl || !(MKFlags & MKFLAG_MOTOR_RUN)) { |
266 | USART0_TransmitTxData(); |
266 | USART0_TransmitTxData(); |
Line 267... | Line 267... | ||
267 | } |
267 | } |