OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
openjaus::mobility::GlobalVectorRecord Class Reference

#include <GlobalVectorRecord.h>

Inherits openjaus::model::fields::Record.

Public Member Functions

 GlobalVectorRecord ()
 
 GlobalVectorRecord (const GlobalVectorRecord &source)
 
 ~GlobalVectorRecord ()
 
void copy (GlobalVectorRecord &source)
 
virtual int to (system::Buffer *dst)
 Operation to. More...
 
virtual int from (system::Buffer *src)
 Operation from. More...
 
virtual int length (void)
 Serializes object to internal transport buffer. More...
 
std::string toXml (unsigned char ojIndentLevel=0) const
 
void setPresenceVector (uint8_t value)
 
uint8_t getPresenceVector (void) const
 
bool isSpeedEnabled (void) const
 
void enableSpeed (void)
 
void disableSpeed (void)
 
bool isAltitudeEnabled (void) const
 
void enableAltitude (void)
 
void disableAltitude (void)
 
bool isHeadingEnabled (void) const
 
void enableHeading (void)
 
void disableHeading (void)
 
bool isRollEnabled (void) const
 
void enableRoll (void)
 
void disableRoll (void)
 
bool isPitchEnabled (void) const
 
void enablePitch (void)
 
void disablePitch (void)
 
double getSpeed_mps (void)
 
bool setSpeed_mps (double value)
 
double getAltitude_m (void)
 
bool setAltitude_m (double value)
 
double getHeading_rad (void)
 
bool setHeading_rad (double value)
 
double getRoll_rad (void)
 
bool setRoll_rad (double value)
 
double getPitch_rad (void)
 
bool setPitch_rad (double value)
 
- Public Member Functions inherited from openjaus::model::fields::Record
 Record ()
 
virtual ~Record ()
 
const std::vector< Field *> & getFields () const
 Accessor to get the value of fields. More...
 
bool setFields (const Field &fields)
 Accessor to set value of fields. More...
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::model::fields::ComplexField
virtual ~ComplexField ()
 
- Public Member Functions inherited from openjaus::model::fields::Field
 Field ()
 
virtual ~Field ()
 
std::string getName () const
 Accessor to get the value of name. More...
 
bool setName (std::string name)
 Accessor to set value of name. More...
 
- Public Member Functions inherited from openjaus::system::Transportable
virtual ~Transportable ()
 
 Transportable ()
 

Static Public Attributes

static const uint8_t PV_ALL_FIELDS = 0xFF
 
static const uint8_t PV_NO_FIELDS = 0x0
 
static const uint8_t PV_SPEED = 0x1
 
static const uint8_t PV_ALTITUDE = 0x2
 
static const uint8_t PV_HEADING = 0x4
 
static const uint8_t PV_ROLL = 0x8
 
static const uint8_t PV_PITCH = 0x10
 

Protected Attributes

LinearSpeedScaledInteger speed_mps
 
JausAltitudeScaledInteger altitude_m
 
OrientationScaledInteger heading_rad
 
OrientationScaledInteger roll_rad
 
OrientationScaledInteger pitch_rad
 
uint8_t presenceVector
 
- Protected Attributes inherited from openjaus::model::fields::Record
std::vector< Field *> fields
 
- Protected Attributes inherited from openjaus::model::fields::Field
std::string name
 

Constructor & Destructor Documentation

§ GlobalVectorRecord() [1/2]

openjaus::mobility::GlobalVectorRecord::GlobalVectorRecord ( )

§ GlobalVectorRecord() [2/2]

openjaus::mobility::GlobalVectorRecord::GlobalVectorRecord ( const GlobalVectorRecord source)

§ ~GlobalVectorRecord()

openjaus::mobility::GlobalVectorRecord::~GlobalVectorRecord ( )

Member Function Documentation

§ copy()

void openjaus::mobility::GlobalVectorRecord::copy ( GlobalVectorRecord source)

§ disableAltitude()

void openjaus::mobility::GlobalVectorRecord::disableAltitude ( void  )

§ disableHeading()

void openjaus::mobility::GlobalVectorRecord::disableHeading ( void  )

§ disablePitch()

void openjaus::mobility::GlobalVectorRecord::disablePitch ( void  )

§ disableRoll()

void openjaus::mobility::GlobalVectorRecord::disableRoll ( void  )

§ disableSpeed()

void openjaus::mobility::GlobalVectorRecord::disableSpeed ( void  )

§ enableAltitude()

void openjaus::mobility::GlobalVectorRecord::enableAltitude ( void  )

