This class implements a full state feedback regulator. More...
Public Member Functions | |
| def | __init__ (self, ID, K, sat_lim, dead_band=(0, 0), conv=1) |
| Creates a FSFB regulator object based on a given gain matrix and saturation limits. More... | |
| def | feedback (self, x, dt=0) |
| Computes actuation values using current state vector. More... | |
| def | get_K (self) |
| Returns the current gain of the controller. More... | |
| def | set_K (self, K) |
| Sets the gain of the controller. More... | |
Public Attributes | |
| ID | |
| The unique ID string for the object, used for trace output. More... | |
| K | |
| The controller's gain matrix. More... | |
| n | |
| The controller's integral gain. More... | |
| sat_lim | |
| The controller's output saturation limits. More... | |
| dead_band | |
| The actuator dead_band limits. More... | |
| conv | |
| The conversion factor for the control signal should have units of the form, [actuator input]/[controller output]. More... | |
| ctrl_signal | |
| The control signal. More... | |
This class implements a full state feedback regulator.
This controller is initialized by passing in a feedback gain matrix. The size of this matrix configures the controller. This class currently has one method, feedback(), which takes a state vector and uses the internal gain matrix to compute the actuation signal.
| def fsfb_control.FSFB.__init__ | ( | self, | |
| ID, | |||
| K, | |||
| sat_lim, | |||
dead_band = (0,0), |
|||
conv = 1 |
|||
| ) |
Creates a FSFB regulator object based on a given gain matrix and saturation limits.
| ID | The ID string for the object |
| K | FSFB gain matrix |
| sat_lim | Saturation limits for the system |
| dead_band | A tuple describing the actuator deadband |
| conv | Control signal conversion factor. Use if output does not match actuator input |
| def fsfb_control.FSFB.feedback | ( | self, | |
| x, | |||
dt = 0 |
|||
| ) |
Computes actuation values using current state vector.
| x | The state vector |
| def fsfb_control.FSFB.get_K | ( | self | ) |
Returns the current gain of the controller.
| def fsfb_control.FSFB.set_K | ( | self, | |
| K | |||
| ) |
Sets the gain of the controller.
| KP | New proportional gain |
| fsfb_control.FSFB.conv |
The conversion factor for the control signal should have units of the form, [actuator input]/[controller output].
For ME 405 our units are [PWM%]/[Nm]
| fsfb_control.FSFB.ctrl_signal |
The control signal.
| fsfb_control.FSFB.dead_band |
The actuator dead_band limits.
| fsfb_control.FSFB.ID |
The unique ID string for the object, used for trace output.
| fsfb_control.FSFB.K |
The controller's gain matrix.
| fsfb_control.FSFB.n |
The controller's integral gain.
| fsfb_control.FSFB.sat_lim |
The controller's output saturation limits.