LRAUV  revA
SpeedControl.h
Go to the documentation of this file.
1 
12 #ifndef SPEEDCONTROL_H_
13 #define SPEEDCONTROL_H_
14 
16 
17 class Timestamp;
19 
34 {
35 public:
36 
37  SpeedControl( const Module* module );
38 
39  virtual ~SpeedControl();
40 
41  void initialize( void );
42 
43  void run();
44 
45  void uninitialize( void );
46 
47 private:
48 
49  // Note that the copy constructor below is private and not given a body.
50  // Any attempt to call it will return a compiler error.
51  SpeedControl( const SpeedControl& old ); // disallow copy constructor
52 
53  bool ok_;
54 
55  float propPitch_;
56 
58 
59  bool readConfig( void );
60 
61  void controlSpeed();
62 
63  float calcPropOmga( float speedMetersPerSec );
64 
65  void setSpeed( float speedCmd );
66 
68 
70 
72 
74 
75 };
76 
77 #endif /*SAMPLECOMPONENT_H_*/
float propPitch_
Definition: SpeedControl.h:55
bool readConfig(void)
Load SpeedControl parameters.
Definition: SpeedControl.cpp:93
void setSpeed(float speedCmd)
Definition: SpeedControl.cpp:116
void uninitialize(void)
Uninit function.
Definition: SpeedControl.cpp:85
void initialize(void)
Provide a space for initialization before being run.
Definition: SpeedControl.cpp:45
Contains the SyncComponent class definition.
void controlSpeed()
Definition: SpeedControl.cpp:104
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: UniversalDataReader.h:26
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: DataReader.h:30
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: DataWriter.h:27
float calcPropOmga(float speedMetersPerSec)
Definition: SpeedControl.cpp:127
ConfigReader * propPitchCfgReader_
Definition: SpeedControl.h:69
SpeedControl(const Module *module)
Definition: SpeedControl.cpp:22
UniversalDataReader * speedReader_
Definition: SpeedControl.h:71
This is the primary "control" for the vehicle's speed.
Definition: SpeedControl.h:33
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
virtual ~SpeedControl()
Definition: SpeedControl.cpp:41
Definition: ConfigReader.h:13
float propOmegaMargin_
Definition: SpeedControl.h:57
DataReader * speedCmdReader_
Definition: SpeedControl.h:67
Abstract Base class for components that compute settings to be communicated to SyncServoComponent ins...
Definition: SyncComponent.h:228
void run()
The actual "payload" of the component.
Definition: SpeedControl.cpp:57
DataWriter * propOmegaActionWriter_
Definition: SpeedControl.h:73
bool ok_
Definition: SpeedControl.h:53
Represents absolute times.
Definition: Timestamp.h:31