From 2bd4e1632228ae7c49512686d689fd8f833d9c6a Mon Sep 17 00:00:00 2001 From: Fisch Date: Mon, 28 Mar 2022 20:11:31 +0200 Subject: [PATCH] add submodule for hoverboard serial communication --- .gitmodules | 3 +++ hoverbrettctrl/lib/hoverboard-esc-serial-comm | 1 + hoverbrettctrl/src/main.cpp | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 160000 hoverbrettctrl/lib/hoverboard-esc-serial-comm diff --git a/.gitmodules b/.gitmodules index ae910cb..9367d94 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "hoverboard-firmware-hack-foc-serial-esc"] path = hoverboard-firmware-hack-foc-serial-esc url = https://repos.ctdo.de/interfisch/hoverboard-firmware-hack-foc-serial-esc +[submodule "hoverbrettctrl/lib/hoverboard-esc-serial-comm"] + path = hoverbrettctrl/lib/hoverboard-esc-serial-comm + url = https://repos.ctdo.de/interfisch/hoverboard-esc-serial-comm diff --git a/hoverbrettctrl/lib/hoverboard-esc-serial-comm b/hoverbrettctrl/lib/hoverboard-esc-serial-comm new file mode 160000 index 0000000..ba0b195 --- /dev/null +++ b/hoverbrettctrl/lib/hoverboard-esc-serial-comm @@ -0,0 +1 @@ +Subproject commit ba0b19560f3fbd276a220b709b23937646eff385 diff --git a/hoverbrettctrl/src/main.cpp b/hoverbrettctrl/src/main.cpp index 58b344c..d3a72da 100644 --- a/hoverbrettctrl/src/main.cpp +++ b/hoverbrettctrl/src/main.cpp @@ -1,9 +1,14 @@ #include +#include + +ESCSerialComm esc; + void setup() { - // put your setup code here, to run once: + esc = ESCSerialComm(); //create object } + void loop() { // put your main code here, to run repeatedly: } \ No newline at end of file