InertiaSDK

Loading...
Searching...
No Matches
TripleAxisConfig.h
1#pragma once
2
3#include "data/config/AxisConfig.h"
4#include "data/config/SamplerConfig.h"
5#include "data/config/SensorSpecificSettings.h"
6
7 namespace inertia
8{
9
10 struct INERTIA_API TripleAxisConfig
11 : AxisConfig
12 , SamplerConfig
13{
14 bool adoptOffset;
15 bool adoptScale;
16 bool enable1;
17 bool enable2;
18 bool enable3;
19 bool wakeupFromLowPower;
20 int32_t offset1;
21 int32_t offset2;
22 int32_t offset3;
23 float scale1;
24 float scale2;
25 float scale3;
26 uint16_t sensitivity;
27 SpecificSensorSettingsPtr specificSettings;
28
29 TripleAxisConfig(uint8_t sensorID, uint8_t const headerRevision = 1, uint8_t const sensorRevision = 0);
30 TripleAxisConfig(uint8_t const* in, const unsigned _length);
31 TripleAxisConfig(std::wstring const& argString);
32
33#ifdef WITH_BOOST_PROGRAM_OPTIONS
34 static const po::options_description GetOptionDescription();
35#endif
36
37 void GetBytes(std::vector<uint8_t>& out) const override;
38 const std::pair<unsigned, Channel> GetChannel() const override;
39 const std::wstring ToString() const override;
40 const std::wstring ToSimpleString(uint16_t const globalRate) const override;
41 double GetRangeFactor() const override;
42 unsigned GetResolution() const override;
43 unsigned GetMaxRate() const override;
44 unsigned GetInstanceMask() const override;
45};
46
47}
AxisConfig.h
inertia
Definition FlashCommands.h:6
inertia::SpecificSensorSettingsPtr
std::shared_ptr< SpecificSensorSettings > SpecificSensorSettingsPtr
Pointer to a SpecificSensorSettings.
Definition SensorSpecificSettings.h:87