Functions

sc_control.h File Reference

Control functions. More...

Functions

ml_matrix momentum_unloading (const ml_matrix &u, const ml_matrix &b, double gain, const ml_matrix &h, double tol=0.2)
 Control functions.
ml_matrix momentum_with_rwa_body (const ml_matrix &inr, const ml_matrix &omega_body, const ml_matrix &omega_rwa, const ml_matrix &u_rwa, double inr_rwa)
 Momentum with RWA in the body frame.
ml_matrix magnetic_control (const ml_matrix &torque_demand, const ml_matrix &u_magnetic_torquer, const ml_matrix &b_field, double cost)
 Magnetic torquer control.

Detailed Description


Function Documentation

ml_matrix momentum_unloading ( const ml_matrix &  u,
const ml_matrix &  b,
double  gain,
const ml_matrix &  h,
double  tol 
)

Momentum management using magnetic torquers

Control functions.

Parameters:
u(3,n) Dipole unit vectors in the frame of h
b(3,1) Magnetic field vector in the frame of h
gainProportional gain
h(3,1) Momentum
tolTolerance on using a dipole
Returns:
m (n,1) Dipole moments
ml_matrix momentum_with_rwa_body ( const ml_matrix &  inr,
const ml_matrix &  omega_body,
const ml_matrix &  omega_rwa,
const ml_matrix &  u_rwa,
double  inr_rwa 
)

Momentum with RWA in the body frame.

Parameters:
inr(3,3) Inertia matrix
omega_body(3,1) Body rate
omega_rwa(n,1) RWA rotation rate
u_rwa(3,n) RWA unit vectors
inr_rwaTolerance on using a dipole
Returns:
h (3,1) Angular momentum in the body frame