This commit is contained in:
Fenoglio 2018-12-01 22:50:29 +01:00
commit 2ef127beb7
20 changed files with 161 additions and 67 deletions

14
.gitlab-ci.yml Normal file
View 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

Binary file not shown.

View 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";
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

View 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

View file

@ -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))