LRAUV  revA
SimResultStruct.h
Go to the documentation of this file.
1 
9 #ifndef SIMRESULTSTRUCT_H_
10 #define SIMRESULTSTRUCT_H_
11 
19 {
20  union
21  {
22  char errorMessage_[ 32 * 4 ];
23  struct
24  {
25  int8_t errorPad_;
26  int16_t utmZone_;
27  int8_t northernHemi_;
28  float propOmega_;
29  float propThrust_;
30  float propTorque_;
31  float rudderAngle_;
35  float depth_;
36  float roll_;
37  float pitch_;
38  float heading_;
39  float speed_;
40  double latitudeDeg_;
41  double longitudeDeg_;
42  float netBuoy_;
43  float forceX_;
44  float forceY_;
45  float forceZ_;
46  double posX_;
47  double posY_;
48  float posZ_;
49  float posRoll_;
50  float posPitch_;
51  float posHeading_;
52  float posXDot_;
53  float posYDot_;
54  float posZDot_;
55  float rateU_;
56  float rateV_;
57  float rateW_;
58  float rateP_;
59  float rateQ_;
60  float rateR_;
62  float eastCurrent_;
63  float vertCurrent_;
65  float soundSpeed_;
66  float temperature_;
67  float salinity_;
68  float density_;
69  };
70  };
71 
74  : errorPad_( 0 ),
75  utmZone_( -1 ),
76  northernHemi_( 0 ),
77  propOmega_( nanf( "" ) ),
78  propThrust_( nanf( "" ) ),
79  propTorque_( nanf( "" ) ),
80  rudderAngle_( nanf( "" ) ),
81  elevatorAngle_( nanf( "" ) ),
82  massPosition_( nanf( "" ) ),
83  buoyancyPosition_( nanf( "" ) ),
84  depth_( nanf( "" ) ),
85  roll_( nanf( "" ) ),
86  pitch_( nanf( "" ) ),
87  heading_( nanf( "" ) ),
88  speed_( nanf( "" ) ),
89  latitudeDeg_( nan( "" ) ),
90  longitudeDeg_( nan( "" ) ),
91  netBuoy_( nanf( "" ) ),
92  forceX_( nanf( "" ) ),
93  forceY_( nanf( "" ) ),
94  forceZ_( nanf( "" ) ),
95  posX_( nanf( "" ) ),
96  posY_( nanf( "" ) ),
97  posZ_( nanf( "" ) ),
98  posRoll_( nanf( "" ) ),
99  posPitch_( nanf( "" ) ),
100  posHeading_( nanf( "" ) ),
101  posXDot_( nanf( "" ) ),
102  posYDot_( nanf( "" ) ),
103  posZDot_( nanf( "" ) ),
104  rateU_( nanf( "" ) ),
105  rateV_( nanf( "" ) ),
106  rateW_( nanf( "" ) ),
107  rateP_( nanf( "" ) ),
108  rateQ_( nanf( "" ) ),
109  rateR_( nanf( "" ) ),
110  northCurrent_( nanf( "" ) ),
111  eastCurrent_( nanf( "" ) ),
112  vertCurrent_( nanf( "" ) ),
113  magneticVariation_( nanf( "" ) ),
114  soundSpeed_( nanf( "" ) ),
115  temperature_( nanf( "" ) ),
116  salinity_( nanf( "" ) ),
117  density_( nanf( "" ) )
118  {
119  *errorMessage_ = 0;
120  }
121 
122 };
123 
124 #endif /* SIMRESULTSTRUCT_H_ */
double posY_
Definition: SimResultStruct.h:47
float salinity_
Definition: SimResultStruct.h:67
char errorMessage_[32 *4]
Definition: SimResultStruct.h:22
float pitch_
Definition: SimResultStruct.h:37
float buoyancyPosition_
Definition: SimResultStruct.h:34
float vertCurrent_
Definition: SimResultStruct.h:63
float forceX_
Definition: SimResultStruct.h:43
float posHeading_
Definition: SimResultStruct.h:51
float rudderAngle_
Definition: SimResultStruct.h:31
float depth_
Definition: SimResultStruct.h:35
double posX_
Definition: SimResultStruct.h:46
SimResultStruct()
Constructor.
Definition: SimResultStruct.h:73
float posPitch_
Definition: SimResultStruct.h:50
float rateV_
Definition: SimResultStruct.h:56
float posZ_
Definition: SimResultStruct.h:48
float massPosition_
Definition: SimResultStruct.h:33
float roll_
Definition: SimResultStruct.h:36
float rateQ_
Definition: SimResultStruct.h:59
float propOmega_
Definition: SimResultStruct.h:28
double latitudeDeg_
Definition: SimResultStruct.h:40
int8_t northernHemi_
Definition: SimResultStruct.h:27
int8_t errorPad_
Definition: SimResultStruct.h:25
int16_t utmZone_
Definition: SimResultStruct.h:26
float forceZ_
Definition: SimResultStruct.h:45
float posXDot_
Definition: SimResultStruct.h:52
float speed_
Definition: SimResultStruct.h:39
float forceY_
Definition: SimResultStruct.h:44
float posYDot_
Definition: SimResultStruct.h:53
float posRoll_
Definition: SimResultStruct.h:49
float magneticVariation_
Definition: SimResultStruct.h:64
float heading_
Definition: SimResultStruct.h:38
float elevatorAngle_
Definition: SimResultStruct.h:32
A struct of values that is passed from the Simulator to the LRAUV, with the results from one timestep...
Definition: SimResultStruct.h:18
float rateW_
Definition: SimResultStruct.h:57
float density_
Definition: SimResultStruct.h:68
float propThrust_
Definition: SimResultStruct.h:29
float netBuoy_
Definition: SimResultStruct.h:42
float rateR_
Definition: SimResultStruct.h:60
float eastCurrent_
Definition: SimResultStruct.h:62
float northCurrent_
Definition: SimResultStruct.h:61
float rateP_
Definition: SimResultStruct.h:58
float temperature_
Definition: SimResultStruct.h:66
float posZDot_
Definition: SimResultStruct.h:54
double longitudeDeg_
Definition: SimResultStruct.h:41
float soundSpeed_
Definition: SimResultStruct.h:65
float propTorque_
Definition: SimResultStruct.h:30
float rateU_
Definition: SimResultStruct.h:55