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

DMUAccelerometer Class Reference

#include <DMUAccelerometer.h>

Inheritance diagram for DMUAccelerometer:

Inheritance graph
[legend]
Collaboration diagram for DMUAccelerometer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DMUAccelerometer ()
 Create an object of type DMUAccelerometer.
 DMUAccelerometer (TiXmlHandle handle, string accString)
 DMUAccelerometer constructor @ param handle XML handle with current whorl as starting node @ param accString name of accelerometer as given in xml config file.
 DMUAccelerometer (int _channel)
 ~DMUAccelerometer ()
int Initialize ()
 Initializes the device for use.
Measurement GetMeasurement ()
Vector GetSensorToBodyQuaternion ()
Vector GetLocation ()
int GetMode ()
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

DMUm_DMU
DAQCardm_DAQCard
int m_channelID
int m_mode
float m_offset
float m_accelScaleFactor

Constructor & Destructor Documentation

DMUAccelerometer::DMUAccelerometer  )  [inline]
 

Create an object of type DMUAccelerometer.

Definition at line 31 of file DMUAccelerometer.h.

DMUAccelerometer::DMUAccelerometer TiXmlHandle  handle,
string  accString
 

DMUAccelerometer constructor @ param handle XML handle with current whorl as starting node @ param accString name of accelerometer as given in xml config file.

Definition at line 21 of file DMUAccelerometer.cpp.

References checkResponse(), TiXmlHandle::Child(), TiXmlHandle::Element(), TiXmlHandle::FirstChild(), Initialize(), m_accelScaleFactor, m_channelID, m_mode, and m_offset.

DMUAccelerometer::DMUAccelerometer int  _channel  )  [inline]
 

Definition at line 35 of file DMUAccelerometer.h.

References Initialize(), and m_channelID.

DMUAccelerometer::~DMUAccelerometer  )  [inline]
 

Definition at line 41 of file DMUAccelerometer.h.


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

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.

Vector DMUAccelerometer::GetLocation  )  [inline]
 

Gets sensor location

Definition at line 113 of file DMUAccelerometer.h.

References DMU::GetLocation(), m_DMU, and O_SESSAME::Vector.

Measurement DMUAccelerometer::GetMeasurement  )  [inline, virtual]
 

Gets current measurement

Implements Sensor.

Definition at line 58 of file DMUAccelerometer.h.

References DMU::GetAnalogReading(), DMU::GetDigitalReading(), m_channelID, m_DAQCard, m_DMU, and Measurement::SetTime().

int DMUAccelerometer::GetMode  )  [inline]
 

Gets the operating mode, either digital (1) or analog (2) (mainly for debugging purposes)

Definition at line 116 of file DMUAccelerometer.h.

Vector DMUAccelerometer::GetSensorToBodyQuaternion  )  [inline, virtual]
 

Gets sensor to body quaternion

Implements AttitudeSensor.

Definition at line 110 of file DMUAccelerometer.h.

References DMU::GetSensorToBodyQuaternion(), m_channelID, m_DMU, and O_SESSAME::Vector.

int DMUAccelerometer::Initialize  )  [inline, virtual]
 

Initializes the device for use.

Author:
Andrew Turner
Date:
March 25, 1999 Allows the device to be used now that it is Active External Methods Called: SetActive(bool) Assumptions: None

Reimplemented from Device.

Definition at line 43 of file DMUAccelerometer.h.

References DAQCard::Instance(), DMU::Instance(), m_DAQCard, m_DMU, and m_mode.

Referenced by DMUAccelerometer().

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.


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

float DMUAccelerometer::m_accelScaleFactor [private]
 

acceleration scale factor in units of V/g

Definition at line 129 of file DMUAccelerometer.h.

Referenced by DMUAccelerometer().

int DMUAccelerometer::m_channelID [private]
 

channel of sensor in DMU

Definition at line 126 of file DMUAccelerometer.h.

Referenced by DMUAccelerometer(), GetMeasurement(), and GetSensorToBodyQuaternion().

DAQCard* DMUAccelerometer::m_DAQCard [private]
 

pointer to instance of the DAQ card

Definition at line 124 of file DMUAccelerometer.h.

Referenced by GetMeasurement(), and Initialize().

DMU* DMUAccelerometer::m_DMU [private]
 

pointer to the instance of the DMU physical device

Definition at line 122 of file DMUAccelerometer.h.

Referenced by GetLocation(), GetMeasurement(), GetSensorToBodyQuaternion(), and Initialize().

int DMUAccelerometer::m_mode [private]
 

mode of operation for the sensor in the DMU, where 1 = digital and 2 = analog

Definition at line 127 of file DMUAccelerometer.h.

Referenced by DMUAccelerometer(), and Initialize().

float DMUAccelerometer::m_offset [private]
 

calibration offset value in units of V

Definition at line 128 of file DMUAccelerometer.h.

Referenced by DMUAccelerometer().

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