InertiaSDK

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