summaryrefslogtreecommitdiffstats
path: root/linz
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2021-01-16 21:47:38 +0100
committermanuel <manuel@mausz.at>2021-01-16 21:47:38 +0100
commitd3dd8913bdf41e38bbc75b1f5dbe7159650ba80b (patch)
tree6f37bbd847f10785cd56eed6ae03ac78447a6330 /linz
parentdeb1a919401b89a0da7dcfec9ecb88b17dc30b28 (diff)
downloadarduino-d3dd8913bdf41e38bbc75b1f5dbe7159650ba80b.tar.gz
arduino-d3dd8913bdf41e38bbc75b1f5dbe7159650ba80b.tar.bz2
arduino-d3dd8913bdf41e38bbc75b1f5dbe7159650ba80b.zip
glasslathe: update acceleration curve
Diffstat (limited to 'linz')
-rw-r--r--linz/glasslathe/motor_start.tmc7
-rw-r--r--linz/glasslathe/motor_start_rev.tmc8
-rw-r--r--linz/glasslathe/scurve/calc.cpp25
-rw-r--r--linz/glasslathe/scurve/chart.js1646
-rw-r--r--linz/glasslathe/src/main.cpp20
5 files changed, 137 insertions, 1569 deletions
diff --git a/linz/glasslathe/motor_start.tmc b/linz/glasslathe/motor_start.tmc
new file mode 100644
index 0000000..ce6113d
--- /dev/null
+++ b/linz/glasslathe/motor_start.tmc
@@ -0,0 +1,7 @@
1SAP 6 , 0 , 255 // Set run current
2SAP 7 , 0 , 8 // Set standby current
3SAP 254 , 0 , 1 // Activate step / direction mode
4SAP 140 , 0 , 4 // 16 microsteps
5SAP 160 , 0 , 1 // Activate step interpolation (only works with 16 microsteps)
6SAP 161 , 0 , 1 // Activate double step
7STOP // End of this program
diff --git a/linz/glasslathe/motor_start_rev.tmc b/linz/glasslathe/motor_start_rev.tmc
new file mode 100644
index 0000000..c3fcf65
--- /dev/null
+++ b/linz/glasslathe/motor_start_rev.tmc
@@ -0,0 +1,8 @@
1SAP 6 , 0 , 255 // Set run current
2SAP 7 , 0 , 8 // Set standby current
3SAP 254 , 0 , 1 // Activate step / direction mode
4SAP 251 , 0 , 1 // Reverse shaft
5SAP 140 , 0 , 4 // 16 microsteps
6SAP 160 , 0 , 1 // Activate step interpolation (only works with 16 microsteps)
7SAP 161 , 0 , 1 // Activate double step
8STOP // End of this program
diff --git a/linz/glasslathe/scurve/calc.cpp b/linz/glasslathe/scurve/calc.cpp
index 1371577..8797e86 100644
--- a/linz/glasslathe/scurve/calc.cpp
+++ b/linz/glasslathe/scurve/calc.cpp
@@ -12,7 +12,7 @@ const int frequency_max = 6000;
12int newPotValue; 12int newPotValue;
13bool timer_enabled = false; 13bool timer_enabled = false;
14 14
15int x = 0; 15unsigned long x = 0;
16bool loop() 16bool loop()
17{ 17{
18 const int step_delay = 300; 18 const int step_delay = 300;
@@ -23,7 +23,7 @@ bool loop()
23 timer_enabled = true; 23 timer_enabled = true;
24 fprintf(stderr, "enable motor\n"); 24 fprintf(stderr, "enable motor\n");
25 x += step_delay; 25 x += step_delay;
26 printf("[%d, %d],\n", x, 0); 26 printf("[%lu, %d],\n", x, 0);
27 } 27 }
28 28
29 /*int step = (current.potValue < 20) ? 1 29 /*int step = (current.potValue < 20) ? 1
@@ -32,12 +32,12 @@ bool loop()
32 : (current.potValue < 400) ? 5 32 : (current.potValue < 400) ? 5
33 : (current.potValue < 500) ? 10 33 : (current.potValue < 500) ? 10
34 : 20;*/ 34 : 20;*/
35 int step = (current.frequency > 5000) ? 1 35 int step = (current.frequency > 5000) ? 100
36 : (current.frequency > 4500) ? 2 36 : (current.frequency > 4000) ? 100
37 : (current.frequency > 4000) ? 5 37 : (current.frequency > 3000) ? 150
38 : (current.frequency > 3000) ? 10 38 : (current.frequency > 2000) ? 150
39 : (current.frequency > 1000) ? 25 39 : (current.frequency > 1000) ? 120
40 : 50; 40 : 200;
41 int frequency = (current.direction == target.direction) ? target.frequency : 0; 41 int frequency = (current.direction == target.direction) ? target.frequency : 0;
42 step = std::min(abs(frequency - current.frequency), step); 42 step = std::min(abs(frequency - current.frequency), step);
43 if (frequency < current.frequency) 43 if (frequency < current.frequency)
@@ -45,7 +45,7 @@ bool loop()
45 current.frequency += step; 45 current.frequency += step;
46 46
47 x += step_delay; 47 x += step_delay;
48 printf("[%d, %d],\n", x, current.frequency); 48 printf("[%lu, %d],\n", x, current.frequency);
49 49
50 if (current.frequency == 0 && current.direction != target.direction) 50 if (current.frequency == 0 && current.direction != target.direction)
51 { 51 {
@@ -53,7 +53,7 @@ bool loop()
53 current.direction = target.direction; 53 current.direction = target.direction;
54 fprintf(stderr, "disable motor. changed direction to %d\n", current.direction); 54 fprintf(stderr, "disable motor. changed direction to %d\n", current.direction);
55 x += step_delay; 55 x += step_delay;
56 printf("[%d, %d],\n", x, 0); 56 printf("[%lu, %d],\n", x, 0);
57 } 57 }
58 } 58 }
59 else if (timer_enabled && target.potValue == 0) 59 else if (timer_enabled && target.potValue == 0)
@@ -61,7 +61,7 @@ bool loop()
61 timer_enabled = false; 61 timer_enabled = false;
62 fprintf(stderr, "disable motor\n"); 62 fprintf(stderr, "disable motor\n");
63 x += step_delay; 63 x += step_delay;
64 printf("[%d, %d],\n", x, 0); 64 printf("[%lu, %d],\n", x, 0);
65 } 65 }
66 else 66 else
67 return false; 67 return false;
@@ -74,5 +74,8 @@ int main(int argc, char *argv[])
74 target.frequency = frequency_max; 74 target.frequency = frequency_max;
75 target.potValue = 1023; 75 target.potValue = 1023;
76 while(loop()); 76 while(loop());
77 target.frequency = 0;
78 target.potValue = 0;
79 while(loop());
77 return 0; 80 return 0;
78} 81}
diff --git a/linz/glasslathe/scurve/chart.js b/linz/glasslathe/scurve/chart.js
index 70259af..58f07c5 100644
--- a/linz/glasslathe/scurve/chart.js
+++ b/linz/glasslathe/scurve/chart.js
@@ -2,6 +2,12 @@ Highcharts.chart('container', {
2 chart: { 2 chart: {
3 }, 3 },
4 xAxis: { 4 xAxis: {
5 labels: {
6 formatter: function () {
7 //return this.value;
8 return Highcharts.numberFormat(this.value / 1000, 2);
9 }
10 },
5 title: { 11 title: {
6 text: 'time' 12 text: 'time'
7 } 13 }
@@ -29,1552 +35,102 @@ Highcharts.chart('container', {
29 series: [{ 35 series: [{
30 name: "Winter 2014-2015", 36 name: "Winter 2014-2015",
31 data: [ 37 data: [
38
32[300, 0], 39[300, 0],
33[600, 50], 40[600, 200],
34[900, 100], 41[900, 400],
35[1200, 150], 42[1200, 600],
36[1500, 200], 43[1500, 800],
37[1800, 250], 44[1800, 1000],
38[2100, 300], 45[2100, 1200],
39[2400, 350], 46[2400, 1320],
40[2700, 400], 47[2700, 1440],
41[3000, 450], 48[3000, 1560],
42[3300, 500], 49[3300, 1680],
43[3600, 550], 50[3600, 1800],
44[3900, 600], 51[3900, 1920],
45[4200, 650], 52[4200, 2040],
46[4500, 700], 53[4500, 2190],
47[4800, 750], 54[4800, 2340],
48[5100, 800], 55[5100, 2490],
49[5400, 850], 56[5400, 2640],
50[5700, 900], 57[5700, 2790],
51[6000, 950], 58[6000, 2940],
52[6300, 1000], 59[6300, 3090],
53[6600, 1050], 60[6600, 3240],
54[6900, 1075], 61[6900, 3390],
55[7200, 1100], 62[7200, 3540],
56[7500, 1125], 63[7500, 3690],
57[7800, 1150], 64[7800, 3840],
58[8100, 1175], 65[8100, 3990],
59[8400, 1200], 66[8400, 4140],
60[8700, 1225], 67[8700, 4240],
61[9000, 1250], 68[9000, 4340],
62[9300, 1275], 69[9300, 4440],
63[9600, 1300], 70[9600, 4540],
64[9900, 1325], 71[9900, 4640],
65[10200, 1350], 72[10200, 4740],
66[10500, 1375], 73[10500, 4840],
67[10800, 1400], 74[10800, 4940],
68[11100, 1425], 75[11100, 5040],
69[11400, 1450], 76[11400, 5140],
70[11700, 1475], 77[11700, 5240],
71[12000, 1500], 78[12000, 5340],
72[12300, 1525], 79[12300, 5440],
73[12600, 1550], 80[12600, 5540],
74[12900, 1575], 81[12900, 5640],
75[13200, 1600], 82[13200, 5740],
76[13500, 1625], 83[13500, 5840],
77[13800, 1650], 84[13800, 5940],
78[14100, 1675], 85[14100, 6000],
79[14400, 1700], 86[14400, 5900],
80[14700, 1725], 87[14700, 5800],
81[15000, 1750], 88[15000, 5700],
82[15300, 1775], 89[15300, 5600],
83[15600, 1800], 90[15600, 5500],
84[15900, 1825], 91[15900, 5400],
85[16200, 1850], 92[16200, 5300],
86[16500, 1875], 93[16500, 5200],
87[16800, 1900], 94[16800, 5100],
88[17100, 1925], 95[17100, 5000],
89[17400, 1950], 96[17400, 4900],
90[17700, 1975], 97[17700, 4800],
91[18000, 2000], 98[18000, 4700],
92[18300, 2025], 99[18300, 4600],
93[18600, 2050], 100[18600, 4500],
94[18900, 2075], 101[18900, 4400],
95[19200, 2100], 102[19200, 4300],
96[19500, 2125], 103[19500, 4200],
97[19800, 2150], 104[19800, 4100],
98[20100, 2175], 105[20100, 4000],
99[20400, 2200], 106[20400, 3850],
100[20700, 2225], 107[20700, 3700],
101[21000, 2250], 108[21000, 3550],
102[21300, 2275], 109[21300, 3400],
103[21600, 2300], 110[21600, 3250],
104[21900, 2325], 111[21900, 3100],
105[22200, 2350], 112[22200, 2950],
106[22500, 2375], 113[22500, 2800],
107[22800, 2400], 114[22800, 2650],
108[23100, 2425], 115[23100, 2500],
109[23400, 2450], 116[23400, 2350],
110[23700, 2475], 117[23700, 2200],
111[24000, 2500], 118[24000, 2050],
112[24300, 2525], 119[24300, 1900],
113[24600, 2550], 120[24600, 1780],
114[24900, 2575], 121[24900, 1660],
115[25200, 2600], 122[25200, 1540],
116[25500, 2625], 123[25500, 1420],
117[25800, 2650], 124[25800, 1300],
118[26100, 2675], 125[26100, 1180],
119[26400, 2700], 126[26400, 1060],
120[26700, 2725], 127[26700, 940],
121[27000, 2750], 128[27000, 740],
122[27300, 2775], 129[27300, 540],
123[27600, 2800], 130[27600, 340],
124[27900, 2825], 131[27900, 140],
125[28200, 2850], 132[28200, 0],
126[28500, 2875], 133
127[28800, 2900],
128[29100, 2925],
129[29400, 2950],
130[29700, 2975],
131[30000, 3000],
132[30300, 3025],
133[30600, 3035],
134[30900, 3045],
135[31200, 3055],
136[31500, 3065],
137[31800, 3075],
138[32100, 3085],
139[32400, 3095],
140[32700, 3105],
141[33000, 3115],
142[33300, 3125],
143[33600, 3135],
144[33900, 3145],
145[34200, 3155],
146[34500, 3165],
147[34800, 3175],
148[35100, 3185],
149[35400, 3195],
150[35700, 3205],
151[36000, 3215],
152[36300, 3225],
153[36600, 3235],
154[36900, 3245],
155[37200, 3255],
156[37500, 3265],
157[37800, 3275],
158[38100, 3285],
159[38400, 3295],
160[38700, 3305],
161[39000, 3315],
162[39300, 3325],
163[39600, 3335],
164[39900, 3345],
165[40200, 3355],
166[40500, 3365],
167[40800, 3375],
168[41100, 3385],
169[41400, 3395],
170[41700, 3405],
171[42000, 3415],
172[42300, 3425],
173[42600, 3435],
174[42900, 3445],
175[43200, 3455],
176[43500, 3465],
177[43800, 3475],
178[44100, 3485],
179[44400, 3495],
180[44700, 3505],
181[45000, 3515],
182[45300, 3525],
183[45600, 3535],
184[45900, 3545],
185[46200, 3555],
186[46500, 3565],
187[46800, 3575],
188[47100, 3585],
189[47400, 3595],
190[47700, 3605],
191[48000, 3615],
192[48300, 3625],
193[48600, 3635],
194[48900, 3645],
195[49200, 3655],
196[49500, 3665],
197[49800, 3675],
198[50100, 3685],
199[50400, 3695],
200[50700, 3705],
201[51000, 3715],
202[51300, 3725],
203[51600, 3735],
204[51900, 3745],
205[52200, 3755],
206[52500, 3765],
207[52800, 3775],
208[53100, 3785],
209[53400, 3795],
210[53700, 3805],
211[54000, 3815],
212[54300, 3825],
213[54600, 3835],
214[54900, 3845],
215[55200, 3855],
216[55500, 3865],
217[55800, 3875],
218[56100, 3885],
219[56400, 3895],
220[56700, 3905],
221[57000, 3915],
222[57300, 3925],
223[57600, 3935],
224[57900, 3945],
225[58200, 3955],
226[58500, 3965],
227[58800, 3975],
228[59100, 3985],
229[59400, 3995],
230[59700, 4005],
231[60000, 4010],
232[60300, 4015],
233[60600, 4020],
234[60900, 4025],
235[61200, 4030],
236[61500, 4035],
237[61800, 4040],
238[62100, 4045],
239[62400, 4050],
240[62700, 4055],
241[63000, 4060],
242[63300, 4065],
243[63600, 4070],
244[63900, 4075],
245[64200, 4080],
246[64500, 4085],
247[64800, 4090],
248[65100, 4095],
249[65400, 4100],
250[65700, 4105],
251[66000, 4110],
252[66300, 4115],
253[66600, 4120],
254[66900, 4125],
255[67200, 4130],
256[67500, 4135],
257[67800, 4140],
258[68100, 4145],
259[68400, 4150],
260[68700, 4155],
261[69000, 4160],
262[69300, 4165],
263[69600, 4170],
264[69900, 4175],
265[70200, 4180],
266[70500, 4185],
267[70800, 4190],
268[71100, 4195],
269[71400, 4200],
270[71700, 4205],
271[72000, 4210],
272[72300, 4215],
273[72600, 4220],
274[72900, 4225],
275[73200, 4230],
276[73500, 4235],
277[73800, 4240],
278[74100, 4245],
279[74400, 4250],
280[74700, 4255],
281[75000, 4260],
282[75300, 4265],
283[75600, 4270],
284[75900, 4275],
285[76200, 4280],
286[76500, 4285],
287[76800, 4290],
288[77100, 4295],
289[77400, 4300],
290[77700, 4305],
291[78000, 4310],
292[78300, 4315],
293[78600, 4320],
294[78900, 4325],
295[79200, 4330],
296[79500, 4335],
297[79800, 4340],
298[80100, 4345],
299[80400, 4350],
300[80700, 4355],
301[81000, 4360],
302[81300, 4365],
303[81600, 4370],
304[81900, 4375],
305[82200, 4380],
306[82500, 4385],
307[82800, 4390],
308[83100, 4395],
309[83400, 4400],
310[83700, 4405],
311[84000, 4410],
312[84300, 4415],
313[84600, 4420],
314[84900, 4425],
315[85200, 4430],
316[85500, 4435],
317[85800, 4440],
318[86100, 4445],
319[86400, 4450],
320[86700, 4455],
321[87000, 4460],
322[87300, 4465],
323[87600, 4470],
324[87900, 4475],
325[88200, 4480],
326[88500, 4485],
327[88800, 4490],
328[89100, 4495],
329[89400, 4500],
330[89700, 4505],
331[90000, 4507],
332[90300, 4509],
333[90600, 4511],
334[90900, 4513],
335[91200, 4515],
336[91500, 4517],
337[91800, 4519],
338[92100, 4521],
339[92400, 4523],
340[92700, 4525],
341[93000, 4527],
342[93300, 4529],
343[93600, 4531],
344[93900, 4533],
345[94200, 4535],
346[94500, 4537],
347[94800, 4539],
348[95100, 4541],
349[95400, 4543],
350[95700, 4545],
351[96000, 4547],
352[96300, 4549],
353[96600, 4551],
354[96900, 4553],
355[97200, 4555],
356[97500, 4557],
357[97800, 4559],
358[98100, 4561],
359[98400, 4563],
360[98700, 4565],
361[99000, 4567],
362[99300, 4569],
363[99600, 4571],
364[99900, 4573],
365[100200, 4575],
366[100500, 4577],
367[100800, 4579],
368[101100, 4581],
369[101400, 4583],
370[101700, 4585],
371[102000, 4587],
372[102300, 4589],
373[102600, 4591],
374[102900, 4593],
375[103200, 4595],
376[103500, 4597],
377[103800, 4599],
378[104100, 4601],
379[104400, 4603],
380[104700, 4605],
381[105000, 4607],
382[105300, 4609],
383[105600, 4611],
384[105900, 4613],
385[106200, 4615],
386[106500, 4617],
387[106800, 4619],
388[107100, 4621],
389[107400, 4623],
390[107700, 4625],
391[108000, 4627],
392[108300, 4629],
393[108600, 4631],
394[108900, 4633],
395[109200, 4635],
396[109500, 4637],
397[109800, 4639],
398[110100, 4641],
399[110400, 4643],
400[110700, 4645],
401[111000, 4647],
402[111300, 4649],
403[111600, 4651],
404[111900, 4653],
405[112200, 4655],
406[112500, 4657],
407[112800, 4659],
408[113100, 4661],
409[113400, 4663],
410[113700, 4665],
411[114000, 4667],
412[114300, 4669],
413[114600, 4671],
414[114900, 4673],
415[115200, 4675],
416[115500, 4677],
417[115800, 4679],
418[116100, 4681],
419[116400, 4683],
420[116700, 4685],
421[117000, 4687],
422[117300, 4689],
423[117600, 4691],
424[117900, 4693],
425[118200, 4695],
426[118500, 4697],
427[118800, 4699],
428[119100, 4701],
429[119400, 4703],
430[119700, 4705],
431[120000, 4707],
432[120300, 4709],
433[120600, 4711],
434[120900, 4713],
435[121200, 4715],
436[121500, 4717],
437[121800, 4719],
438[122100, 4721],
439[122400, 4723],
440[122700, 4725],
441[123000, 4727],
442[123300, 4729],
443[123600, 4731],
444[123900, 4733],
445[124200, 4735],
446[124500, 4737],
447[124800, 4739],
448[125100, 4741],
449[125400, 4743],
450[125700, 4745],
451[126000, 4747],
452[126300, 4749],
453[126600, 4751],
454[126900, 4753],
455[127200, 4755],
456[127500, 4757],
457[127800, 4759],
458[128100, 4761],
459[128400, 4763],
460[128700, 4765],
461[129000, 4767],
462[129300, 4769],
463[129600, 4771],
464[129900, 4773],
465[130200, 4775],
466[130500, 4777],
467[130800, 4779],
468[131100, 4781],
469[131400, 4783],
470[131700, 4785],
471[132000, 4787],
472[132300, 4789],
473[132600, 4791],
474[132900, 4793],
475[133200, 4795],
476[133500, 4797],
477[133800, 4799],
478[134100, 4801],
479[134400, 4803],
480[134700, 4805],
481[135000, 4807],
482[135300, 4809],
483[135600, 4811],
484[135900, 4813],
485[136200, 4815],
486[136500, 4817],
487[136800, 4819],
488[137100, 4821],
489[137400, 4823],
490[137700, 4825],
491[138000, 4827],
492[138300, 4829],
493[138600, 4831],
494[138900, 4833],
495[139200, 4835],
496[139500, 4837],
497[139800, 4839],
498[140100, 4841],
499[140400, 4843],
500[140700, 4845],
501[141000, 4847],
502[141300, 4849],
503[141600, 4851],
504[141900, 4853],
505[142200, 4855],
506[142500, 4857],
507[142800, 4859],
508[143100, 4861],
509[143400, 4863],
510[143700, 4865],
511[144000, 4867],
512[144300, 4869],
513[144600, 4871],
514[144900, 4873],
515[145200, 4875],
516[145500, 4877],
517[145800, 4879],
518[146100, 4881],
519[146400, 4883],
520[146700, 4885],
521[147000, 4887],
522[147300, 4889],
523[147600, 4891],
524[147900, 4893],
525[148200, 4895],
526[148500, 4897],
527[148800, 4899],
528[149100, 4901],
529[149400, 4903],
530[149700, 4905],
531[150000, 4907],
532[150300, 4909],
533[150600, 4911],
534[150900, 4913],
535[151200, 4915],
536[151500, 4917],
537[151800, 4919],
538[152100, 4921],
539[152400, 4923],
540[152700, 4925],
541[153000, 4927],
542[153300, 4929],
543[153600, 4931],
544[153900, 4933],
545[154200, 4935],
546[154500, 4937],
547[154800, 4939],
548[155100, 4941],
549[155400, 4943],
550[155700, 4945],
551[156000, 4947],
552[156300, 4949],
553[156600, 4951],
554[156900, 4953],
555[157200, 4955],
556[157500, 4957],
557[157800, 4959],
558[158100, 4961],
559[158400, 4963],
560[158700, 4965],
561[159000, 4967],
562[159300, 4969],
563[159600, 4971],
564[159900, 4973],
565[160200, 4975],
566[160500, 4977],
567[160800, 4979],
568[161100, 4981],
569[161400, 4983],
570[161700, 4985],
571[162000, 4987],
572[162300, 4989],
573[162600, 4991],
574[162900, 4993],
575[163200, 4995],
576[163500, 4997],
577[163800, 4999],
578[164100, 5001],
579[164400, 5002],
580[164700, 5003],
581[165000, 5004],
582[165300, 5005],
583[165600, 5006],
584[165900, 5007],
585[166200, 5008],
586[166500, 5009],
587[166800, 5010],
588[167100, 5011],
589[167400, 5012],
590[167700, 5013],
591[168000, 5014],
592[168300, 5015],
593[168600, 5016],
594[168900, 5017],
595[169200, 5018],
596[169500, 5019],
597[169800, 5020],
598[170100, 5021],
599[170400, 5022],
600[170700, 5023],
601[171000, 5024],
602[171300, 5025],
603[171600, 5026],
604[171900, 5027],
605[172200, 5028],
606[172500, 5029],
607[172800, 5030],
608[173100, 5031],
609[173400, 5032],
610[173700, 5033],
611[174000, 5034],
612[174300, 5035],
613[174600, 5036],
614[174900, 5037],
615[175200, 5038],
616[175500, 5039],
617[175800, 5040],
618[176100, 5041],
619[176400, 5042],
620[176700, 5043],
621[177000, 5044],
622[177300, 5045],
623[177600, 5046],
624[177900, 5047],
625[178200, 5048],
626[178500, 5049],
627[178800, 5050],
628[179100, 5051],
629[179400, 5052],
630[179700, 5053],
631[180000, 5054],
632[180300, 5055],
633[180600, 5056],
634[180900, 5057],
635[181200, 5058],
636[181500, 5059],
637[181800, 5060],
638[182100, 5061],
639[182400, 5062],
640[182700, 5063],
641[183000, 5064],
642[183300, 5065],
643[183600, 5066],
644[183900, 5067],
645[184200, 5068],
646[184500, 5069],
647[184800, 5070],
648[185100, 5071],
649[185400, 5072],
650[185700, 5073],
651[186000, 5074],
652[186300, 5075],
653[186600, 5076],
654[186900, 5077],
655[187200, 5078],
656[187500, 5079],
657[187800, 5080],
658[188100, 5081],
659[188400, 5082],
660[188700, 5083],
661[189000, 5084],
662[189300, 5085],
663[189600, 5086],
664[189900, 5087],
665[190200, 5088],
666[190500, 5089],
667[190800, 5090],
668[191100, 5091],
669[191400, 5092],
670[191700, 5093],
671[192000, 5094],
672[192300, 5095],
673[192600, 5096],
674[192900, 5097],
675[193200, 5098],
676[193500, 5099],
677[193800, 5100],
678[194100, 5101],
679[194400, 5102],
680[194700, 5103],
681[195000, 5104],
682[195300, 5105],
683[195600, 5106],
684[195900, 5107],
685[196200, 5108],
686[196500, 5109],
687[196800, 5110],
688[197100, 5111],
689[197400, 5112],
690[197700, 5113],
691[198000, 5114],
692[198300, 5115],
693[198600, 5116],
694[198900, 5117],
695[199200, 5118],
696[199500, 5119],
697[199800, 5120],
698[200100, 5121],
699[200400, 5122],
700[200700, 5123],
701[201000, 5124],
702[201300, 5125],
703[201600, 5126],
704[201900, 5127],
705[202200, 5128],
706[202500, 5129],
707[202800, 5130],
708[203100, 5131],
709[203400, 5132],
710[203700, 5133],
711[204000, 5134],
712[204300, 5135],
713[204600, 5136],
714[204900, 5137],
715[205200, 5138],
716[205500, 5139],
717[205800, 5140],
718[206100, 5141],
719[206400, 5142],
720[206700, 5143],
721[207000, 5144],
722[207300, 5145],
723[207600, 5146],
724[207900, 5147],
725[208200, 5148],
726[208500, 5149],
727[208800, 5150],
728[209100, 5151],
729[209400, 5152],
730[209700, 5153],
731[210000, 5154],
732[210300, 5155],
733[210600, 5156],
734[210900, 5157],
735[211200, 5158],
736[211500, 5159],
737[211800, 5160],
738[212100, 5161],
739[212400, 5162],
740[212700, 5163],
741[213000, 5164],
742[213300, 5165],
743[213600, 5166],
744[213900, 5167],
745[214200, 5168],
746[214500, 5169],
747[214800, 5170],
748[215100, 5171],
749[215400, 5172],
750[215700, 5173],
751[216000, 5174],
752[216300, 5175],
753[216600, 5176],
754[216900, 5177],
755[217200, 5178],
756[217500, 5179],
757[217800, 5180],
758[218100, 5181],
759[218400, 5182],
760[218700, 5183],
761[219000, 5184],
762[219300, 5185],
763[219600, 5186],
764[219900, 5187],
765[220200, 5188],
766[220500, 5189],
767[220800, 5190],
768[221100, 5191],
769[221400, 5192],
770[221700, 5193],
771[222000, 5194],
772[222300, 5195],
773[222600, 5196],
774[222900, 5197],
775[223200, 5198],
776[223500, 5199],
777[223800, 5200],
778[224100, 5201],
779[224400, 5202],
780[224700, 5203],
781[225000, 5204],
782[225300, 5205],
783[225600, 5206],
784[225900, 5207],
785[226200, 5208],
786[226500, 5209],
787[226800, 5210],
788[227100, 5211],
789[227400, 5212],
790[227700, 5213],
791[228000, 5214],
792[228300, 5215],
793[228600, 5216],
794[228900, 5217],
795[229200, 5218],
796[229500, 5219],
797[229800, 5220],
798[230100, 5221],
799[230400, 5222],
800[230700, 5223],
801[231000, 5224],
802[231300, 5225],
803[231600, 5226],
804[231900, 5227],
805[232200, 5228],
806[232500, 5229],
807[232800, 5230],
808[233100, 5231],
809[233400, 5232],
810[233700, 5233],
811[234000, 5234],
812[234300, 5235],
813[234600, 5236],
814[234900, 5237],
815[235200, 5238],
816[235500, 5239],
817[235800, 5240],
818[236100, 5241],
819[236400, 5242],
820[236700, 5243],
821[237000, 5244],
822[237300, 5245],
823[237600, 5246],
824[237900, 5247],
825[238200, 5248],
826[238500, 5249],
827[238800, 5250],
828[239100, 5251],
829[239400, 5252],
830[239700, 5253],
831[240000, 5254],
832[240300, 5255],
833[240600, 5256],
834[240900, 5257],
835[241200, 5258],
836[241500, 5259],
837[241800, 5260],
838[242100, 5261],
839[242400, 5262],
840[242700, 5263],
841[243000, 5264],
842[243300, 5265],
843[243600, 5266],
844[243900, 5267],
845[244200, 5268],
846[244500, 5269],
847[244800, 5270],
848[245100, 5271],
849[245400, 5272],
850[245700, 5273],
851[246000, 5274],
852[246300, 5275],
853[246600, 5276],
854[246900, 5277],
855[247200, 5278],
856[247500, 5279],
857[247800, 5280],
858[248100, 5281],
859[248400, 5282],
860[248700, 5283],
861[249000, 5284],
862[249300, 5285],
863[249600, 5286],
864[249900, 5287],
865[250200, 5288],
866[250500, 5289],
867[250800, 5290],
868[251100, 5291],
869[251400, 5292],
870[251700, 5293],
871[252000, 5294],
872[252300, 5295],
873[252600, 5296],
874[252900, 5297],
875[253200, 5298],
876[253500, 5299],
877[253800, 5300],
878[254100, 5301],
879[254400, 5302],
880[254700, 5303],
881[255000, 5304],
882[255300, 5305],
883[255600, 5306],
884[255900, 5307],
885[256200, 5308],
886[256500, 5309],
887[256800, 5310],
888[257100, 5311],
889[257400, 5312],
890[257700, 5313],
891[258000, 5314],
892[258300, 5315],
893[258600, 5316],
894[258900, 5317],
895[259200, 5318],
896[259500, 5319],
897[259800, 5320],
898[260100, 5321],
899[260400, 5322],
900[260700, 5323],
901[261000, 5324],
902[261300, 5325],
903[261600, 5326],
904[261900, 5327],
905[262200, 5328],
906[262500, 5329],
907[262800, 5330],
908[263100, 5331],
909[263400, 5332],
910[263700, 5333],
911[264000, 5334],
912[264300, 5335],
913[264600, 5336],
914[264900, 5337],
915[265200, 5338],
916[265500, 5339],
917[265800, 5340],
918[266100, 5341],
919[266400, 5342],
920[266700, 5343],
921[267000, 5344],
922[267300, 5345],
923[267600, 5346],
924[267900, 5347],
925[268200, 5348],
926[268500, 5349],
927[268800, 5350],
928[269100, 5351],
929[269400, 5352],
930[269700, 5353],
931[270000, 5354],
932[270300, 5355],
933[270600, 5356],
934[270900, 5357],
935[271200, 5358],
936[271500, 5359],
937[271800, 5360],
938[272100, 5361],
939[272400, 5362],
940[272700, 5363],
941[273000, 5364],
942[273300, 5365],
943[273600, 5366],
944[273900, 5367],
945[274200, 5368],
946[274500, 5369],
947[274800, 5370],
948[275100, 5371],
949[275400, 5372],
950[275700, 5373],
951[276000, 5374],
952[276300, 5375],
953[276600, 5376],
954[276900, 5377],
955[277200, 5378],
956[277500, 5379],
957[277800, 5380],
958[278100, 5381],
959[278400, 5382],
960[278700, 5383],
961[279000, 5384],
962[279300, 5385],
963[279600, 5386],
964[279900, 5387],
965[280200, 5388],
966[280500, 5389],
967[280800, 5390],
968[281100, 5391],
969[281400, 5392],
970[281700, 5393],
971[282000, 5394],
972[282300, 5395],
973[282600, 5396],
974[282900, 5397],
975[283200, 5398],
976[283500, 5399],
977[283800, 5400],
978[284100, 5401],
979[284400, 5402],
980[284700, 5403],
981[285000, 5404],
982[285300, 5405],
983[285600, 5406],
984[285900, 5407],
985[286200, 5408],
986[286500, 5409],
987[286800, 5410],
988[287100, 5411],
989[287400, 5412],
990[287700, 5413],
991[288000, 5414],
992[288300, 5415],
993[288600, 5416],
994[288900, 5417],
995[289200, 5418],
996[289500, 5419],
997[289800, 5420],
998[290100, 5421],
999[290400, 5422],
1000[290700, 5423],
1001[291000, 5424],
1002[291300, 5425],
1003[291600, 5426],
1004[291900, 5427],
1005[292200, 5428],
1006[292500, 5429],
1007[292800, 5430],
1008[293100, 5431],
1009[293400, 5432],
1010[293700, 5433],
1011[294000, 5434],
1012[294300, 5435],
1013[294600, 5436],
1014[294900, 5437],
1015[295200, 5438],
1016[295500, 5439],
1017[295800, 5440],
1018[296100, 5441],
1019[296400, 5442],
1020[296700, 5443],
1021[297000, 5444],
1022[297300, 5445],
1023[297600, 5446],
1024[297900, 5447],
1025[298200, 5448],
1026[298500, 5449],
1027[298800, 5450],
1028[299100, 5451],
1029[299400, 5452],
1030[299700, 5453],
1031[300000, 5454],
1032[300300, 5455],
1033[300600, 5456],
1034[300900, 5457],
1035[301200, 5458],
1036[301500, 5459],
1037[301800, 5460],
1038[302100, 5461],
1039[302400, 5462],
1040[302700, 5463],
1041[303000, 5464],
1042[303300, 5465],
1043[303600, 5466],
1044[303900, 5467],
1045[304200, 5468],
1046[304500, 5469],
1047[304800, 5470],
1048[305100, 5471],
1049[305400, 5472],
1050[305700, 5473],
1051[306000, 5474],
1052[306300, 5475],
1053[306600, 5476],
1054[306900, 5477],
1055[307200, 5478],
1056[307500, 5479],
1057[307800, 5480],
1058[308100, 5481],
1059[308400, 5482],
1060[308700, 5483],
1061[309000, 5484],
1062[309300, 5485],
1063[309600, 5486],
1064[309900, 5487],
1065[310200, 5488],
1066[310500, 5489],
1067[310800, 5490],
1068[311100, 5491],
1069[311400, 5492],
1070[311700, 5493],
1071[312000, 5494],
1072[312300, 5495],
1073[312600, 5496],
1074[312900, 5497],
1075[313200, 5498],
1076[313500, 5499],
1077[313800, 5500],
1078[314100, 5501],
1079[314400, 5502],
1080[314700, 5503],
1081[315000, 5504],
1082[315300, 5505],
1083[315600, 5506],
1084[315900, 5507],
1085[316200, 5508],
1086[316500, 5509],
1087[316800, 5510],
1088[317100, 5511],
1089[317400, 5512],
1090[317700, 5513],
1091[318000, 5514],
1092[318300, 5515],
1093[318600, 5516],
1094[318900, 5517],
1095[319200, 5518],
1096[319500, 5519],
1097[319800, 5520],
1098[320100, 5521],
1099[320400, 5522],
1100[320700, 5523],
1101[321000, 5524],
1102[321300, 5525],
1103[321600, 5526],
1104[321900, 5527],
1105[322200, 5528],
1106[322500, 5529],
1107[322800, 5530],
1108[323100, 5531],
1109[323400, 5532],
1110[323700, 5533],
1111[324000, 5534],
1112[324300, 5535],
1113[324600, 5536],
1114[324900, 5537],
1115[325200, 5538],
1116[325500, 5539],
1117[325800, 5540],
1118[326100, 5541],
1119[326400, 5542],
1120[326700, 5543],
1121[327000, 5544],
1122[327300, 5545],
1123[327600, 5546],
1124[327900, 5547],
1125[328200, 5548],
1126[328500, 5549],
1127[328800, 5550],
1128[329100, 5551],
1129[329400, 5552],
1130[329700, 5553],
1131[330000, 5554],
1132[330300, 5555],
1133[330600, 5556],
1134[330900, 5557],
1135[331200, 5558],
1136[331500, 5559],
1137[331800, 5560],
1138[332100, 5561],
1139[332400, 5562],
1140[332700, 5563],
1141[333000, 5564],
1142[333300, 5565],
1143[333600, 5566],
1144[333900, 5567],
1145[334200, 5568],
1146[334500, 5569],
1147[334800, 5570],
1148[335100, 5571],
1149[335400, 5572],
1150[335700, 5573],
1151[336000, 5574],
1152[336300, 5575],
1153[336600, 5576],
1154[336900, 5577],
1155[337200, 5578],
1156[337500, 5579],
1157[337800, 5580],
1158[338100, 5581],
1159[338400, 5582],
1160[338700, 5583],
1161[339000, 5584],
1162[339300, 5585],
1163[339600, 5586],
1164[339900, 5587],
1165[340200, 5588],
1166[340500, 5589],
1167[340800, 5590],
1168[341100, 5591],
1169[341400, 5592],
1170[341700, 5593],
1171[342000, 5594],
1172[342300, 5595],
1173[342600, 5596],
1174[342900, 5597],
1175[343200, 5598],
1176[343500, 5599],
1177[343800, 5600],
1178[344100, 5601],
1179[344400, 5602],
1180[344700, 5603],
1181[345000, 5604],
1182[345300, 5605],
1183[345600, 5606],
1184[345900, 5607],
1185[346200, 5608],
1186[346500, 5609],
1187[346800, 5610],
1188[347100, 5611],
1189[347400, 5612],
1190[347700, 5613],
1191[348000, 5614],
1192[348300, 5615],
1193[348600, 5616],
1194[348900, 5617],
1195[349200, 5618],
1196[349500, 5619],
1197[349800, 5620],
1198[350100, 5621],
1199[350400, 5622],
1200[350700, 5623],
1201[351000, 5624],
1202[351300, 5625],
1203[351600, 5626],
1204[351900, 5627],
1205[352200, 5628],
1206[352500, 5629],
1207[352800, 5630],
1208[353100, 5631],
1209[353400, 5632],
1210[353700, 5633],
1211[354000, 5634],
1212[354300, 5635],
1213[354600, 5636],
1214[354900, 5637],
1215[355200, 5638],
1216[355500, 5639],
1217[355800, 5640],
1218[356100, 5641],
1219[356400, 5642],
1220[356700, 5643],
1221[357000, 5644],
1222[357300, 5645],
1223[357600, 5646],
1224[357900, 5647],
1225[358200, 5648],
1226[358500, 5649],
1227[358800, 5650],
1228[359100, 5651],
1229[359400, 5652],
1230[359700, 5653],
1231[360000, 5654],
1232[360300, 5655],
1233[360600, 5656],
1234[360900, 5657],
1235[361200, 5658],
1236[361500, 5659],
1237[361800, 5660],
1238[362100, 5661],
1239[362400, 5662],
1240[362700, 5663],
1241[363000, 5664],
1242[363300, 5665],
1243[363600, 5666],
1244[363900, 5667],
1245[364200, 5668],
1246[364500, 5669],
1247[364800, 5670],
1248[365100, 5671],
1249[365400, 5672],
1250[365700, 5673],
1251[366000, 5674],
1252[366300, 5675],
1253[366600, 5676],
1254[366900, 5677],
1255[367200, 5678],
1256[367500, 5679],
1257[367800, 5680],
1258[368100, 5681],
1259[368400, 5682],
1260[368700, 5683],
1261[369000, 5684],
1262[369300, 5685],
1263[369600, 5686],
1264[369900, 5687],
1265[370200, 5688],
1266[370500, 5689],
1267[370800, 5690],
1268[371100, 5691],
1269[371400, 5692],
1270[371700, 5693],
1271[372000, 5694],
1272[372300, 5695],
1273[372600, 5696],
1274[372900, 5697],
1275[373200, 5698],
1276[373500, 5699],
1277[373800, 5700],
1278[374100, 5701],
1279[374400, 5702],
1280[374700, 5703],
1281[375000, 5704],
1282[375300, 5705],
1283[375600, 5706],
1284[375900, 5707],
1285[376200, 5708],
1286[376500, 5709],
1287[376800, 5710],
1288[377100, 5711],
1289[377400, 5712],
1290[377700, 5713],
1291[378000, 5714],
1292[378300, 5715],
1293[378600, 5716],
1294[378900, 5717],
1295[379200, 5718],
1296[379500, 5719],
1297[379800, 5720],
1298[380100, 5721],
1299[380400, 5722],
1300[380700, 5723],
1301[381000, 5724],
1302[381300, 5725],
1303[381600, 5726],
1304[381900, 5727],
1305[382200, 5728],
1306[382500, 5729],
1307[382800, 5730],
1308[383100, 5731],
1309[383400, 5732],
1310[383700, 5733],
1311[384000, 5734],
1312[384300, 5735],
1313[384600, 5736],
1314[384900, 5737],
1315[385200, 5738],
1316[385500, 5739],
1317[385800, 5740],
1318[386100, 5741],
1319[386400, 5742],
1320[386700, 5743],
1321[387000, 5744],
1322[387300, 5745],
1323[387600, 5746],
1324[387900, 5747],
1325[388200, 5748],
1326[388500, 5749],
1327[388800, 5750],
1328[389100, 5751],
1329[389400, 5752],
1330[389700, 5753],
1331[390000, 5754],
1332[390300, 5755],
1333[390600, 5756],
1334[390900, 5757],
1335[391200, 5758],
1336[391500, 5759],
1337[391800, 5760],
1338[392100, 5761],
1339[392400, 5762],
1340[392700, 5763],
1341[393000, 5764],
1342[393300, 5765],
1343[393600, 5766],
1344[393900, 5767],
1345[394200, 5768],
1346[394500, 5769],
1347[394800, 5770],
1348[395100, 5771],
1349[395400, 5772],
1350[395700, 5773],
1351[396000, 5774],
1352[396300, 5775],
1353[396600, 5776],
1354[396900, 5777],
1355[397200, 5778],
1356[397500, 5779],
1357[397800, 5780],
1358[398100, 5781],
1359[398400, 5782],
1360[398700, 5783],
1361[399000, 5784],
1362[399300, 5785],
1363[399600, 5786],
1364[399900, 5787],
1365[400200, 5788],
1366[400500, 5789],
1367[400800, 5790],
1368[401100, 5791],
1369[401400, 5792],
1370[401700, 5793],
1371[402000, 5794],
1372[402300, 5795],
1373[402600, 5796],
1374[402900, 5797],
1375[403200, 5798],
1376[403500, 5799],
1377[403800, 5800],
1378[404100, 5801],
1379[404400, 5802],
1380[404700, 5803],
1381[405000, 5804],
1382[405300, 5805],
1383[405600, 5806],
1384[405900, 5807],
1385[406200, 5808],
1386[406500, 5809],
1387[406800, 5810],
1388[407100, 5811],
1389[407400, 5812],
1390[407700, 5813],
1391[408000, 5814],
1392[408300, 5815],
1393[408600, 5816],
1394[408900, 5817],
1395[409200, 5818],
1396[409500, 5819],
1397[409800, 5820],
1398[410100, 5821],
1399[410400, 5822],
1400[410700, 5823],
1401[411000, 5824],
1402[411300, 5825],
1403[411600, 5826],
1404[411900, 5827],
1405[412200, 5828],
1406[412500, 5829],
1407[412800, 5830],
1408[413100, 5831],
1409[413400, 5832],
1410[413700, 5833],
1411[414000, 5834],
1412[414300, 5835],
1413[414600, 5836],
1414[414900, 5837],
1415[415200, 5838],
1416[415500, 5839],
1417[415800, 5840],
1418[416100, 5841],
1419[416400, 5842],
1420[416700, 5843],
1421[417000, 5844],
1422[417300, 5845],
1423[417600, 5846],
1424[417900, 5847],
1425[418200, 5848],
1426[418500, 5849],
1427[418800, 5850],
1428[419100, 5851],
1429[419400, 5852],
1430[419700, 5853],
1431[420000, 5854],
1432[420300, 5855],
1433[420600, 5856],
1434[420900, 5857],
1435[421200, 5858],
1436[421500, 5859],
1437[421800, 5860],
1438[422100, 5861],
1439[422400, 5862],
1440[422700, 5863],
1441[423000, 5864],
1442[423300, 5865],
1443[423600, 5866],
1444[423900, 5867],
1445[424200, 5868],
1446[424500, 5869],
1447[424800, 5870],
1448[425100, 5871],
1449[425400, 5872],
1450[425700, 5873],
1451[426000, 5874],
1452[426300, 5875],
1453[426600, 5876],
1454[426900, 5877],
1455[427200, 5878],
1456[427500, 5879],
1457[427800, 5880],
1458[428100, 5881],
1459[428400, 5882],
1460[428700, 5883],
1461[429000, 5884],
1462[429300, 5885],
1463[429600, 5886],
1464[429900, 5887],
1465[430200, 5888],
1466[430500, 5889],
1467[430800, 5890],
1468[431100, 5891],
1469[431400, 5892],
1470[431700, 5893],
1471[432000, 5894],
1472[432300, 5895],
1473[432600, 5896],
1474[432900, 5897],
1475[433200, 5898],
1476[433500, 5899],
1477[433800, 5900],
1478[434100, 5901],
1479[434400, 5902],
1480[434700, 5903],
1481[435000, 5904],
1482[435300, 5905],
1483[435600, 5906],
1484[435900, 5907],
1485[436200, 5908],
1486[436500, 5909],
1487[436800, 5910],
1488[437100, 5911],
1489[437400, 5912],
1490[437700, 5913],
1491[438000, 5914],
1492[438300, 5915],
1493[438600, 5916],
1494[438900, 5917],
1495[439200, 5918],
1496[439500, 5919],
1497[439800, 5920],
1498[440100, 5921],
1499[440400, 5922],
1500[440700, 5923],
1501[441000, 5924],
1502[441300, 5925],
1503[441600, 5926],
1504[441900, 5927],
1505[442200, 5928],
1506[442500, 5929],
1507[442800, 5930],
1508[443100, 5931],
1509[443400, 5932],
1510[443700, 5933],
1511[444000, 5934],
1512[444300, 5935],
1513[444600, 5936],
1514[444900, 5937],
1515[445200, 5938],
1516[445500, 5939],
1517[445800, 5940],
1518[446100, 5941],
1519[446400, 5942],
1520[446700, 5943],
1521[447000, 5944],
1522[447300, 5945],
1523[447600, 5946],
1524[447900, 5947],
1525[448200, 5948],
1526[448500, 5949],
1527[448800, 5950],
1528[449100, 5951],
1529[449400, 5952],
1530[449700, 5953],
1531[450000, 5954],
1532[450300, 5955],
1533[450600, 5956],
1534[450900, 5957],
1535[451200, 5958],
1536[451500, 5959],
1537[451800, 5960],
1538[452100, 5961],
1539[452400, 5962],
1540[452700, 5963],
1541[453000, 5964],
1542[453300, 5965],
1543[453600, 5966],
1544[453900, 5967],
1545[454200, 5968],
1546[454500, 5969],
1547[454800, 5970],
1548[455100, 5971],
1549[455400, 5972],
1550[455700, 5973],
1551[456000, 5974],
1552[456300, 5975],
1553[456600, 5976],
1554[456900, 5977],
1555[457200, 5978],
1556[457500, 5979],
1557[457800, 5980],
1558[458100, 5981],
1559[458400, 5982],
1560[458700, 5983],
1561[459000, 5984],
1562[459300, 5985],
1563[459600, 5986],
1564[459900, 5987],
1565[460200, 5988],
1566[460500, 5989],
1567[460800, 5990],
1568[461100, 5991],
1569[461400, 5992],
1570[461700, 5993],
1571[462000, 5994],
1572[462300, 5995],
1573[462600, 5996],
1574[462900, 5997],
1575[463200, 5998],
1576[463500, 5999],
1577[463800, 6000]
1578 ] 134 ]
1579 }], 135 }],
1580 136
diff --git a/linz/glasslathe/src/main.cpp b/linz/glasslathe/src/main.cpp
index ee1e8d4..801d02e 100644
--- a/linz/glasslathe/src/main.cpp
+++ b/linz/glasslathe/src/main.cpp
@@ -80,7 +80,7 @@ void loop()
80 Serial.println(target.frequency, DEC); 80 Serial.println(target.frequency, DEC);
81 } 81 }
82 82
83 const int step_delay = 300; 83 const int step_delay = 200;
84 if (current.frequency != target.frequency || current.direction != target.direction) 84 if (current.frequency != target.frequency || current.direction != target.direction)
85 { 85 {
86 if (!timer_enabled && target.frequency != 0) 86 if (!timer_enabled && target.frequency != 0)
@@ -91,18 +91,12 @@ void loop()
91 delay(step_delay); 91 delay(step_delay);
92 } 92 }
93 93
94 /*int step = (current.potValue < 20) ? 1 94 int step = (current.frequency > 5000) ? 100
95 : (current.potValue < 100) ? 2 95 : (current.frequency > 4000) ? 100
96 : (current.potValue < 300) ? 3 96 : (current.frequency > 3000) ? 150
97 : (current.potValue < 400) ? 5 97 : (current.frequency > 2000) ? 150
98 : (current.potValue < 500) ? 10 98 : (current.frequency > 1000) ? 120
99 : 20;*/ 99 : 200;
100 int step = (current.frequency > 5000) ? 1
101 : (current.frequency > 4500) ? 2
102 : (current.frequency > 4000) ? 5
103 : (current.frequency > 3000) ? 10
104 : (current.frequency > 1000) ? 25
105 : 50;
106 int frequency = (current.direction == target.direction) ? target.frequency : 0; 100 int frequency = (current.direction == target.direction) ? target.frequency : 0;
107 step = min(abs(frequency - current.frequency), step); 101 step = min(abs(frequency - current.frequency), step);
108 if (frequency < current.frequency) 102 if (frequency < current.frequency)