§ enableHeading()

void openjaus::mobility::GlobalVectorRecord::enableHeading ( void  )

§ enablePitch()

void openjaus::mobility::GlobalVectorRecord::enablePitch ( void  )

§ enableRoll()

void openjaus::mobility::GlobalVectorRecord::enableRoll ( void  )

§ enableSpeed()

void openjaus::mobility::GlobalVectorRecord::enableSpeed ( void  )

§ from()

int openjaus::mobility::GlobalVectorRecord::from ( system::Buffer src)
virtual
Parameters
src

Reimplemented from openjaus::model::fields::Record.

§ getAltitude_m()

double openjaus::mobility::GlobalVectorRecord::getAltitude_m ( void  )

§ getHeading_rad()

double openjaus::mobility::GlobalVectorRecord::getHeading_rad ( void  )

§ getPitch_rad()

double openjaus::mobility::GlobalVectorRecord::getPitch_rad ( void  )

§ getPresenceVector()

uint8_t openjaus::mobility::GlobalVectorRecord::getPresenceVector ( void  ) const

§ getRoll_rad()

double openjaus::mobility::GlobalVectorRecord::getRoll_rad ( void  )

§ getSpeed_mps()

double openjaus::mobility::GlobalVectorRecord::getSpeed_mps ( void  )

§ isAltitudeEnabled()

bool openjaus::mobility::GlobalVectorRecord::isAltitudeEnabled ( void  ) const

§ isHeadingEnabled()

bool openjaus::mobility::GlobalVectorRecord::isHeadingEnabled ( void  ) const

§ isPitchEnabled()

bool openjaus::mobility::GlobalVectorRecord::isPitchEnabled ( void  ) const

§ isRollEnabled()

bool openjaus::mobility::GlobalVectorRecord::isRollEnabled ( void  ) const

§ isSpeedEnabled()

bool openjaus::mobility::GlobalVectorRecord::isSpeedEnabled ( void  ) const

§ length()

int openjaus::mobility::GlobalVectorRecord::length ( void  )
virtual

Reimplemented from openjaus::model::fields::Record.

§ setAltitude_m()

bool openjaus::mobility::GlobalVectorRecord::setAltitude_m ( double  value)

§ setHeading_rad()

bool openjaus::mobility::GlobalVectorRecord::setHeading_rad ( double  value)

§ setPitch_rad()

bool openjaus::mobility::GlobalVectorRecord::setPitch_rad ( double  value)

§ setPresenceVector()

void openjaus::mobility::GlobalVectorRecord::setPresenceVector ( uint8_t  value)

§ setRoll_rad()

bool openjaus::mobility::GlobalVectorRecord::setRoll_rad ( double  value)

§ setSpeed_mps()

bool openjaus::mobility::GlobalVectorRecord::setSpeed_mps ( double  value)

§ to()

int openjaus::mobility::GlobalVectorRecord::to ( system::Buffer dst)
virtual
Parameters
dst

Reimplemented from openjaus::model::fields::Record.

§ toXml()

std::string openjaus::mobility::GlobalVectorRecord::toXml ( unsigned char  ojIndentLevel = 0) const

Member Data Documentation

§ altitude_m

JausAltitudeScaledInteger openjaus::mobility::GlobalVectorRecord::altitude_m
protected

§ heading_rad

OrientationScaledInteger openjaus::mobility::GlobalVectorRecord::heading_rad
protected

§ pitch_rad

OrientationScaledInteger openjaus::mobility::GlobalVectorRecord::pitch_rad
protected

§ presenceVector

uint8_t openjaus::mobility::GlobalVectorRecord::presenceVector
protected

§ PV_ALL_FIELDS

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_ALL_FIELDS = 0xFF
static

§ PV_ALTITUDE

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_ALTITUDE = 0x2
static

§ PV_HEADING

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_HEADING = 0x4
static

§ PV_NO_FIELDS

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_NO_FIELDS = 0x0
static

§ PV_PITCH

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_PITCH = 0x10
static

§ PV_ROLL

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_ROLL = 0x8
static

§ PV_SPEED

const uint8_t openjaus::mobility::GlobalVectorRecord::PV_SPEED = 0x1
static

§ roll_rad

OrientationScaledInteger openjaus::mobility::GlobalVectorRecord::roll_rad
protected

§ speed_mps

LinearSpeedScaledInteger openjaus::mobility::GlobalVectorRecord::speed_mps
protected

The documentation for this class was generated from the following files: