We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec82e3 commit 00e550eCopy full SHA for 00e550e
src/common/base_classes/FOCMotor.cpp
@@ -1,4 +1,5 @@
1
#include "FOCMotor.h"
2
+#include "../../communication/SimpleFOCDebug.h"
3
4
/**
5
* Default constructor - setting all variabels to default values
@@ -77,7 +78,8 @@ float FOCMotor::electricalAngle(){
77
78
// function implementing the monitor_port setter
79
void FOCMotor::useMonitoring(Print &print){
80
monitor_port = &print; //operate on the address of print
- if(monitor_port ) monitor_port->println(F("MOT: Monitor enabled!"));
81
+ SimpleFOCDebug::enable(&print);
82
+ SIMPLEFOC_DEBUG("MOT: Monitor enabled!");
83
}
84
85
// utility function intended to be used with serial plotter to monitor motor variables
0 commit comments