I am a bit lost following the setup page for simpleFOCstudio. Is this the correct starting point for code before running the simplefocStudio the first time?
if so i am getting a compiler error as follows.
error: ‘motor’ was not declared in this scope; did you mean ‘doMotor’?
#include <SimpleFOC.h>
....
// include commander interface
Commander command = Commander(Serial);
void doMotor(char* cmd) { command.motor(&motor, cmd); }
void setup(){
....
// add the motor to the commander interface
// The letter (here 'M') you will provide to the SimpleFOCStudio
command.add('M',doMotor,'motor');
// tell the motor to use the monitoring
motor.useMonitoring(Serial);
motor.monitor_downsample = 0; // disable monitor at first - optional
...
}
void loop(){
....
....
// real-time monitoring calls
motor.monitor();
// real-time commander calls
command.run();
}
additionally when running command prompt python simplefocstudio.py i get the following.
libpng warning: iCCP: known incorrect sRGB profile