InertiaSDK

Loading...
Searching...
No Matches
GenericSensorConfig.h
1#pragma once
2
3#include "data/config/GenericConfig.h"
4#include "data/config/AxisConfig.h"
5
6 namespace inertia
7{
8
9 struct INERTIA_API GenericSensorConfig
10 : GenericConfig
11{
12 private:
13 ConfigType configType; // single, dual, triple, quad, other
14
15 public:
16 std::vector<AxisConfigPtr> configs;
17
18 GenericSensorConfig(ConfigType _configType);
19 GenericSensorConfig(uint8_t const* in, ConfigType _configType, const unsigned _length);
20 GenericSensorConfig(std::wstring const& argString, ConfigType _configType);
21
22#ifdef WITH_BOOST_PROGRAM_OPTIONS
23 static const po::options_description GetOptionDescription(ConfigType configType);
24#endif
25
26 void GetBytes(std::vector<uint8_t>& out) const override;
27 ConfigType GetConfigType() const override;
28 const std::wstring ToString() const override;
29 const std::wstring ToSimpleString(uint16_t const globalRate) const;
30};
31
32}
AxisConfig.h
inertia
Definition FlashCommands.h:6
inertia::ConfigType
ConfigType
Definition ConfigChannel.h:7