Mechatronics
Documentation for ME 405 labs
controller.Controller Class Reference

A controller object operating with full-state feedback. More...

Public Member Functions

def __init__ (self, Motor motor)
 Initialize a Controller object and give it a motor to control. More...
 
def update (self, profile)
 Update the torque applied to the motor based on the measured system. More...
 

Public Attributes

 motor
 
 torque
 

Detailed Description

A controller object operating with full-state feedback.

Constructor & Destructor Documentation

◆ __init__()

def controller.Controller.__init__ (   self,
Motor  motor 
)

Initialize a Controller object and give it a motor to control.

Parameters
motorA Motor to be controlled.

Member Function Documentation

◆ update()

def controller.Controller.update (   self,
  profile 
)

Update the torque applied to the motor based on the measured system.

Parameters
profileA Profile object that contains the current state.

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