![]() |
Flair
Framework Libre Air
|
#include <Imu.h>
Inheritance diagram for flair::sensor::Imu:Public Member Functions | |
| Imu (std::string name, bool needRotation=true) | |
| Constructor. More... | |
| Imu (const core::IODevice *parent, std::string name) | |
| Constructor. More... | |
| ~Imu () | |
| Destructor. More... | |
| const core::ImuData * | GetDatas (void) const |
| Get IMU datas. More... | |
| gui::Layout * | GetLayout (void) const |
| Setup Layout. More... | |
| void | LockUserInterface (void) const |
| Lock user interface. More... | |
| void | UnlockUserInterface (void) const |
| Unlock user interface. More... | |
| void | UseDefaultPlot (void) |
| Use default plot. More... | |
| gui::Tab * | GetPlotTab (void) const |
| Plot tab. More... | |
| core::OneAxisRotation * | GetOneAxisRotation (void) const |
| Get OneAxisRotation. More... | |
Public Member Functions inherited from flair::core::IODevice | |
| IODevice (const Object *parent, std::string name) | |
| Constructor. More... | |
| virtual | ~IODevice () |
| Destructor. More... | |
| void | AddDeviceToLog (const IODevice *device) |
| Add an IODevice to the logs. More... | |
| void | AddDataToLog (const io_data *data) |
| Add an io_data to the log. More... | |
| void | OutputToShMem (bool enabled) |
| Send the output to a shared memory. More... | |
| bool | IsReady (void) const |
| is device ready More... | |
| virtual DataType const & | GetInputDataType () const |
| virtual DataType const & | GetOutputDataType () const |
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... | |
Protected Member Functions | |
| gui::GroupBox * | GetGroupBox (void) const |
| Setup GroupBox. More... | |
| void | ApplyRotation (core::Vector3Df &vector) |
| ApplyRotation. More... | |
| void | ApplyRotation (core::Quaternion &quaternion) |
| ApplyRotation. More... | |
| void | GetDatas (core::ImuData **imuData) const |
| Get imu datas. More... | |
Protected Member Functions inherited from flair::core::IODevice | |
| void | ProcessUpdate (io_data *data) |
| Process the childs of type IODevice, and log if needed. More... | |
| void | SetIsReady (bool status) |
| set is ready More... | |
Additional Inherited Members | |
Public Types inherited from flair::core::Object | |
| enum | color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 } |
| flair::sensor::Imu::Imu | ( | std::string | name, |
| bool | needRotation = true |
||
| ) |
Constructor.
Construct an Imu. It will be child of the FrameworkManager.
| name | name |
| needRotation | true will enable post rotation in GCS. Post rotation must be applied manually in reimplemented code |
| flair::sensor::Imu::Imu | ( | const core::IODevice * | parent, |
| std::string | name | ||
| ) |
Constructor.
Construct an Imu.
This contructor must only be called for a simulated device.
| parent | parent |
| name | name |
| flair::sensor::Imu::~Imu | ( | ) |
Destructor.
| const core::ImuData* flair::sensor::Imu::GetDatas | ( | void | ) | const |
Get IMU datas.
| gui::Layout* flair::sensor::Imu::GetLayout | ( | void | ) | const |
Setup Layout.
| void flair::sensor::Imu::LockUserInterface | ( | void | ) | const |
Lock user interface.
| void flair::sensor::Imu::UnlockUserInterface | ( | void | ) | const |
Unlock user interface.
| void flair::sensor::Imu::UseDefaultPlot | ( | void | ) |
Use default plot.
| gui::Tab* flair::sensor::Imu::GetPlotTab | ( | void | ) | const |
Plot tab.
| core::OneAxisRotation* flair::sensor::Imu::GetOneAxisRotation | ( | void | ) | const |
Get OneAxisRotation.
|
protected |
Setup GroupBox.
|
protected |
ApplyRotation.
The reimplemented class must call this function to rotate IMU datas, before filling the ImuData.
It handles the data rotation if it was defined.
| vector | vector to apply rotation to |
|
protected |
ApplyRotation.
The reimplemented class must call this function to rotate IMU datas, before filling the ImuData.
It handles the data rotation if it was defined.
| quaternion | quaternion to apply rotation to |
|
protected |