|
@ -6,57 +6,31 @@ void manualDigitalDrive() { |
|
|
// while(!tasten.getButtonCycle(buttonL1)) {
|
|
|
// while(!tasten.getButtonCycle(buttonL1)) {
|
|
|
clearCommands(); |
|
|
clearCommands(); |
|
|
if(!tasten.getAnyPressed()) { |
|
|
if(!tasten.getAnyPressed()) { |
|
|
<<<<<<< HEAD |
|
|
|
|
|
//lcd.clear();
|
|
|
|
|
|
lcd.println("Warte..."); |
|
|
|
|
|
======= |
|
|
|
|
|
lcdLines[0] = "Warte..."; |
|
|
lcdLines[0] = "Warte..."; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
if(tasten.checkButton(buttonB) || tasten.checkButton(buttonUp)) { |
|
|
if(tasten.checkButton(buttonB) || tasten.checkButton(buttonUp)) { |
|
|
pwmA = -215; |
|
|
pwmA = -215; |
|
|
pwmB = -255; |
|
|
pwmB = -255; |
|
|
<<<<<<< HEAD |
|
|
|
|
|
//lcd.clear();
|
|
|
|
|
|
lcd.println("geradeaus fahren"); |
|
|
|
|
|
======= |
|
|
|
|
|
lcdLines[0] = "geradeaus fahren"; |
|
|
lcdLines[0] = "geradeaus fahren"; |
|
|
>>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05 |
|
|
|
|
|
goOn =true; |
|
|
goOn =true; |
|
|
} |
|
|
} |
|
|
if(tasten.checkButton(buttonC) || tasten.checkButton(buttonDown)) { |
|
|
if(tasten.checkButton(buttonC) || tasten.checkButton(buttonDown)) { |
|
|
pwmA = 100; |
|
|
pwmA = 100; |
|
|
pwmB = 255; |
|
|
pwmB = 255; |
|
|
<<<<<<< HEAD |
|
|
|
|
|
//lcd.clear();
|
|
|
|
|
|
lcd.println("rueckwaerts fahren"); |
|
|
|
|
|
======= |
|
|
|
|
|
lcdLines[0] = "rueckwaerts fahren"; |
|
|
lcdLines[0] = "rueckwaerts fahren"; |
|
|
>>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05 |
|
|
|
|
|
goOn =true; |
|
|
goOn =true; |
|
|
} |
|
|
} |
|
|
if(tasten.checkButton(buttonRight)) { |
|
|
if(tasten.checkButton(buttonRight)) { |
|
|
pwmA = -100; //rechter Motor
|
|
|
pwmA = -100; //rechter Motor
|
|
|
pwmB = 100; |
|
|
pwmB = 100; |
|
|
<<<<<<< HEAD |
|
|
|
|
|
//lcd.clear();
|
|
|
|
|
|
lcd.println("rechts lenken"); |
|
|
|
|
|
======= |
|
|
|
|
|
lcdLines[0] = "rechts lenken"; |
|
|
lcdLines[0] = "rechts lenken"; |
|
|
>>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05 |
|
|
|
|
|
goOn =true; |
|
|
goOn =true; |
|
|
} |
|
|
} |
|
|
if(tasten.checkButton(buttonLeft)) { |
|
|
if(tasten.checkButton(buttonLeft)) { |
|
|
pwmB = -100; |
|
|
pwmB = -100; |
|
|
pwmA = 100; |
|
|
pwmA = 100; |
|
|
<<<<<<< HEAD |
|
|
|
|
|
//lcd.clear();
|
|
|
|
|
|
lcd.println("links lenken"); |
|
|
|
|
|
======= |
|
|
|
|
|
lcdLines[0] = "links lenken"; |
|
|
lcdLines[0] = "links lenken"; |
|
|
>>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05 |
|
|
|
|
|
goOn =true; |
|
|
goOn =true; |
|
|
} |
|
|
} |
|
|
if(goOn) { |
|
|
if(goOn) { |
|
|