Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1004 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #include <avr/interrupt.h>
  2. #include <avr/io.h>
  3. #include <Arduino.h>
  4. void inline clearCommands() {
  5. for(uint8_t i=0; i<32; i++) {
  6. commands[i] = 0xFF;
  7. }
  8. }
  9. void setup() {
  10. remoteControlInit();
  11. funkInit();
  12. Serial.begin(115200);
  13. driveTimeout = 10;
  14. joystickInit(); //TODO
  15. clearCommands();
  16. }
  17. void loop() {
  18. //lcdMenu();
  19. while(!tasten.getButtonCycle(buttonStart)) {
  20. manualDigitalDrive();
  21. }
  22. tasten.clearButton(buttonStart);
  23. while(!tasten.getButtonCycle(buttonStart)){
  24. motorMapping();
  25. }
  26. tasten.clearButton(buttonStart);
  27. while(!tasten.getButtonCycle(buttonStart)){
  28. joystickSteuerung(); //TODO ()
  29. }
  30. tasten.clearButton(buttonStart);
  31. <<<<<<< HEAD
  32. //Temperatur- und Abstandsmessung
  33. /*
  34. temperature = dallas(4, 0);
  35. if(millis() - timer >= 100){
  36. measureDistance();
  37. timer = millis();
  38. }
  39. distance = calculateDistance();
  40. */
  41. =======
  42. >>>>>>> 48327ec5c42c4d70afa8e9c00bbf52ab2db2ca05
  43. }
  44. void lcdMenu() {
  45. lcd.println("Platzhalter");
  46. }