summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants.h')
-rw-r--r--src/constants.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/constants.h b/src/constants.h
new file mode 100644
index 0000000..1c451ab
--- /dev/null
+++ b/src/constants.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <cstddef>
+#include <cstdint>
+
+#include <QString>
+
+constexpr size_t img_width = 1280;
+constexpr size_t img_height = 800;
+constexpr uint32_t patternSize = 16;
+
+constexpr float hardcodedZRangeMm{175.f};
+constexpr size_t calibrationTableHeight{0x4000}; // 16384
+
+namespace {
+constexpr uint16_t discretesInRage{16384};
+}
+
+// http json keys
+const QString exposureTimeKey = "exposureTime";
+const QString laserLevelKey = "laserLevel";
+
+const QString dumpsRoot{QStringLiteral("/home/user/dumps")};