Class for the motor driver shared by both motors. More...
Classes | |
| class | motorDriver.motorDriver |
Class for the motor driver shared by both motors.
This class contains methods and attributes common to both motors, such as enabling, disabling, and detecting faults. Furthermore, this class is capable of generating motor instances given pin and channel inputs. By having two seperate drivers, one for the motor driver as a whole and one for individual motor channels, clear seperation is made between the two, with the parent motor driver still having access to methods of each channel. For example, in the disable() method, the nSLEEP pin is set low, but each motor is also set to a duty cycle of zero.
See source code here: Motor Driver Source Code