summaryrefslogtreecommitdiff
path: root/src/constants.h
blob: 53e6063c079ff3e4bb15bdcb43e5f80dd8c7e4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <cstddef>
#include <cstdint>

// TODO: get rid of qstring
#include <QString>

constexpr size_t img_width = 1280;
constexpr size_t img_height = 800;
constexpr size_t img_size = img_width * img_height;

constexpr uint32_t patternSize = 10;

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 gainKey = "gain";

const QString dumpsRoot{QStringLiteral("/home/user/dumps")};