InertiaSDK

Loading...
Searching...
No Matches
DualAxisConfig.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 DualAxisConfig
11 : AxisConfig
12 , SamplerConfig
13{
14 bool adoptOffset;
15 bool adoptScale;
16 bool enable1;
17 bool enable2;
18 bool wakeupFromLowPower;
19 int32_t offset1;
20 int32_t offset2;
21 float scale1;
22 float scale2;
23 uint16_t sensitivity;
24 SpecificSensorSettingsPtr specificSettings;
25
26 DualAxisConfig(uint8_t sensorID, uint8_t const headerRevision = 1, uint8_t const sensorRevision = 0);
27 DualAxisConfig(uint8_t const* in, const unsigned _length);
28 DualAxisConfig(std::wstring const& argString);
29
30#ifdef WITH_BOOST_PROGRAM_OPTIONS
31 static const po::options_description GetOptionDescription();
32#endif
33
34 void GetBytes(std::vector<uint8_t>& out) const override;
35 const std::pair<unsigned, Channel> GetChannel() const override;
36 const std::wstring ToString() const override;
37 const std::wstring ToSimpleString(uint16_t const globalRate) const override;
38 double GetRangeFactor() const override;
39 unsigned GetResolution() const override;
40 unsigned GetMaxRate() const override;
41 unsigned GetInstanceMask() const override;
42};
43
44}
AxisConfig.h
inertia
Definition FlashCommands.h:6
inertia::SpecificSensorSettingsPtr
std::shared_ptr< SpecificSensorSettings > SpecificSensorSettingsPtr
Pointer to a SpecificSensorSettings.
Definition SensorSpecificSettings.h:87