LRAUV  revA
SimSlate.h
Go to the documentation of this file.
1 
10 #ifndef SIMSLATE_H_
11 #define SIMSLATE_H_
12 
24 class SimSlate
25 {
26 public:
27 
28  typedef enum
29  {
30  ALTITUDE_METER, // Written by Bathymetry & read by DVL
31  BUOYANCY_POSITION_CUBIC_METER, // Used in BuoyancyServo
33  DEPTH_METER, // Used in Depth_MSI_US4300
35  ELEVATOR_ANGLE_RADIAN, // Used in MotorServo
36  HEADING_RADIAN, // Used in AHRS_sp3003D & AHRS_3DMGX3
37  LATITUDE_DEGREE, // Used in NAL_9602
38  LONGITUDE_DEGREE, // Used in NAL_9602
39  MAGNETIC_VARIATION_DEGREE, // Used in MagneticVariation
42  MASS_POSITION_METER, // Used in MotorServo
45  PITCH_RADIAN, // Used in AHRS_sp3003D & AHRS_3DMGX3
46  PITCH_RATE_RADIAN_PER_SECOND, // Used in AHRS_3DMGX3
47  ROLL_RADIAN, // Used in AHRS_sp3003D & AHRS_3DMGX3
48  ROLL_RATE_RADIAN_PER_SECOND, // Used in AHRS_3DMGX3
49  PROPELLER_OMEGA_RADIAN_PER_SECOND, // Used in MotorServo
50  RUDDER_ANGLE_RADIAN, // Used in MotorServo
51  SALINITY_PART_PER_THOUSAND, // Used in CTDs
53  TEMPERATURE_DEGREE_CELSIUS, // Used in CTDs
60  YAW_RATE_RADIAN_PER_SECOND, // Used in AHRS_3DMGX3
61  HOMING_SENSOR_RANGE_M, // Used in DAT
62  HOMING_SENSOR_AZIM_RAD, // Used in DAT
63  HOMING_SENSOR_ELEV_RAD, // Used in DAT
65  } SimEntryType;
66 
67  static bool Clear( SimEntryType simEntryType );
68 
69  template<typename T>
70  static bool Read( SimEntryType simEntryType, T& value );
71 
72  template<typename T>
73  static bool Write( SimEntryType simEntryType, const T& value );
74 
75  static const char* ToString( SimEntryType simEntryType );
76 
77 private:
79  {}
80 
81  static double Entries_[];
82 
85  {
86  public:
88  };
89 
92 };
93 
94 #endif /* SIMSLATE_H_ */
static bool Read(SimEntryType simEntryType, T &value)
Definition: SimSlate.cpp:38
static const char * ToString(SimEntryType simEntryType)
Definition: SimSlate.cpp:71
Definition: SimSlate.h:33
SimSlate is a simple, non-logging slate for transferring data between the external simulator and othe...
Definition: SimSlate.h:24
static double Entries_[]
Definition: SimSlate.h:81
Definition: SimSlate.h:37
StaticInitializer()
Definition: SimSlate.cpp:19
Definition: SimSlate.h:53
Definition: SimSlate.h:47
Definition: SimSlate.h:51
Definition: SimSlate.h:64
static SimSlate::StaticInitializer StaticInitializer_
Static instance of StaticDestructor.
Definition: SimSlate.h:91
Definition: SimSlate.h:38
Definition: SimSlate.h:39
Definition: SimSlate.h:48
static bool Write(SimEntryType simEntryType, const T &value)
Definition: SimSlate.cpp:55
Definition: SimSlate.h:45
Definition: SimSlate.h:60
Definition: SimSlate.h:42
Definition: SimSlate.h:50
Definition: SimSlate.h:62
static bool Clear(SimEntryType simEntryType)
Definition: SimSlate.cpp:27
Definition: SimSlate.h:36
Definition: SimSlate.h:63
SimSlate()
Definition: SimSlate.h:78
Definition: SimSlate.h:35
SimEntryType
Definition: SimSlate.h:28
Definition: SimSlate.h:61
Makes sure that static _entries are initialized.
Definition: SimSlate.h:84
Definition: SimSlate.h:30