Rev 717 | Rev 723 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 717 | Rev 720 | ||
---|---|---|---|
Line 183... | Line 183... | ||
183 | 183 | ||
184 | LcdClear(); |
184 | LcdClear(); |
185 | I2CTimeout = 5000; |
185 | I2CTimeout = 5000; |
186 | while (1) |
186 | while (1) |
- | 187 | { |
|
187 | { |
188 | |
188 | if(UpdateMotor) // ReglerIntervall |
189 | if(UpdateMotor) // ReglerIntervall |
189 | { |
190 | { |
190 | UpdateMotor=0; |
191 | UpdateMotor=0; |
191 | //PORTD |= 0x08; |
192 | //PORTD |= 0x08; |
192 | MotorRegler(); |
- | |
193 | 193 | MotorRegler(); |
|
194 | //PORTD &= ~0x08; |
194 | //PORTD &= ~0x08; |
195 | SendMotorData(); |
195 | SendMotorData(); |
196 | ROT_OFF; |
196 | ROT_OFF; |
197 | if(PcZugriff) PcZugriff--; |
197 | if(PcZugriff) PcZugriff--; |
Line 235... | Line 235... | ||
235 | beeptime = 6000; |
235 | beeptime = 6000; |
236 | BeepMuster = 0x0300; |
236 | BeepMuster = 0x0300; |
237 | } |
237 | } |
238 | } |
238 | } |
239 | SPI_StartTransmitPacket(SPI_CMD_VALUE);//# |
239 | SPI_StartTransmitPacket(SPI_CMD_VALUE);//# |
240 | timer = SetDelay(50); |
240 | timer = SetDelay(100); |
241 | } |
241 | } |
242 | //if(UpdateMotor) DebugOut.Analog[26]++; |
242 | //if(UpdateMotor) DebugOut.Analog[26]++; |
243 | } |
243 | } |
244 | if(alt_ms != CountMilliseconds) { SPI_TransmitByte(); alt_ms = CountMilliseconds;} |
244 | if(alt_ms != CountMilliseconds) { SPI_TransmitByte(); alt_ms = CountMilliseconds;} |