#include <TiltSensor.h>
Inheritance diagram for TiltSensor:
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 |
|
Default COnstructor Definition at line 19 of file TiltSensor.cpp. |
|
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. |
|
Deconstructor Definition at line 55 of file TiltSensor.cpp. |
|
Deinitializes the device from further use.
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(). |
|
Get measured pitch angle (rad) Definition at line 74 of file TiltSensor.cpp. References PhysicalTiltSensor::GetAngles(), and m_PhysicalTiltSensor. |
|
Get comm file descriptor Definition at line 79 of file TiltSensor.cpp. References PhysicalTiltSensor::GetFD(), and m_PhysicalTiltSensor. |
|
Returns the physical location of the device with respect to whorl body coordinates.
Definition at line 75 of file Device.cpp. References O_SESSAME::Vector. |
|
Get the current measurement
Implements Sensor. Definition at line 89 of file TiltSensor.cpp. |
|
Get Location of sensor Definition at line 69 of file TiltSensor.cpp. References O_SESSAME::Vector. |
|
Get rotation of sensor (pure virtual from Sensor.h) Implements AttitudeSensor. Definition at line 64 of file TiltSensor.cpp. References O_SESSAME::Vector. |
|
Inititalizer Reimplemented from Device. Definition at line 59 of file TiltSensor.cpp. References PhysicalTiltSensor::Initialize(), and m_PhysicalTiltSensor. |
|
Returns the current state of m_bActiveState.
Definition at line 59 of file Device.cpp. Referenced by Device::Device(). |
|
Specify the physical location of the device with respect to whorl body coordinates.
Definition at line 67 of file Device.cpp. References Device::m_Location, and O_SESSAME::Vector. |
|
Set comm port Definition at line 84 of file TiltSensor.cpp. References m_PhysicalTiltSensor, and PhysicalTiltSensor::SetPort(). |
|
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(). |
|
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(). |
|
Sensor Location Reimplemented from Device. Definition at line 63 of file TiltSensor.h. Referenced by TiltSensor(). |
|
Member PhysicalTiltSensor Definition at line 60 of file TiltSensor.h. Referenced by GetAngles(), GetFD(), Initialize(), SetPort(), and TiltSensor(). |
|
Sensor rotation Definition at line 66 of file TiltSensor.h. Referenced by TiltSensor(). |
|
|