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

PhysicalTiltSensor Class Reference

#include <PhysicalTiltSensor.h>

Inheritance diagram for PhysicalTiltSensor:

Inheritance graph
[legend]
Collaboration diagram for PhysicalTiltSensor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PhysicalTiltSensor ()
virtual ~PhysicalTiltSensor ()
int Initialize ()
Vector GetSensorToBodyQuaternion ()
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

double m_PitchAngle
double m_PitchTime
double m_RollAngle
double m_RollTime
int m_fd
string m_Port

Constructor & Destructor Documentation

PhysicalTiltSensor::PhysicalTiltSensor  ) 
 

Default Constructor

Definition at line 16 of file PhysicalTiltSensor.cpp.

References m_fd.

PhysicalTiltSensor::~PhysicalTiltSensor  )  [virtual]
 

Deconstructor

Definition at line 21 of file PhysicalTiltSensor.cpp.

References m_fd.


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 PhysicalTiltSensor::GetAngles double &  pitch,
double &  roll,
double &  t
 

Get measured pitch angle (rad)

Definition at line 55 of file PhysicalTiltSensor.cpp.

References hear(), m_fd, and say().

Referenced by TiltSensor::GetAngles().

int PhysicalTiltSensor::GetFD  ) 
 

Get comm port file descriptor

Definition at line 85 of file PhysicalTiltSensor.cpp.

Referenced by TiltSensor::GetFD().

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 PhysicalTiltSensor::GetMeasurement  )  [virtual]
 

Get the current measurement

Parameters:
z the current measurement

Implements Sensor.

Definition at line 95 of file PhysicalTiltSensor.cpp.

Vector PhysicalTiltSensor::GetSensorToBodyQuaternion  )  [virtual]
 

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

Implements AttitudeSensor.

Definition at line 49 of file PhysicalTiltSensor.cpp.

References O_SESSAME::Vector.

int PhysicalTiltSensor::Initialize  )  [virtual]
 

Initialize

Reimplemented from Device.

Definition at line 26 of file PhysicalTiltSensor.cpp.

References hear(), init_serial(), m_fd, m_Port, and say().

Referenced by TiltSensor::Initialize().

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 PhysicalTiltSensor::SetPort string  Port  ) 
 

Set comm port

Definition at line 90 of file PhysicalTiltSensor.cpp.

References m_Port.

Referenced by TiltSensor::SetPort(), and TiltSensor::TiltSensor().


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().

int PhysicalTiltSensor::m_fd [private]
 

Serial comm file descriptor

Definition at line 74 of file PhysicalTiltSensor.h.

Referenced by GetAngles(), Initialize(), PhysicalTiltSensor(), and ~PhysicalTiltSensor().

double PhysicalTiltSensor::m_PitchAngle [private]
 

Current Pitch Angle (rad)

Definition at line 62 of file PhysicalTiltSensor.h.

double PhysicalTiltSensor::m_PitchTime [private]
 

Time Stamp of pitch measurement

Definition at line 65 of file PhysicalTiltSensor.h.

string PhysicalTiltSensor::m_Port [private]
 

Serial comm port

Definition at line 77 of file PhysicalTiltSensor.h.

Referenced by Initialize(), and SetPort().

double PhysicalTiltSensor::m_RollAngle [private]
 

Current Roll Angle (rad)

Definition at line 68 of file PhysicalTiltSensor.h.

double PhysicalTiltSensor::m_RollTime [private]
 

Time Stamp of Roll measurement

Definition at line 71 of file PhysicalTiltSensor.h.

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:42 2007 for DSACSS Operational Code by  doxygen 1.3.9.1