2#include <NDEVR/OrientationSensor.h>
3#include <NDEVR/QueueBuffer.h>
4#include <NDEVR/Quaternion.h>
38 bool readyToSetupFrame()
const;
42 sint02 getPacketGyroState()
const;
45 void setPacketGyroState(
sint02 state);
46 void setStoreReadings(
bool store_readings);
54 bool requestGyroCalibration()
override;
55 void processMadgwick(
Time time);
56 void updateFromQuaternion(
Time time);
84 bool m_reset_gyro =
true;
85 bool m_store_readings =
false;
Stores an angle in an optimized format.
Definition StringStream.h:352
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition IMUCalibrator.h:27
Used to calculate madgick orientation given sensor streams for gyro and optionally magnetometer(s) an...
Definition MadgwikOrientationSensor.h:35
bool supportsRodded() const override
Definition MadgwikOrientationSensor.h:48
Buffer< Time > v_gyro_timestamp
Definition MadgwikOrientationSensor.h:65
void setRequestGyroCallback(const std::function< void()> &callback)
Definition MadgwikOrientationSensor.h:49
Buffer< Ray< 3, fltp08 > > v_accel_data_sync
Definition MadgwikOrientationSensor.h:64
QueueBuffer< OrientationReading, uint04, ObjectAllocator< true, uint04 > > m_historic_orientation
Definition MadgwikOrientationSensor.h:83
bool supportsFixed() const override
Definition MadgwikOrientationSensor.h:47
std::mutex m_theta_mtx
Definition MadgwikOrientationSensor.h:70
Buffer< Ray< 3, fltp08 > > v_gyro_data
Definition MadgwikOrientationSensor.h:66
TimeSpan m_total_ts
Definition MadgwikOrientationSensor.h:76
std::function< void()> m_request_gyro_callback
Definition MadgwikOrientationSensor.h:63
Definition Matrix.hpp:173
Definition MemoryManager.h:283
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:88
Definition ProgressInfo.hpp:43
Definition Quaternion.hpp:20
Definition QueueBuffer.hpp:7
Definition Vertex.hpp:341
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
int16_t sint02
-Defines an alias representing a 2 byte, signed integer. -Can represent exact integer values -32767 t...
Definition BaseValues.hpp:66
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
GyroState
Definition OrientationSensor.h:39
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition BaseValues.hpp:272
Definition MadgwikOrientationSensor.h:14
Vector< 3, fltp08 > accel
Definition MadgwikOrientationSensor.h:23
Vector< 3, fltp08 > magnet
Definition MadgwikOrientationSensor.h:24
OrientationReading()
Definition MadgwikOrientationSensor.h:15
Time time
Definition MadgwikOrientationSensor.h:25
Vector< 3, fltp08 > gyro
Definition MadgwikOrientationSensor.h:22
Quaternion< fltp08 > quaternion
Definition MadgwikOrientationSensor.h:21