diff --git a/Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino b/Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino similarity index 77% rename from Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino rename to Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino index 68367d83324075b9aa34b0e3b631536def4a7bd6..94e0aadb9f15da7deadf4fb8cee9dd34cdde37f2 100644 --- a/Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino +++ b/Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Reciever/NRF_Reciever.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 1 - Unidirektionale Kommunikation via Funk diff --git a/Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino b/Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino similarity index 82% rename from Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino rename to Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino index d91580c31925e3c9f8a53bdbfd535ea24c9a3529..32990496695b0d0655829250c6051911e0d9b4e2 100644 --- a/Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino +++ b/Fahrzeug-Kommunikation/Beispiel_1_unidirektional_NRF/NRF_Transmitter/NRF_Transmitter.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 1 - Unidirektionale Kommunikation via Funk diff --git a/Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino b/Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino similarity index 89% rename from Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino rename to Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino index 373406ea989a653028e709b10263246d794d73f6..ca3be7d14b17966dc54bc2d0a15b121854f6c79a 100644 --- a/Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino +++ b/Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_X/NRF_Transceiver_X.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 2 - Bidirektionale Kommunikation via Funk diff --git a/Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino b/Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino similarity index 89% rename from Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino rename to Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino index c99a717f5266fbc6c76c93a7261cd164498cd65a..128323266ab12129700429d5dcec0b22fb747156 100644 --- a/Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino +++ b/Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/NRF_Transceiver_car/NRF_Transceiver_car.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 2 - Bidirektionale Kommunikation via Funk diff --git a/Kommunikation/Beispiel_2_bidirektional_NRF/README.md b/Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/README.md similarity index 100% rename from Kommunikation/Beispiel_2_bidirektional_NRF/README.md rename to Fahrzeug-Kommunikation/Beispiel_2_bidirektional_NRF/README.md diff --git a/Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino b/Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino similarity index 72% rename from Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino rename to Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino index 1165d4fade96aafe1eb295573dff92dc337e52bd..12171245064d1aa273d37ec9a3565aea3afa93a8 100644 --- a/Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino +++ b/Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Receive/IR_Receive.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 3 - Unidirektionale Kommunikation via Infrarot diff --git a/Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino b/Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino similarity index 85% rename from Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino rename to Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino index 09937f7db06990ff1207a7d2984839868cff15cd..602e7d5ed9a67653d4fae3487030057444403c8b 100644 --- a/Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino +++ b/Fahrzeug-Kommunikation/Beispiel_3_unidirektional_IR/IR_Send/IR_Send.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 3 - Unidirektionale Kommunikation via Infrarot diff --git a/Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_parking_X.ino b/Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_X.ino similarity index 94% rename from Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_parking_X.ino rename to Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_X.ino index 64801c1d3b24ec8a74aa87b47422b63f86463243..d5452fb40ce2cde68a11a7658208ecc3d68a5f49 100644 --- a/Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_parking_X.ino +++ b/Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_X/combined_communication_X.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 4 - Kombinierte Kommunikation via Infrarot und Funk @@ -145,4 +145,4 @@ void splitText(char* text, char* owner, char* license_plate) { strcpy(owner, text); license_plate[0] = '\0'; } -} \ No newline at end of file +} diff --git a/Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino b/Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino similarity index 89% rename from Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino rename to Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino index 85fe07d06d2d1e5f346c9dff9db316aa7b2f8ef5..2a796da476b3345449194ea21ea694c547c71555 100644 --- a/Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino +++ b/Fahrzeug-Kommunikation/Beispiel_4_combined_IR_NRF/combined_communication_car/combined_communication_car.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Beispiel 4 - Kombinierte Kommunikation via Infrarot und Funk diff --git a/Kommunikation/README.md b/Fahrzeug-Kommunikation/README.md similarity index 100% rename from Kommunikation/README.md rename to Fahrzeug-Kommunikation/README.md diff --git a/Fahrzeug/bits3-bare-minimum/bits3-bare-minimum.ino b/Fahrzeug/bits3-bare-minimum/bits3-bare-minimum.ino index 9d45d892cad9d5248ded7875e3f717d1bdc5d6cb..eb8e1b2a26f350d336e6a776d196acb4b501614b 100644 --- a/Fahrzeug/bits3-bare-minimum/bits3-bare-minimum.ino +++ b/Fahrzeug/bits3-bare-minimum/bits3-bare-minimum.ino @@ -1,12 +1,12 @@ /*************************************************** ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ - \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: - Name des Skripts @@ -109,4 +109,4 @@ void setup() { void loop() { drive_course(); //Hier wird nur diese Funktion ausgeführt werden --> Erweitern Sie diese um ihren Funktionen! -} \ No newline at end of file +} diff --git a/Pruefbox/test_box/test_box.ino b/Pruefbox/test_box/test_box.ino index 90c7ebcc0e1bad3f3b7804d00e523ce4cb703f56..22eb3a3e242988330db082c311c9b6608f0964be 100644 --- a/Pruefbox/test_box/test_box.ino +++ b/Pruefbox/test_box/test_box.ino @@ -2,11 +2,11 @@ ________ ___ _________ ________ ________ |\ __ \|\ \|\___ ___\\ ____\|\_____ \ \ \ \|\ /\ \ \|___ \ \_\ \ \___|\|____|\ /_ - \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ - \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ - \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ - \|_______|\|__| \|__| |\_________\|_______| - \|_________| + \ \ __ \ \ \ \ \ \ \ \_____ \ \|\ \ + \ \ \|\ \ \ \ \ \ \ \|____|\ \ __\_\ \ + \ \_______\ \__\ \ \__\ ____\_\ \|\_______\ + \|_______|\|__| \|__| |\_________\|_______| + \|_________| Name: Algorithmus für eine Pruefbox (Kommunikation) @@ -79,7 +79,7 @@ void loop(){ ir_com(); // unidirektionale Kommunikation per IR break; case 2: - nrf_com_read(1); // unidirektionale Kommunikation per NRF (Empfaenger, Addresse: 0001) + nrf_com_read(2); // unidirektionale Kommunikation per NRF (Empfaenger, Addresse: 0001) delay(800); break; case 3: diff --git a/Tools/Automatischer BITS-i_Bibliotheken downloader.sh b/Tools/Automatischer BITS-i_Bibliotheken downloader.sh new file mode 100644 index 0000000000000000000000000000000000000000..9010f0661ad60380460d5b7783117f3a474a2937 --- /dev/null +++ b/Tools/Automatischer BITS-i_Bibliotheken downloader.sh @@ -0,0 +1,73 @@ +#!/bin/bash + +RED='\033[0;31m' +GREEN='\033[0;32m' +NOCOLOR='\033[0m' +bold=$(tput bold) +normal=$(tput sgr0) + +echo -e "$GREEN" +echo -e "Automatischer download der Bibliotheken wird vorbereitet..." +sleep 2 + +echo -e "$NOCOLOR" +mkdir BITS-i_Bibliotheken +echo -e "$GREEN" +echo -e "Ordner BITS-i_Bibliotheken wurde erfolgreich erstellt." +echo -e " " +sleep 1 +cd BITS-i_Bibliotheken + +echo -e "Starte download..." +sleep 1 +echo -e "$NOCOLOR" + +# BITS-i Bibliotheken +git clone https://git-ce.rwth-aachen.de/bits/bits_libs/bits_time_of_flight_controller.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk_imu.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk_ir_receiver.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk-led-strip-controller.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk-motor-driver.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk-pid-controller.git +git clone https://git-ce.rwth-aachen.de/thk_libs/microcontrollers/thk_servo.git +git clone https://git-ce.rwth-aachen.de/bits/bits_libs/bits_motor_driver.git + +# Externe Bibliotheken, können auch über die Arduino IDE installiert werden +git clone https://github.com/ElectronicCats/mpu6050.git +git clone https://github.com/Arduino-IRremote/Arduino-IRremote.git +git clone https://github.com/adafruit/Adafruit_NeoPixel.git +git clone https://github.com/adafruit/Adafruit_VL53L0X.git + +echo -e "$GREEN" +echo -e "Alle Bibliotheken wurden erfolgreich " +echo -e "in den Ordner BITS-i_Bibliotheken gedownloadet." +echo -e "$RED" +echo -e "__________________________________________________________________" +echo -e "__________________________________________________________________" +echo -e " " +echo -e "\033[31;7m${bold}WICHTIG!!!!!\033[0m" +echo -e " " +echo -e "\033[31;7m${bold}Kopiert alle Ordner aus BITS-i_Bibliotheken in den Arduino Libraries Ordner\033[0m" +echo -e "$RED" +echo -e "__________________________________________________________________" +echo -e "__________________________________________________________________" +echo -e " " + +echo -e "$GREEN" +echo -e "Wenn die Bibliotheken erfolgreich in den Arduino Libraries Ordner" +echo -n "kopiert wurden," +read -p " mit beliebiger Taste fortfahren" x +echo -e " " + +echo -e -n "\033[32;7mSoll das Basis Projekt für BITS-i gedownloadet werden? [J/N]\033[0m" +read -p " " input +if [ $input = 'j' ] || [ $input = 'J' ]; then +cd .. +git clone https://git-ce.rwth-aachen.de/bits/03_projects/bits-bare-minimum.git +echo -e "$GREEN" +echo -e "Das Basis Projekt für BITS-i wurde erfolgreich gedownloadet" +echo -e "$NOCOLOR" +fi + +echo -e " " +read -p "Mit beliebiger Taste beenden" x \ No newline at end of file