I am back to building my robot with Teensy 3.6 as the core.
I will have a minimum of 4 motor controllers. Pololu VNH5019
From a software point of view it makes sense to me to write a class for this controller/motor and just create an instance for each motor.
I keep reading in various sources not to use classes in the Arduino IDE, but I an not knowledgeable enough to decide what course of action to take. I would prefer not to have to rework because of a wrong decision early on.
Advice would be appreciated or any pointers to a good source to educate myself on the why's and wherefores of C++ classes on Teensy.
Thanks in advance
I will have a minimum of 4 motor controllers. Pololu VNH5019
From a software point of view it makes sense to me to write a class for this controller/motor and just create an instance for each motor.
I keep reading in various sources not to use classes in the Arduino IDE, but I an not knowledgeable enough to decide what course of action to take. I would prefer not to have to rework because of a wrong decision early on.
Advice would be appreciated or any pointers to a good source to educate myself on the why's and wherefores of C++ classes on Teensy.
Thanks in advance