-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmenu_system_derivates.h
More file actions
134 lines (104 loc) · 2.54 KB
/
menu_system_derivates.h
File metadata and controls
134 lines (104 loc) · 2.54 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#pragma once
#include "menu_system_basics.h"
class MenuMotor: public Menu{
public:
MenuMotor(uint8_t, MenuItem* const*, uint8_t);
void on_enter();
uint8_t index;
};
class MenuListMotorMicrostepping: public MenuList<uint16_t>{
public:
MenuListMotorMicrostepping();
void on_enter();
void loop();
uint16_t value;
};
class MenuListMotorBlankTime: public MenuList<uint8_t>{
public:
MenuListMotorBlankTime();
void on_enter();
void loop();
uint8_t value;
};
class MenuListMotorCurrent: public MenuList<uint16_t>{
public:
MenuListMotorCurrent();
void on_enter();
void loop();
uint16_t value;
};
class MenuRangeMotorOffTime: public MenuRange<uint8_t>{
public:
MenuRangeMotorOffTime();
void on_enter();
void loop();
uint8_t value;
};
class MenuRangeMotorRPM: public MenuRange<uint16_t>{
public:
MenuRangeMotorRPM();
void on_enter();
void loop();
uint16_t value;
};
class MenuRangeMotorSgThreshold: public MenuRange<int8_t>{
public:
MenuRangeMotorSgThreshold();
void on_enter();
void loop();
int8_t value;
};
class MenuRangeMotorAccel: public MenuRange<uint16_t>{
public:
MenuRangeMotorAccel();
void on_enter();
void loop();
uint16_t value;
};
class MenuRangeMotorDecel: public MenuRange<uint16_t>{
public:
MenuRangeMotorDecel();
void on_enter();
void loop();
uint16_t value;
};
class MenuRangeMotorSEMIN: public MenuRange<int8_t>{
public:
MenuRangeMotorSEMIN();
void on_enter();
void loop();
int8_t value;
};
class MenuRangeMotorSEMAX: public MenuRange<int8_t>{
public:
MenuRangeMotorSEMAX();
void on_enter();
void loop();
int8_t value;
};
class MenuRangeMotorHoldMultiplier: public MenuRange<float>{
public:
MenuRangeMotorHoldMultiplier();
void on_enter();
void loop();
float value;
};
class MenuMotorManualSteps: public Menu{
public:
MenuMotorManualSteps();
void on_enter();
void on_press(uint16_t);
void draw(bool = true);
void move(int8_t);
};
extern const char pgmstr_microstepping[]; // "Microstepping"
extern const char pgmstr_blank_time[]; // "Blank time"
extern const char pgmstr_current[]; // "Current"
extern const char pgmstr_off_time[]; // "Off time"
extern const char pgmstr_speed_rpm[]; // "Speed [RPM]"
extern const char pgmstr_sg_thres[]; // "Sg thres"
extern const char pgmstr_accel_rpms[]; // "Accel [RPMS]"
extern const char pgmstr_decel_rpms[]; // "Decel [RPMS]"
extern const char pgmstr_smartenergy_min[]; // "SmartEnergy Min"
extern const char pgmstr_smartenergy_max[]; // "SmartEnergy Max"
extern const char pgmstr_hold_multiplier[]; // "Hold multiplier"