Merge branch 'master' of https://git.itsblue.de/Fenoglio/coderacer
14
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
# This file is a template, and might need editing before it works on your project.
|
||||
# Full project: https://gitlab.com/pages/doxygen
|
||||
image: alpine
|
||||
|
||||
pages:
|
||||
script:
|
||||
- apk update && apk add doxygen
|
||||
- doxygen Doku/Doxygen/Doxyfile
|
||||
- mv Doku/Doxygen/html/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
BIN
AppInventor/BluetoothTest.aia
Normal file
76
Arduino/BTCoderacer/BTCoderacer.ino
Normal file
|
@ -0,0 +1,76 @@
|
|||
//This example code is in the Public Domain (or CC0 licensed, at your option.)
|
||||
//By Evandro Copercini - 2018
|
||||
//
|
||||
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
|
||||
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
|
||||
|
||||
#include "BluetoothSerial.h"
|
||||
|
||||
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
|
||||
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
||||
#endif
|
||||
|
||||
BluetoothSerial SerialBT;
|
||||
bool motioncontrol = false;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
SerialBT.begin("ESP32test"); //Bluetooth device name
|
||||
Serial.println("The device started, now you can pair it with bluetooth!");
|
||||
}
|
||||
|
||||
String recvddata = "";
|
||||
|
||||
void loop() {
|
||||
if (Serial.available()) {
|
||||
SerialBT.print(Serial.readString());
|
||||
}
|
||||
if (SerialBT.available()) {
|
||||
Serial.println("New incoming message");
|
||||
SerialBT.setTimeout(10);
|
||||
recvddata = SerialBT.readStringUntil('\0');
|
||||
recvddata.remove(recvddata.length()-2,2); //remove delimiter from string
|
||||
Serial.println(recvddata);
|
||||
BTcontrol();
|
||||
}
|
||||
delay(20);
|
||||
}
|
||||
|
||||
void BTcontrol()
|
||||
{
|
||||
|
||||
|
||||
if(recvddata.startsWith("motion_on"))
|
||||
{
|
||||
SerialBT.print("motion_ready");
|
||||
motioncontrol = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if(recvddata.startsWith("motion_off"))
|
||||
{
|
||||
SerialBT.print("motion_disabled");
|
||||
motioncontrol = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(recvddata.startsWith("apr="))
|
||||
{
|
||||
if(motioncontrol == true)
|
||||
{
|
||||
SerialBT.print(BTmotioncontrol(recvddata));
|
||||
}
|
||||
else
|
||||
{
|
||||
SerialBT.print("motion_disabled");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
String BTmotioncontrol(String recvddata)
|
||||
{
|
||||
return "motion_values_ok";
|
||||
}
|
||||
|
BIN
Bilder/coderace_pforzheim.mp4
Normal file
BIN
Bilder/coderace_pforzheim2.mp4
Normal file
BIN
Coderace_Pforzheim/coderace10.jpeg
Normal file
After Width: | Height: | Size: 2.2 MiB |
BIN
Coderace_Pforzheim/coderace3.jpeg
Normal file
After Width: | Height: | Size: 193 KiB |
BIN
Coderace_Pforzheim/coderace4.jpeg
Normal file
After Width: | Height: | Size: 193 KiB |
BIN
Coderace_Pforzheim/coderace5.jpeg
Normal file
After Width: | Height: | Size: 951 KiB |
BIN
Coderace_Pforzheim/coderace6.jpeg
Normal file
After Width: | Height: | Size: 3.3 MiB |
BIN
Coderace_Pforzheim/coderace7.jpeg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
Coderace_Pforzheim/coderace8.jpeg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
Coderace_Pforzheim/coderace9.jpeg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
Coderace_Pforzheim/coderace_pforzheim.mp4
Normal file
BIN
Coderace_Pforzheim/coderacer1.jpg
Normal file
After Width: | Height: | Size: 278 KiB |
BIN
Coderace_Pforzheim/coderacer11.jpeg
Normal file
After Width: | Height: | Size: 970 KiB |
BIN
Coderace_Pforzheim/coderacer2.jpg
Normal file
After Width: | Height: | Size: 320 KiB |
BIN
Doku/Calculations/test_entfernungswichtung.xlsx
Normal file
|
@ -51,14 +51,14 @@ PROJECT_BRIEF = "... better know the details."
|
|||
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
|
||||
# the logo to the output directory.
|
||||
|
||||
PROJECT_LOGO = C:/Users/jnoack/Documents/GITs/coderacer/Doku/Bilder/coderace_logo.JPG
|
||||
PROJECT_LOGO = ../Bilder/coderace_logo.JPG
|
||||
|
||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
|
||||
# into which the generated documentation will be written. If a relative path is
|
||||
# entered, it will be relative to the location where doxygen was started. If
|
||||
# left blank the current directory will be used.
|
||||
|
||||
OUTPUT_DIRECTORY = .
|
||||
OUTPUT_DIRECTORY = ./
|
||||
|
||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||
# directories (in 2 levels) under the output directory of each output format and
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
![Build Status](https://git.itsblue.de/Fenoglio/coderacer/badges/master/build.svg)
|
||||
![Flyer](/Doku/Bilder/coderace_get_in_contact_pic.png)
|
||||
## Repo Overview
|
||||
This is fun in progress and for sure not covering all questions and topics.
|
||||
|
@ -13,9 +14,12 @@ AppInventor | Module to load into AppInventor. More to come over time.
|
|||
Fritzing | Schematics and stuff
|
||||
Bilder | Pictures of racers and events;-)
|
||||
|
||||
## Full API Docs
|
||||
A full API Documentation is available [here](https://fenoglio.pages.itsblue.de/coderacer/)
|
||||
|
||||
## How to start
|
||||
* Start reading the [{code}racer HowTo](https://git.itsblue.de/Fenoglio/coderacer/tree/master/Doku/coderacer_handbuch.pdf)
|
||||
* Learn about the [{code}racer API](https://git.itsblue.de/Fenoglio/coderacer/tree/master/Doku/coderacerAPI.pdf)
|
||||
* Learn about the [{code}racer API](https://fenoglio.pages.itsblue.de/coderacer/)
|
||||
* Download the {code}racer Repo and install the IDE on your PC (see [CodeRacer HowTo Page.8](https://git.itsblue.de/Fenoglio/coderacer/tree/master/Doku/coderacer_handbuch.pdf))
|
||||
* Installation of used libraries (see [{code}racer HowTo Page.10](https://git.itsblue.de/Fenoglio/coderacer/tree/master/Doku/coderacer_handbuch.pdf))
|
||||
* Compile example (esp32_coderacer_beispiel) (see [{code}racer HowTo Page.11](https://git.itsblue.de/Fenoglio/coderacer/tree/master/Doku/coderacer_handbuch.pdf))
|
||||
|
|