Flair
Framework Libre Air
|
Class defining IMU datas. More...
#include <ImuData.h>
Classes | |
class | Type |
Public Types | |
enum | PlotableData_t { RawAx, RawAy, RawAz, RawGx, RawGy, RawGz, RawGxDeg, RawGyDeg, RawGzDeg, RawMx, RawMy, RawMz } |
Datas wich can be plotted in a DataPlot1D. More... | |
Public Types inherited from flair::core::Object | |
enum | color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 } |
Public Member Functions | |
ImuData (const Object *parent, std::string name="", int n=1) | |
Constructor. More... | |
~ImuData () | |
Destructor. More... | |
IODataElement * | Element (PlotableData_t data_type) const |
Element. More... | |
Vector3Df | GetRawAcc (void) const |
Get raw accelerations. More... | |
Vector3Df | GetRawMag (void) const |
Get raw magnetometers. More... | |
Vector3Df | GetRawGyr (void) const |
Get raw angular speed. More... | |
void | GetRawAccMagAndGyr (Vector3Df &rawAcc, Vector3Df &rawMag, Vector3Df &rawGyr) const |
Get raw accelerations, magnetometers and angular speeds. More... | |
void | SetRawAcc (const Vector3Df &rawAcc) |
Set raw accelerations. More... | |
void | SetRawMag (const Vector3Df &rawMag) |
Set raw magnetometers. More... | |
void | SetRawGyr (const Vector3Df &rawGyr) |
Set raw angular speed. More... | |
void | SetRawAccMagAndGyr (const Vector3Df &rawAcc, const Vector3Df &rawMag, const Vector3Df &rawGyr) |
Set raw accelerations, magnetometers and angular speeds. More... | |
Type const & | GetDataType () const |
Public Member Functions inherited from flair::core::io_data | |
io_data (const Object *parent, std::string name, int n) | |
Constructor. More... | |
virtual | ~io_data () |
Destructor. More... | |
void | SetDataTime (Time time) |
Set data time. More... | |
Time | DataTime (void) const |
Data time. More... | |
const io_data * | Prev (int n) const |
Previous data. More... | |
Public Member Functions inherited from flair::core::Mutex | |
Mutex (const Object *parent, std::string name="") | |
Constructor. More... | |
~Mutex () | |
Destructor. More... | |
void | GetMutex (void) const |
GetMutex. More... | |
void | ReleaseMutex (void) const |
ReleaseMutex. More... | |
Public Member Functions inherited from flair::core::Object | |
Object (const Object *parent=NULL, std::string name="", std::string type="") | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
std::string | ObjectName (void) const |
Name. More... | |
std::string | ObjectType (void) const |
Type. More... | |
const Object * | Parent (void) const |
Parent. More... | |
std::vector< const Object * > * | TypeChilds (void) const |
Childs of the same type. More... | |
std::vector< const Object * > * | Childs (void) const |
Childs. More... | |
void | Information (const char *function, int line, const char *format,...) const |
Formatted information. More... | |
void | Warning (const char *function, const char *format,...) const |
Formatted warning. More... | |
void | Error (const char *function, const char *format,...) const |
Formatted error. More... | |
bool | ErrorOccured (bool recursive=true) const |
Has an errror occured? More... | |
Additional Inherited Members | |
Protected Member Functions inherited from flair::core::io_data | |
void | AppendLogDescription (std::string description, DataType const &datatype) |
Specify the description of the reimplemented class data's. More... | |
void | SetPtrToCircle (void **ptr) |
Set the datas to circle. More... | |
Protected Attributes inherited from flair::core::io_data | |
io_data * | prev |
Pointer to previous data. More... | |
Class defining IMU datas.
IMU (inertial measurement unit) datas consist of raw accelerometer values, raw gyrometer values and raw magnetometer values.
Datas wich can be plotted in a DataPlot1D.
flair::core::ImuData::ImuData | ( | const Object * | parent, |
std::string | name = "" , |
||
int | n = 1 |
||
) |
Constructor.
Construct an io_data representing IMU datas.
parent | parent |
name | name |
n | number of samples |
flair::core::ImuData::~ImuData | ( | ) |
Destructor.
IODataElement* flair::core::ImuData::Element | ( | PlotableData_t | data_type | ) | const |
Element.
Get a pointer to a specific element. This pointer can be used for plotting.
data_type | data type |
Vector3Df flair::core::ImuData::GetRawAcc | ( | void | ) | const |
Get raw accelerations.
This method is mutex protected.
Vector3Df flair::core::ImuData::GetRawMag | ( | void | ) | const |
Get raw magnetometers.
This method is mutex protected.
Vector3Df flair::core::ImuData::GetRawGyr | ( | void | ) | const |
Get raw angular speed.
This method is mutex protected.
void flair::core::ImuData::GetRawAccMagAndGyr | ( | Vector3Df & | rawAcc, |
Vector3Df & | rawMag, | ||
Vector3Df & | rawGyr | ||
) | const |
Get raw accelerations, magnetometers and angular speeds.
This method is mutex protected.
rawAcc | raw accelerations |
rawMag | raw magnetometers |
rawGyr | raw angular speeds |
void flair::core::ImuData::SetRawAcc | ( | const Vector3Df & | rawAcc | ) |
Set raw accelerations.
This method is mutex protected.
raw | accelerations |
void flair::core::ImuData::SetRawMag | ( | const Vector3Df & | rawMag | ) |
Set raw magnetometers.
This method is mutex protected.
raw | magnetometers |
void flair::core::ImuData::SetRawGyr | ( | const Vector3Df & | rawGyr | ) |
Set raw angular speed.
This method is mutex protected.
raw | angular speed |