InertiaSDK

Loading...
Searching...
No Matches
InertialConfig.h
1#pragma once
2
3#include "data/config/SamplingConfig.h"
4
5 namespace inertia
6{
7
8 struct INERTIA_API InertialConfig
9 : SamplingConfig
10{
11 public:
12 bool adoptOffset;
13 bool adoptScale;
14
15 float scaleX;
16 float scaleY;
17 float scaleZ;
18
19 int16_t offsetX;
20 int16_t offsetY;
21 int16_t offsetZ;
22
23 protected:
24 InertialConfig();
25 InertialConfig(uint8_t const* in);
26 InertialConfig(std::wstring const& argString);
27
28#ifdef WITH_BOOST_PROGRAM_OPTIONS
29 static const po::options_description GetOptionDescription();
30#endif
31
32 virtual void GetBytes(std::vector<uint8_t>& out) const override;
33 virtual const std::wstring ToString() const override;
34
35 public:
36 virtual double GetRangeFactor() const = 0;
37 virtual uint16_t GetMaxRate() const = 0;
38};
39
40}
inertia
Definition FlashCommands.h:6