Spacecraft Control Framework 1.0
Spacecraft Control Library
|
#include <sc_pd.h>
Public Member Functions | |
PD (void) | |
Constructor. | |
void | Initialize (double a, double b, double c, double d, ml_matrix inertia) |
Initialize all state matrices. More... | |
ml_matrix | Update (ml_matrix angle_error) |
Update the output. More... | |
void | Reset (void) |
Reset the pd. | |
void | SetInertia (ml_matrix inertia) |
Set the inertia. | |
ml_matrix | GetInertia (void) |
Get the inertia. | |
Public Attributes | |
ml_matrix | q_desired_state |
Target quaternion. | |
A PD Based n axis controller for spacecraft.
void PD::Initialize | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
ml_matrix | inertia | ||
) |
Initialize all state matrices.
Initialize the class with the discrete controller gains (state space format).
a | Gain matrix A |
b | Gain matrix B |
c | Gain matrix C |
d | Gain matrix D |
inr | Axis inertias 1xn |
References Reset().
ml_matrix PD::Update | ( | ml_matrix | angle_error | ) |
Update the output.
Update the controller.
angle | Current angles (nx1) |