Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_pm_machine_torque_control.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Implement pm_machine_torque_control
3//-----------------------------------------------------------------------------------------
4// Copyright (c) 2017 Princeton Satellite Systems. All rights reserved.
5//-----------------------------------------------------------------------------------------
6
8
9
11#ifndef __PM_MACHINE_TORQUE_CONTROL__
12#define __PM_MACHINE_TORQUE_CONTROL__
13
14#ifdef AS_OS_WINDOWS
15 #include "matrixlib.h"
16#else
17 #include <MatrixLib/MatrixLib.h>
18#endif
19
25{
26
27 private:
28 double kF;
29 double tauI;
30 ml_matrix iDQInt;
31 double dT;
32 double psiM;
33 double p;
34 ml_matrix iAB;
35
36
37 public:
39 void initialize( double kF, double tauI, const ml_matrix iDQInt, double dT, double psiM, double p );
40 void defaults( void );
41 ml_matrix update( double torqueSet, double theta, ml_matrix i );
42 ml_matrix get_i_ab( void ){return iAB;};
43 void set_d_t( double d_t ){dT = d_t;};
44
45
46};
47
48
49#endif
pm_machine_torque_control
Definition: sc_pm_machine_torque_control.h:25
ml_matrix update(double torqueSet, double theta, ml_matrix i)
Update the control x [iA; iB; iC; omega; angle].
Definition: sc_pm_machine_torque_control.cc:54
void initialize(double kF, double tauI, const ml_matrix iDQInt, double dT, double psiM, double p)
Initialize the object.
Definition: sc_pm_machine_torque_control.cc:39
pm_machine_torque_control(void)
Constructor.
Definition: sc_pm_machine_torque_control.cc:16
void defaults(void)
Initialize the object with the defaults.
Definition: sc_pm_machine_torque_control.cc:24