-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added driver library for JY901 sensor - Added controller application for JY901 sensor - Added covariance measurement possibility for athmospheric pressure - Variance function exposed as a template - Template namespace fix
- Loading branch information
Showing
7 changed files
with
963 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#ifndef WITMOTION_JY901 | ||
#define WITMOTION_JY901 | ||
|
||
#include <QSerialPort> | ||
#include <QSerialPortInfo> | ||
|
||
#include <iostream> | ||
#include <string> | ||
#include <cmath> | ||
|
||
#include <unistd.h> | ||
|
||
#include "witmotion/types.h" | ||
#include "witmotion/util.h" | ||
#include "witmotion/serial.h" | ||
#include "witmotion/wt901-uart.h" | ||
|
||
namespace witmotion | ||
{ | ||
namespace jy901 | ||
{ | ||
|
||
class QWitmotionJY901Sensor: public witmotion::wt901::QWitmotionWT901Sensor | ||
{ Q_OBJECT | ||
private: | ||
static const std::set<witmotion_packet_id> registered_types; | ||
public: | ||
virtual const std::set<witmotion_packet_id>* RegisteredPacketTypes(); | ||
virtual void SetMeasurements(const bool realtime_clock = false, | ||
const bool acceleration = true, | ||
const bool angular_velocity = true, | ||
const bool euler_angles = true, | ||
const bool magnetometer = true, | ||
const bool orientation = false, | ||
const bool port_status = false, | ||
const bool altimeter = true); | ||
QWitmotionJY901Sensor(const QString device, | ||
const QSerialPort::BaudRate rate, | ||
const uint32_t polling_period = 50); | ||
}; | ||
|
||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.