LRAUV  revA
SBIT.h
Go to the documentation of this file.
1 
12 #ifndef SBIT_H_
13 #define SBIT_H_
14 
17 
20 
31 class SBIT : public SyncTestComponent
32 {
33 public:
34 
35  SBIT( const Module* module );
36 
37  virtual ~SBIT();
38 
40  void initialize( void );
41 
43  void run();
44 
46  void uninitialize( void );
47 
49  virtual ConfigURI getConfigURI( ConfigOption configOption ) const;
50 
51 protected:
52 
53 
54 
55 private:
56 
57  // Update configuration
58  bool readConfig( void );
59 
60  // Checks actual vs. expected positions of the control surfaces
61  bool ctrlSurfaceCheckPos( double elevExpect, double ruddExpect, double massExpect );
62 
63  // indicates whether things are ok to run
64  bool ok_;
65 
66  bool sbitPass_;
67 
68  // slate entry to let others know that SBIT is running
70 
76 
80 
88 
92 
93 
95 
97  double massLimitFwd_;
98  double massLimitAft_;
99  double massDefault_;
100  double rudderLimit_;
104 
106 
110 
111  // Used to save state since there are long potential waiting periods for this device to respond
113  {
123  };
124 
125  // To hold our state
127 
128 };
129 
130 #endif /*SBIT_H_*/
bool sbitPass_
Definition: SBIT.h:66
Contains the SyncComponent class definition.
Definition: SBIT.h:119
void uninitialize(void)
Uninit function.
Definition: SBIT.cpp:341
SBITState
Definition: SBIT.h:112
Definition: SBIT.h:117
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: UniversalDataReader.h:26
Timestamp startTime_
Definition: SBIT.h:109
bool readConfig(void)
Definition: SBIT.cpp:134
Definition: SBIT.h:122
double ruddDeviation_
Definition: SBIT.h:103
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: UniversalDataWriter.h:24
void run()
The actual "payload" of the component.
Definition: SBIT.cpp:154
double rudderLimit_
Definition: SBIT.h:100
DataWriter * horizontalModeWriter_
Definition: SBIT.h:73
Contains the ComponentRegistry class declaration.
double elevDeviation_
Definition: SBIT.h:101
UniversalDataReader * massPosReader_
Definition: SBIT.h:79
DataWriter * sbitRunningStateWriter_
Definition: SBIT.h:69
Timespan class, represents a delta of time.
Definition: Timestamp.h:248
void initialize(void)
Initialize function.
Definition: SBIT.cpp:73
ConfigReader * massLimitAftCfgReader_
Definition: SBIT.h:85
DataWriter * massPosCmdWriter_
Definition: SBIT.h:75
double massLimitAft_
Definition: SBIT.h:98
ConfigReader * massLimitFwdCfgReader_
Definition: SBIT.h:84
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: DataWriter.h:27
ConfigReader * kernelReleaseCfgReader_
Definition: SBIT.h:81
Definition: ElementURI.h:166
ConfigReader * massDeviationCfgReader_
Definition: SBIT.h:90
SBITState sbitState_
Definition: SBIT.h:126
ConfigReader * ruddDeviationCfgReader_
Definition: SBIT.h:91
virtual ConfigURI getConfigURI(ConfigOption configOption) const
Should return [myNamespace]::SIMULATE_HARDWARE, or [myNamespace]::POWER, etc.
Definition: SBIT.cpp:348
Abstract Base class for components that run towards the end of the computation cycle, evaluating how well everything performed.
Definition: SyncComponent.h:264
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Definition: SBIT.h:120
Definition: SBIT.h:116
DataWriter * rudderAngleCmdWriter_
Definition: SBIT.h:74
The SBIT built-in-test component provides monitoring of vehicle health at startup.
Definition: SBIT.h:31
Definition: SBIT.h:121
ConfigReader * rudderLimitCfgReader_
Definition: SBIT.h:87
double elevatorLimit_
*----------------— vehicle parameters -----------------------—*/
Definition: SBIT.h:96
Definition: ConfigReader.h:13
ConfigReader * massDefaultCfgReader_
Definition: SBIT.h:86
double massDeviation_
Definition: SBIT.h:102
bool ctrlSurfaceCheckPos(double elevExpect, double ruddExpect, double massExpect)
Definition: SBIT.cpp:290
Definition: SBIT.h:115
UniversalDataReader * elevatorAngleReader_
Definition: SBIT.h:77
Timespan startDelay_
Definition: SBIT.h:108
Definition: SBIT.h:118
DataWriter * verticalModeWriter_
Definition: SBIT.h:72
Timespan ctrlTimeout_
Definition: SBIT.h:107
virtual ~SBIT()
Definition: SBIT.cpp:68
ConfigOption
Definition: Component.h:456
double massDefault_
Definition: SBIT.h:99
SBIT(const Module *module)
Definition: SBIT.cpp:32
ConfigReader * elevatorLimitCfgReader_
Definition: SBIT.h:83
ConfigReader * kernelVersionCfgReader_
Definition: SBIT.h:82
double massLimitFwd_
Definition: SBIT.h:97
bool ok_
Definition: SBIT.h:64
UniversalDataReader * rudderAngleReader_
Definition: SBIT.h:78
ConfigReader * elevDeviationCfgReader_
Definition: SBIT.h:89
DataWriter * elevatorAngleCmdWriter_
Definition: SBIT.h:71
Represents absolute times.
Definition: Timestamp.h:31
Definition: SBIT.h:114