Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_geometry.h
Go to the documentation of this file.
1
5#ifndef __GEOMETRY__
6#define __GEOMETRY__
7
8#ifdef AS_OS_WINDOWS
9 #include "matrixlib.h"
10#else
11 #include <MatrixLib/MatrixLib.h>
12#endif
13
14
22{
23
24 private:
26 ml_matrix area;
28 ml_matrix center_of_pressure;
30 ml_matrix normal;
32 ml_matrix optical;
34 ml_matrix thermal;
36 ml_matrix aero;
38 ml_matrix u_dot_normal;
40 ml_int_array body;
42 int n_surfaces;
43
44 public:
45
47 geometry( void );
49 int initialize( const char* file_name, double scale );
51 ml_matrix update( ml_matrix u );
53 ml_matrix get_areas( void ){ return this->area;};
55 ml_matrix get_cp( void ){return this->center_of_pressure;};
57 ml_matrix get_normal( void ){ return this->normal; };
59 ml_matrix get_optical( void ){ return this->optical; };
61 ml_matrix get_thermal( void ){ return this->thermal; };
63 ml_matrix get_aero( void ){ return this->aero; };
65 ml_matrix get_u_dot_normal( void ){ return this->u_dot_normal; };
67 ml_int_array get_body( void ){ return this->body; };
69 int get_number_of_surfaces( void ){ return this->n_surfaces; };
70
71};
72
73
74#endif
Definition: sc_geometry.h:22
int get_number_of_surfaces(void)
Get the number of surface.
Definition: sc_geometry.h:69
ml_matrix get_thermal(void)
Get the normal vector.
Definition: sc_geometry.h:61
geometry(void)
Constructor.
Definition: sc_geometry.cc:11
ml_matrix get_cp(void)
Set the inertia.
Definition: sc_geometry.h:55
int initialize(const char *file_name, double scale)
Initialize all state matrices.
Definition: sc_geometry.cc:19
ml_int_array get_body(void)
Get the body.
Definition: sc_geometry.h:67
ml_matrix get_u_dot_normal(void)
Get the active elements.
Definition: sc_geometry.h:65
ml_matrix get_aero(void)
Get the normal vector.
Definition: sc_geometry.h:63
ml_matrix update(ml_matrix u)
Update the output.
Definition: sc_geometry.cc:124
ml_matrix get_areas(void)
get the rotate command
Definition: sc_geometry.h:53
ml_matrix get_normal(void)
Get the normal vector.
Definition: sc_geometry.h:57
ml_matrix get_optical(void)
Get the normal vector.
Definition: sc_geometry.h:59