Witmotion IMU Library  1.3.1~dev_4684448
Open source UART communication library for sensor devices manufactured by WitMotion Shenzhen Co.,Ltd
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 
18 namespace witmotion
19 {
20 namespace jy901
21 {
22 
24 { Q_OBJECT
25 private:
27 public:
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