Subversion Repositories FlightCtrl

Rev

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

Rev 858 Rev 887
Line 195... Line 195...
195
        printf("\n\n\r");
195
        printf("\n\n\r");
Line 196... Line 196...
196
               
196
               
197
    LcdClear();
197
    LcdClear();
198
    I2CTimeout = 5000;
198
    I2CTimeout = 5000;
199
        while (1)
199
        while (1)
200
        {
200
        {      
201
        if(UpdateMotor)      // ReglerIntervall
201
        if(UpdateMotor)      // ReglerIntervall
202
            {
202
            {
203
                        UpdateMotor=0;
-
 
204
//PORTD |= 0x08;
203
                        UpdateMotor=0;
205
            MotorRegler();  
-
 
206
 
-
 
207
//PORTD &= ~0x08;
204
            MotorRegler();
208
            SendMotorData();
205
            SendMotorData();
209
            ROT_OFF;
206
            ROT_OFF;
210
            if(PcZugriff) PcZugriff--;
207
            if(PcZugriff) PcZugriff--;
211
             else
208
             else
Line 249... Line 246...
249
                    BeepMuster = 0x0300;
246
                    BeepMuster = 0x0300;
250
                   }
247
                   }
251
                }
248
                }
252
                         timer = SetDelay(100);  
249
                         timer = SetDelay(100);  
253
            }
250
            }
254
           //if(UpdateMotor) DebugOut.Analog[26]++;
-
 
255
          }
251
          }
256
    }
252
    }
257
 return (1);
253
 return (1);
258
}
254
}