-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathParameters.h
93 lines (63 loc) · 2.57 KB
/
Parameters.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
class OP_Inputs;
class OP_ParameterManager;
#pragma region ParNames and ParLabels
// Names of the parameters
constexpr static char PageMainName[] = "Lidar Settings";
constexpr static char PageConnectionsName[] = "Connection Settings";
constexpr static char PageOutputName[] = "Output Settings";
constexpr static char DefaultName[] = "Default";
constexpr static char DefaultLabel[] = "Run with Default Settings";
constexpr static char StandartModeName[] = "Standartmode";
constexpr static char StandartModeLabel[] = "Standart Mode";
constexpr static char ActiveName[] = "Active";
constexpr static char ActiveLabel[] = "Active";
constexpr static char ConnectName[] = "Connectiontype";
constexpr static char ConnectLabel[] = "Serial / TCP";
constexpr static char PortName[] = "Comport";
constexpr static char PortLabel[] = "COM Port";
constexpr static char BaudrateName[] = "Baudrate";
constexpr static char BaudrateLabel[] = "Baudrate";
constexpr static char NetworkTypeName[] = "Networktype";
constexpr static char NetworkTypeLabel[] = "TCP / UDP";
constexpr static char IpName[] = "Ipaddress";
constexpr static char IpLabel[] = "IP Address";
constexpr static char NetworkPortName[] = "Ipport";
constexpr static char NetworkPortLabel[] = "Network port";
constexpr static char SpeedName[] = "Motorspeed";
constexpr static char SpeedLabel[] = "Motor Speed";
constexpr static char SetSpeedName[] = "Setspeed";
constexpr static char SetSpeedLabel[] = "Set Speed";
constexpr static char CoordsName[] = "Coordsystem";
constexpr static char CoordsLabel[] = "Coordinate System";
constexpr static char PrecisionName[] = "Precision";
constexpr static char PrecisionLabel[] = "Precision";
constexpr static char QualityName[] = "Qualitycheck";
constexpr static char QualityLabel[] = "Quality Check";
constexpr static char DistanceName[] = "Distance";
constexpr static char DistanceLabel[] = "Distance (m)";
#pragma endregion
#pragma region Menus
enum class CoordMenuItems
{
Polar,
Cartesian
};
#pragma endregion
#pragma region Parameters
class Parameters
{
public:
static void setup(OP_ParameterManager*);
// Active
static int evalActive(const OP_Inputs* input);
static int evalStandart(const OP_Inputs* input);
static int evalQuality(const OP_Inputs* input);
static int evalConnectionType(const OP_Inputs* input);
static int evalNetworkType(const OP_Inputs* input);
static int evalMotorSpeed(const OP_Inputs* input);
static int evalPrecision(const OP_Inputs* input);
// Coordinate system
static CoordMenuItems evalCoord(const OP_Inputs* input);
};
#pragma endregion