DUNE: Uniform Navigational Environment  2016.05.0
Sensors::MicrostrainMIP::Driver Class Reference

Public Member Functions

 Driver (Tasks::Task *parent, const std::string &uart_dev, unsigned uart_baud)
 
 ~Driver (void)
 
bool setToIdleNoAck (void)
 
bool setToIdle (void)
 
bool getDeviceInfo (void)
 
bool getHardIronOffset (float &offset_x, float &offset_y, float &offset_z)
 
bool setHardIronOffset (float offset_x, float offset_y, float offset_z)
 
bool enableContinuousStream (bool enabled)
 
bool setContinuousStreamFormat (uint16_t rate_decimation)
 
unsigned addPayloadFormatDescriptor (std::vector< uint8_t > &format, uint16_t rate_decimation, uint8_t descriptor)
 
void fillPayloadFormat (std::vector< uint8_t > &format, uint16_t rate_decimation)
 
bool readSample (double timeout)
 
double getTimeStamp (void) const
 
void setRotationMatrix (const Matrix &rotation_matrix)
 
size_t getTimeoutCount (void) const
 
size_t getInvalidCount (void) const
 
size_t getSampleCount (void) const
 
void setSampleCount (size_t sample_count)
 
std::string getModelName (void) const
 
std::string getModelNumber (void) const
 
std::string getSerialNumber (void) const
 

Constructor & Destructor Documentation

Sensors::MicrostrainMIP::Driver::Driver ( Tasks::Task *  parent,
const std::string &  uart_dev,
unsigned  uart_baud 
)
inline
Sensors::MicrostrainMIP::Driver::~Driver ( void  )
inline

Member Function Documentation

unsigned Sensors::MicrostrainMIP::Driver::addPayloadFormatDescriptor ( std::vector< uint8_t > &  format,
uint16_t  rate_decimation,
uint8_t  descriptor 
)
inline

Referenced by fillPayloadFormat().

bool Sensors::MicrostrainMIP::Driver::enableContinuousStream ( bool  enabled)
inline
void Sensors::MicrostrainMIP::Driver::fillPayloadFormat ( std::vector< uint8_t > &  format,
uint16_t  rate_decimation 
)
inline
bool Sensors::MicrostrainMIP::Driver::getHardIronOffset ( float &  offset_x,
float &  offset_y,
float &  offset_z 
)
inline
size_t Sensors::MicrostrainMIP::Driver::getInvalidCount ( void  ) const
inline
std::string Sensors::MicrostrainMIP::Driver::getModelName ( void  ) const
inline
std::string Sensors::MicrostrainMIP::Driver::getModelNumber ( void  ) const
inline
size_t Sensors::MicrostrainMIP::Driver::getSampleCount ( void  ) const
inline
std::string Sensors::MicrostrainMIP::Driver::getSerialNumber ( void  ) const
inline
size_t Sensors::MicrostrainMIP::Driver::getTimeoutCount ( void  ) const
inline
double Sensors::MicrostrainMIP::Driver::getTimeStamp ( void  ) const
inline
bool Sensors::MicrostrainMIP::Driver::readSample ( double  timeout)
inline
bool Sensors::MicrostrainMIP::Driver::setContinuousStreamFormat ( uint16_t  rate_decimation)
inline
bool Sensors::MicrostrainMIP::Driver::setHardIronOffset ( float  offset_x,
float  offset_y,
float  offset_z 
)
inline
void Sensors::MicrostrainMIP::Driver::setRotationMatrix ( const Matrix rotation_matrix)
inline
void Sensors::MicrostrainMIP::Driver::setSampleCount ( size_t  sample_count)
inline
bool Sensors::MicrostrainMIP::Driver::setToIdle ( void  )
inline

Place device into idle mode.

Returns
true if command succeeded, false otherwise.

References Sensors::MicrostrainMIP::CMD_BASE_SET_TO_IDLE, and Sensors::MicrostrainMIP::CMD_SET_BASE.

Referenced by Sensors::MicrostrainMIP::Task::onResourceInitialization().

bool Sensors::MicrostrainMIP::Driver::setToIdleNoAck ( void  )
inline
Collaboration diagram for Sensors::MicrostrainMIP::Driver:
Collaboration graph