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
jy901-uart.h
1#ifndef WITMOTION_JY901
2#define WITMOTION_JY901
3
4#include <QSerialPort>
5#include <QSerialPortInfo>
6
7#include <iostream>
8#include <string>
9#include <cmath>
10
11#include <unistd.h>
12
13#include "witmotion/types.h"
14#include "witmotion/util.h"
15#include "witmotion/serial.h"
16#include "witmotion/wt901-uart.h"
17
18namespace witmotion
19{
20namespace jy901
21{
22
25private:
27public:
28 virtual const std::set<witmotion_packet_id>* RegisteredPacketTypes();
29 virtual void SetMeasurements(const bool realtime_clock = false,
30 const bool acceleration = true,
31 const bool angular_velocity = true,
32 const bool euler_angles = true,
33 const bool magnetometer = true,
34 const bool orientation = false,
35 const bool port_status = false,
36 const bool altimeter = true);
37 QWitmotionJY901Sensor(const QString device,
38 const QSerialPort::BaudRate rate,
39 const uint32_t polling_period = 50);
40};
41
42}
43}
44#endif
Definition jy901-uart.h:24
Definition wt901-uart.h:24
Main namespace of Witmotion UART connection library.
Definition jy901-uart.h:19