Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

TiltSensor Class Reference

#include <TiltSensor.h>

Inheritance diagram for TiltSensor:

Inheritance graph
[legend]
Collaboration diagram for TiltSensor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TiltSensor ()
 TiltSensor (cfgBody &cfgdat)
virtual ~TiltSensor ()
int Initialize ()
Vector GetSensorToBodyQuaternion ()
Vector GetSensorLocation ()
void GetAngles (double &pitch, double &roll, double &t)
int GetFD ()
void SetPort (string Port)
Measurement GetMeasurement ()
bool IsActive ()
 Returns the current state of m_bActiveState.
Vector GetLocation () const
 Returns the physical location of the device with respect to whorl body coordinates.
void SetLocation (const Vector &newDeviceLocation)
 Specify the physical location of the device with respect to whorl body coordinates.

Static Public Attributes

const bool c_bNotActive = false
 a constant bool that is equal to false.
const bool c_bActive = true
 a constant bool that is equal to true.

Protected Member Functions

virtual int Deinitialize ()
 Deinitializes the device from further use.

Protected Attributes

char * name

Private Attributes

PhysicalTiltSensor m_PhysicalTiltSensor
Vector m_Location
Vector m_Q

Constructor & Destructor Documentation

TiltSensor::TiltSensor  ) 
 

Default COnstructor

Definition at line 19 of file TiltSensor.cpp.

TiltSensor::TiltSensor cfgBody cfgdat  ) 
 

Constructor with Config parsing

Definition at line 23 of file TiltSensor.cpp.

References getCmdIndex(), cfgBody::keys, m_Location, m_PhysicalTiltSensor, m_Q, PhysicalTiltSensor::SetPort(), cfgBody::vals, and O_SESSAME::Vector.

TiltSensor::~TiltSensor  )  [virtual]
 

Deconstructor

Definition at line 55 of file TiltSensor.cpp.


Member Function Documentation

int Device::Deinitialize  )  [protected, virtual, inherited]
 

Deinitializes the device from further use.

Author:
Andrew Turner
Date:
March 25, 1999 Prevents the device from being used. External Methods Called: SetActive(bool) Assumptions: None

Reimplemented in ControlMomentGyro, LinearActuator, MomentumWheel, PhysicalControlMomentGyro, and PhysicalMomentumWheel.

Definition at line 113 of file Device.cpp.

References Device::c_bNotActive, and Device::SetActive().

Referenced by Device::~Device(), Relay::~Relay(), and Thruster::~Thruster().

void TiltSensor::GetAngles double &  pitch,
double &  roll,
double &  t
 

Get measured pitch angle (rad)

Definition at line 74 of file TiltSensor.cpp.

References PhysicalTiltSensor::GetAngles(), and m_PhysicalTiltSensor.

int TiltSensor::GetFD  ) 
 

Get comm file descriptor

Definition at line 79 of file TiltSensor.cpp.

References PhysicalTiltSensor::GetFD(), and m_PhysicalTiltSensor.

Vector Device::GetLocation  )  const [inherited]
 

Returns the physical location of the device with respect to whorl body coordinates.

Returns:
Physical center of the device [x,y,z]^T (meters).

Definition at line 75 of file Device.cpp.

References O_SESSAME::Vector.

Measurement TiltSensor::GetMeasurement  )  [virtual]
 

Get the current measurement

Parameters:
z the current measurement

Implements Sensor.

Definition at line 89 of file TiltSensor.cpp.

Vector TiltSensor::GetSensorLocation  ) 
 

Get Location of sensor

Definition at line 69 of file TiltSensor.cpp.

References O_SESSAME::Vector.

Vector TiltSensor::GetSensorToBodyQuaternion  )  [virtual]
 

Get rotation of sensor (pure virtual from Sensor.h)

Implements AttitudeSensor.

Definition at line 64 of file TiltSensor.cpp.

References O_SESSAME::Vector.

int TiltSensor::Initialize  )  [virtual]
 

Inititalizer

Reimplemented from Device.

Definition at line 59 of file TiltSensor.cpp.

References PhysicalTiltSensor::Initialize(), and m_PhysicalTiltSensor.

bool Device::IsActive  )  [inherited]
 

Returns the current state of m_bActiveState.

Author:
Andrew Turner
Date:
March 25, 1999 This member function is used to inspect the state of the device External Methods Called: None Assumptions: None

Definition at line 59 of file Device.cpp.

Referenced by Device::Device().

void Device::SetLocation const Vector newDeviceLocation  )  [inherited]
 

Specify the physical location of the device with respect to whorl body coordinates.

Parameters:
newDeviceLocation Physical center of the device [x,y,z]^T (meters).

Definition at line 67 of file Device.cpp.

References Device::m_Location, and O_SESSAME::Vector.

void TiltSensor::SetPort string  Port  ) 
 

Set comm port

Definition at line 84 of file TiltSensor.cpp.

References m_PhysicalTiltSensor, and PhysicalTiltSensor::SetPort().


Member Data Documentation

const bool Device::c_bActive = true [static, inherited]
 

a constant bool that is equal to true.

Used for setting the active state

Definition at line 50 of file Device.h.

Referenced by Device::Initialize().

const bool Device::c_bNotActive = false [static, inherited]
 

a constant bool that is equal to false.

Used for setting the active state.

Definition at line 48 of file Device.h.

Referenced by Device::Deinitialize(), and Device::Device().

Vector TiltSensor::m_Location [private]
 

Sensor Location

Reimplemented from Device.

Definition at line 63 of file TiltSensor.h.

Referenced by TiltSensor().

PhysicalTiltSensor TiltSensor::m_PhysicalTiltSensor [private]
 

Member PhysicalTiltSensor

Definition at line 60 of file TiltSensor.h.

Referenced by GetAngles(), GetFD(), Initialize(), SetPort(), and TiltSensor().

Vector TiltSensor::m_Q [private]
 

Sensor rotation

Definition at line 66 of file TiltSensor.h.

Referenced by TiltSensor().

char* Device::name [protected, inherited]
 

Definition at line 56 of file Device.h.


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 12:54:43 2007 for DSACSS Operational Code by  doxygen 1.3.9.1