Matthew Tagupa's ME 405 Labs and Term Project
PropControl.CLPropControl Class Reference

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
 

Detailed Description

A proportional controller.

This class implements a proportional controller for our ME 405 board.

Author
Matthew Tagupa
Date
May 21, 2020

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
KpThe proportional gain

Member Function Documentation

◆ update()

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.

Parameters
setpointThe Referenced value that the controller will compare to the output value
Theta_MeasuredThe measured output value

The documentation for this class was generated from the following file: