A proportional controller. More...
Public Member Functions | |
def | __init__ (self, Kp) |
Constructor for Proportional Controller. More... | |
def | update (self, setpoint, Theta_Measured) |
Updated Position. More... | |
Public Attributes | |
Kp | |
setpoint | |
Theta_Measured | |
Theta_ERROR | |
actuation_value | |
A proportional controller.
This class implements a proportional controller for our ME 405 board.
def PropControl.CLPropControl.__init__ | ( | self, | |
Kp | |||
) |
Constructor for Proportional Controller.
This constructor is set to initialize the timer that will be used to count the ticks that are output from the encoder into the motor driver.
Kp | The proportional gain |
def PropControl.CLPropControl.update | ( | self, | |
setpoint, | |||
Theta_Measured | |||
) |
Updated Position.
When called, this will update the recorded position of the encoder to the current position.
setpoint | The Referenced value that the controller will compare to the output value |
Theta_Measured | The measured output value |