|
Yes. Instantiating your motor controllers in the periodic function makes it try to create another object each time it is called. So the second time it is called it is creating another object attached to the same PWM. You should do the object creation in the constructor.
__________________
|