Spacecraft Control Framework 1.0
Spacecraft Control Library
Functions
sc_motor.h File Reference

Miscellaneous functions. More...

Go to the source code of this file.

Functions

ml_matrix clarke_transformation_matrix (void)
 Clarke transformation. More...
 
ml_matrix park_transformation_matrix (double theta_e)
 Park transformation. More...
 
double angle_encoder (double angle, double max_counts)
 Angle encoder. More...
 

Detailed Description

Miscellaneous functions.

Function Documentation

◆ clarke_transformation_matrix()

ml_matrix clarke_transformation_matrix ( void  )

Clarke transformation.

Clarke transformation.

This is the forward Clarke transformation for a Y connected motor.

Returns
m(2,2)

Referenced by pm_machine_torque_control::update().

◆ park_transformation_matrix()

ml_matrix park_transformation_matrix ( double  theta_e)

Park transformation.

Park transformation.

Transforms quantities from rotating alpha-beta coordinates to stationary d-q coordinates. This is the reverse Park transformation, which is just the transpose of the forward transformation.

Parameters
theta_e
Returns
m(2,2)

Referenced by pm_machine_torque_control::update().

◆ angle_encoder()

double angle_encoder ( double  angle,
double  max_counts 
)

Angle encoder.

Angle encoder.

Transforms quantities from rotating alpha-beta coordinates to stationary d-q coordinates. This is the reverse Park transformation, which is just the transpose of the forward transformation.

Parameters
theta_e
Returns
m(2,2)