We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af92695 commit 6b8633bCopy full SHA for 6b8633b
1 file changed
src/include/servoarray/user_config.h
@@ -53,9 +53,22 @@ class MapConfig {
53
MapConfig& merge(const MapConfig&);
54
};
55
56
+class OffsetConfig {
57
+ std::vector<double> offsets_;
58
+
59
+ friend class UserConfig;
60
61
+public:
62
+ const std::vector<double>& offsets() const&;
63
+ std::vector<double> offsets() &&;
64
65
+ OffsetConfig& merge(const OffsetConfig&);
66
+};
67
68
class UserConfig {
69
DriverConfig driver_;
70
MapConfig mapping_;
71
+ OffsetConfig offset_;
72
73
public:
74
UserConfig() = default;
@@ -68,6 +81,9 @@ class UserConfig {
81
const MapConfig& mapping() const&;
82
MapConfig mapping() &&;
83
84
+ const OffsetConfig& offset() const&;
85
+ OffsetConfig offset() &&;
86
87
UserConfig& merge(const UserConfig&);
88
89
0 commit comments