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.
43 lines
736 B
43 lines
736 B
#include <avr/interrupt.h>
|
|
#include <avr/io.h>
|
|
#include <Arduino.h>
|
|
|
|
void inline clearCommands() {
|
|
for(uint8_t i=0; i<32; i++) {
|
|
commands[i] = 0xFF;
|
|
}
|
|
}
|
|
|
|
void setup() {
|
|
remoteControlInit();
|
|
funkInit();
|
|
Serial.begin(115200);
|
|
driveTimeout = 10;
|
|
joystickInit(); //TODO
|
|
clearCommands();
|
|
|
|
}
|
|
|
|
void loop() {
|
|
//lcdMenu();
|
|
|
|
while(!tasten.getButtonCycle(buttonStart)) {
|
|
manualDigitalDrive();
|
|
}
|
|
tasten.clearButton(buttonStart);
|
|
while(!tasten.getButtonCycle(buttonStart)){
|
|
motorMapping();
|
|
}
|
|
tasten.clearButton(buttonStart);
|
|
while(!tasten.getButtonCycle(buttonStart)){
|
|
joystickSteuerung(); //TODO ()
|
|
}
|
|
tasten.clearButton(buttonStart);
|
|
|
|
}
|
|
|
|
void lcdMenu() {
|
|
lcd.println("Platzhalter");
|
|
|
|
|
|
}
|