Witmotion IMU Library 1.3.1~dev_7ac354c
Open source UART communication library for sensor devices manufactured by WitMotion Shenzhen Co.,Ltd
Loading...
Searching...
No Matches
util.h File Reference

Helper and utility functions to decode and represent the data. More...

#include "witmotion/types.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  witmotion::witmotion_typed_packets
 
class  witmotion::witmotion_typed_bytecounts
 

Namespaces

namespace  witmotion
 Main namespace of Witmotion UART connection library.
 

Functions

uint8_t witmotion::witmotion_output_frequency (const int hertz)
 Converts the frequency value in Hertz to subsequent Witmotion opcode.
 
uint8_t witmotion::witmotion_baud_rate (const QSerialPort::BaudRate rate)
 
bool witmotion::id_registered (const size_t id)
 
float witmotion::decode_acceleration (const int16_t *value)
 
float witmotion::decode_angular_velocity (const int16_t *value)
 
float witmotion::decode_angle (const int16_t *value)
 
float witmotion::decode_temperature (const int16_t *value)
 
float witmotion::decode_orientation (const int16_t *value)
 
void witmotion::decode_gps_coord (const int32_t *value, double &deg, double &min)
 
void witmotion::decode_realtime_clock (const witmotion_datapacket &packet, uint8_t &year, uint8_t &month, uint8_t &day, uint8_t &hour, uint8_t &minute, uint8_t &second, uint16_t &millisecond)
 
void witmotion::decode_accelerations (const witmotion_datapacket &packet, float &x, float &y, float &z, float &t)
 
void witmotion::decode_angular_velocities (const witmotion_datapacket &packet, float &x, float &y, float &z, float &t)
 
void witmotion::decode_angles (const witmotion_datapacket &packet, float &roll, float &pitch, float &yaw, float &t)
 
void witmotion::decode_magnetometer (const witmotion_datapacket &packet, float &x, float &y, float &z, float &t)
 
void witmotion::decode_altimeter (const witmotion_datapacket &packet, double &pressure, double &height)
 
void witmotion::decode_gps (const witmotion_datapacket &packet, double &longitude_deg, double &longitude_min, double &latitude_deg, double &latitude_min)
 
void witmotion::decode_gps_ground_speed (const witmotion_datapacket &packet, float &altitude, float &angular_velocity, double &ground_speed)
 
void witmotion::decode_orientation (const witmotion_datapacket &packet, float &x, float &y, float &z, float &w)
 
void witmotion::decode_gps_accuracy (const witmotion_datapacket &packet, size_t &satellites, float &local_accuracy, float &horizontal_accuracy, float &vertical_accuracy)
 
template<typename T >
T witmotion::variance (const std::vector< T > &array)
 

Detailed Description