summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-12 01:42:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-12 01:49:52 +0200
commit8731b350d7210505994fdfec6dc1cfa4bbf015d7 (patch)
treedd0701d6746edb56a85648b11eb05b9833d215d3 /logic
parent3a9e32e7c8c6df97720ba569ef64131b086ad281 (diff)
gui/mapping: allow for up to 100 cm translation
Defaults to 30 cm as before. Changes X snap value for larger max value. Related-to: #352
Diffstat (limited to 'logic')
-rw-r--r--logic/main-settings.hpp1
-rw-r--r--logic/mappings.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index 20805059..51b729e3 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -35,6 +35,7 @@ struct OTR_LOGIC_EXPORT axis_opts final
r15 = 15,
r10 = 10,
+ t100 = 100,
t30 = 30,
t20 = 20,
t15 = 15,
diff --git a/logic/mappings.cpp b/logic/mappings.cpp
index f9a149e3..d7764375 100644
--- a/logic/mappings.cpp
+++ b/logic/mappings.cpp
@@ -25,9 +25,9 @@ void Map::load()
Mappings::Mappings(std::vector<axis_opts*> opts) :
axes {
- Map("spline-X", "alt-spline-X", 30, 75, *opts[TX]),
- Map("spline-Y", "alt-spline-Y", 30, 75, *opts[TY]),
- Map("spline-Z", "alt-spline-Z", 30, 75, *opts[TZ]),
+ Map("spline-X", "alt-spline-X", 100, 75, *opts[TX]),
+ Map("spline-Y", "alt-spline-Y", 100, 75, *opts[TY]),
+ Map("spline-Z", "alt-spline-Z", 100, 75, *opts[TZ]),
Map("spline-yaw", "alt-spline-yaw", 180, 180, *opts[Yaw]),
Map("spline-pitch", "alt-spline-pitch", 180, 180, *opts[Pitch]),
Map("spline-roll", "alt-spline-roll", 180, 180, *opts[Roll])