Meyenberg_Project
MotorDriver.py File Reference

This code includes a Python class, MotorDriver, which is used to encapsulate all of the functionality that will be useful for interacting with the motor and to write test code evaluating the functionality of the motor driver class. More...

Classes

class  MotorDriver.MotorDriver
 This class implements a motor driver for the ME405 board. More...
 

Detailed Description

This code includes a Python class, MotorDriver, which is used to encapsulate all of the functionality that will be useful for interacting with the motor and to write test code evaluating the functionality of the motor driver class.

For this class, you are able to to create two objects that can independently control two seperate motor drivers. The motors can be controlled to spin either forward or reverse and PWM can be used to control the speed of either motor. In addition to this, a fault tolerance is implemented which triggers an external interrupt callback when there is a fault.

Author
Ryan McMullen and David Meyenberg
Date
March 11, 2021