Skip to content

Commit 01e715d

Browse files
committed
removed old odrive example + extended simplefoc debug
1 parent 091046c commit 01e715d

File tree

3 files changed

+15
-127
lines changed

3 files changed

+15
-127
lines changed

examples/hardware_specific_examples/odrive_example/odrive_example.ino

Lines changed: 0 additions & 127 deletions
This file was deleted.

src/communication/SimpleFOCDebug.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ void SimpleFOCDebug::enable(Print* debugPrint) {
1212
}
1313

1414

15+
void SimpleFOCDebug::println(int val) {
16+
if (_debugPrint != NULL) {
17+
_debugPrint->println(val);
18+
}
19+
}
20+
21+
void SimpleFOCDebug::println(float val) {
22+
if (_debugPrint != NULL) {
23+
_debugPrint->println(val);
24+
}
25+
}
26+
27+
1528

1629
void SimpleFOCDebug::println(const char* str) {
1730
if (_debugPrint != NULL) {

src/communication/SimpleFOCDebug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class SimpleFOCDebug {
4646
static void println(const __FlashStringHelper* msg, int val);
4747
static void println(const char* msg, int val);
4848
static void println();
49+
static void println(int val);
50+
static void println(float val);
4951

5052
static void print(const char* msg);
5153
static void print(const __FlashStringHelper* msg);

0 commit comments

Comments
 (0)