#include <PhysicalTiltSensor.h>
Inheritance diagram for PhysicalTiltSensor:
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 |
|
Default Constructor Definition at line 16 of file PhysicalTiltSensor.cpp. References m_fd. |
|
Deconstructor Definition at line 21 of file PhysicalTiltSensor.cpp. References m_fd. |
|
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 55 of file PhysicalTiltSensor.cpp. References hear(), m_fd, and say(). Referenced by TiltSensor::GetAngles(). |
|
Get comm port file descriptor Definition at line 85 of file PhysicalTiltSensor.cpp. Referenced by TiltSensor::GetFD(). |
|
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 95 of file PhysicalTiltSensor.cpp. |
|
Get rotation of sensor (pure virtual from Sensor.h) Implements AttitudeSensor. Definition at line 49 of file PhysicalTiltSensor.cpp. References O_SESSAME::Vector. |
|
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(). |
|
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 90 of file PhysicalTiltSensor.cpp. References m_Port. Referenced by TiltSensor::SetPort(), and TiltSensor::TiltSensor(). |
|
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(). |
|
Serial comm file descriptor Definition at line 74 of file PhysicalTiltSensor.h. Referenced by GetAngles(), Initialize(), PhysicalTiltSensor(), and ~PhysicalTiltSensor(). |
|
Current Pitch Angle (rad) Definition at line 62 of file PhysicalTiltSensor.h. |
|
Time Stamp of pitch measurement Definition at line 65 of file PhysicalTiltSensor.h. |
|
Serial comm port Definition at line 77 of file PhysicalTiltSensor.h. Referenced by Initialize(), and SetPort(). |
|
Current Roll Angle (rad) Definition at line 68 of file PhysicalTiltSensor.h. |
|
Time Stamp of Roll measurement Definition at line 71 of file PhysicalTiltSensor.h. |
|
|