forked from MaslowCNC/GroundControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroundcontrol.kv
1386 lines (1333 loc) · 49.2 KB
/
groundcontrol.kv
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#kivy 1.9.9
#<Widget>:
#This can be used to create boxes around each widget to clarify positioning issues. It is only for debug
# canvas.after:
# Line:
# rectangle: self.x+1,self.y+1,self.width-1,self.height-1
# dash_offset: 5
# dash_length: 3
<ScreenControls>
BoxLayout:
orientation: 'horizontal'
pos: (0, root.height - 60)
size_hint: (.5,None)
height: dp(60)
Button:
text: "Actions"
on_press: root.show_actions()
Button:
text: "Settings"
on_press: app.open_settings()
<GcodeCanvas>:
scatterObject:scatterObject
scatterInstance:scatterInstance
positionIndicator:positionIndicator
targetIndicator:targetIndicator
ScatterPlane:
do_rotation: False
id: scatterInstance
Label:
id: scatterObject
text: ""
PositionIndicator:
id: positionIndicator
PositionIndicator:
id: targetIndicator
MenuSpawner:
timeout: 1
menu_args:
dict(
creation_direction=1,
radius=10,
creation_timeout=.2,
choices=[
dict(text='[color=3333ff]Move Here[/color]', markup = True, index=1, callback=root.updateGcode),
dict(text='Position Text Placeholder' , markup = True, index=2, callback=root.doNothing),
dict(text='[color=3333ff]Mark Here[/color]', markup = True, index=3, callback=root.updateGcode)])
<FrontPage>:
textconsole:textconsole
moveDistInput:moveDistInput
moveSpeedInput:moveSpeedInput
gcodecanvas:gcodecanvas
screenControls:screenControls
holdBtn:holdBtn
GcodeCanvas:
id: gcodecanvas
BoxLayout:
orientation: 'vertical'
pos: root.width - dp(300), root.height - dp(630)
GridLayout:
cols: 4
size_hint: None, None
width:dp(300)
height: dp(60*4)
#disabled: not app.data.connectionStatus
Button:
on_press: root.upLeft()
canvas.after:
Triangle:
points: self.x+self.width/2,self.y+self.width/2,self.x+self.width/2,self.y+self.width/4,self.x+3*self.width/4,self.y+self.width/2,
Button:
on_press: root.up()
canvas.after:
Triangle:
points: self.x+self.width/3,self.y+self.height/3,self.x+2*self.width/3,self.y+self.height/3,self.x+self.width/2,self.y+2*self.height/3,
Button:
on_press: root.upRight()
canvas.after:
Triangle:
points: self.x+self.width/2,self.y+self.width/2,self.x+self.width/2,self.y+self.width/4,self.x+self.width/4,self.y+self.width/2,
Button:
text: 'Macro 1'
on_press: root.macro(1)
Button:
on_press: root.left()
canvas.after:
Triangle:
points: self.x+self.width/3,self.y+self.height/2,self.x+2*self.width/3,self.y+self.height/3,self.x+2*self.width/3,self.y+2*self.height/3,
Button:
text: 'HOME'
on_press: root.home()
Button:
on_press: root.right()
canvas.after:
Triangle:
points: self.x+2*self.width/3,self.y+self.height/2,self.x+self.width/3,self.y+self.height/3,self.x+self.width/3,self.y+2*self.height/3,
Button:
text: 'Macro 2'
on_press: root.macro(2)
Button:
on_press: root.downLeft()
canvas.after:
Triangle:
points: self.x+self.width/2,self.y+self.width/2,self.x+self.width/2,self.y+self.width/4,self.x+3*self.width/4,self.y+self.width/4,
Button:
on_press: root.down()
canvas.after:
Triangle:
points: self.x+self.width/3,self.y+2*self.height/3,self.x+2*self.width/3,self.y+2*self.height/3,self.x+self.width/2,self.y+self.height/3,
Button:
on_press: root.downRight()
canvas.after:
Triangle:
points: self.x+self.width/2,self.y+self.width/4,self.x+self.width/4,self.y+self.width/4,self.x+self.width/2,self.y+self.width/2,
Button:
text: 'Z-Axis'
on_press: root.zAxisPopup()
Label:
id: moveSpeedInput
text: "Dist To \nMove:"
multiline: False
Button:
id: moveDistInput
text: '100'
multiline: False
on_press: root.textInputPopup(self)
Button:
text: root.units
on_press: root.switchUnits()
Button:
text: 'Define\nHome'
on_release: root.moveOrigin()
GridLayout:
cols: 3
size_hint: None, None
width: dp(300)
height: dp(60)
#disabled: not app.data.connectionStatus
Button:
text: 'RUN'
on_press: root.startRun()
Button:
id: holdBtn
text: "HOLD"
on_press: root.pause()
Button:
text: 'STOP'
on_press: root.stopRun()
GridLayout:
cols: 5
size_hint: None, None
width: dp(300)
height: dp(30)
#disabled: not app.data.connectionStatus
Button:
text: "<Z"
on_press: root.moveGcodeZ(-1)
Button:
text: "<1"
on_press: root.moveGcodeIndex(-1)
Button:
text: "Goto"
on_press: root.gotoLinePopup()
Button:
text: "1>"
on_press: root.moveGcodeIndex(1)
Button:
text: "Z>"
on_press: root.moveGcodeZ(1)
BoxLayout:
orentation: 'horizontal'
size_hint: None, None
width: dp(300)
height: dp(70)
#disabled: not app.data.connectionStatus
GridLayout:
cols: 2
Label:
text: ' X :'
Label:
text: root.xReadoutPos
Label:
text: ' Y : '
Label:
text: root.yReadoutPos
Label:
text: ' Z : '
Label:
text: root.zReadoutPos
GridLayout:
cols: 1
Label:
text: "Percent Complete/Line:"
font_size: '11sp'
Label:
text: root.percentComplete
Label:
text: root.gcodeLineNumber
Label:
text: root.connectionStatus
size_hint: None, None
width: dp(300)
height: dp(30)
disabled: False
ScrollableLabel:
id: textconsole
size: dp(300), dp(200)
text: root.consoleText
size_hint: None, None
ScreenControls:
id: screenControls
size_hint: (1, 1)
<ViewMenu>:
cols:1
size: root.size
pos: root.pos
Label:
text: "View"
Button:
text: 'Open File'
on_press: root.openFile()
Button:
text: 'Update Gcode'
on_release: root.reloadGcode()
Button:
text: 'View Gcode'
disabled: False
on_press: root.show_gcode()
Button:
text: 'Reset View'
disabled: False
on_press: app.frontpage.gcodecanvas.centerCanvas()
on_release: root.resetView()
<RunMenu>:
GridLayout:
cols: 1
size: root.size
pos: root.pos
Label:
text: "Run"
Button:
text: 'Quit Ground Control'
on_release: root.closeGC()
Button:
text: 'Return To Center'
on_release: root.returnToCenter()
#disabled: not app.data.connectionStatus
Button:
text: 'Zero Z'
disabled: True
Button:
text: 'Auto Zero Z'
disabled: True
<ScrollableLabel>:
Label:
size_hint_y: None
height: self.texture_size[1]
text_size: self.width, None
text: root.text
<ConnectMenu>:
GridLayout:
cols: 1
size: root.size
pos: root.pos
Label:
text: "Connect"
Button:
text: 'Connect'
on_press: root.connect()
Spinner:
id: ports
text: "Ports"
values: root.COMports
on_text: root.setPort(ports.text)
Button:
text: 'Update List'
on_press: root.updatePorts()
<Diagnostics>:
GridLayout:
rows: 2
size: root.size
pos: root.pos
Label:
text: "Diagnostic features"
GridLayout:
cols: 3
#disabled: not app.data.connectionStatus
Button:
text: 'Test Motors/Encoders'
on_press: root.testMotors()
Button:
text: 'Calibrate Machine Dimensions'
on_release: root.measureMachine()
Button:
text: 'Calibrate Chain Length - Automatic'
on_release: root.calibrateChainLengths()
Button:
text: 'Calibrate Motors\n-----Obsolete-----'
on_release: root.calibrateMotors()
disabled: True
Button:
text: 'About'
disabled: False
on_release: root.about()
Spinner:
id: advancedOptions
text: "Advanced"
values: ["Calibrate Chain Length - Manual", "Test Feedback System", "Wipe EEPROM", "Simulation"]
on_text: root.advancedOptionsFunctions(advancedOptions.text)
<ManualControl>:
GridLayout:
rows: 2
size: root.size
pos: root.pos
Label:
text: "Manual Control"
GridLayout:
cols: 12
#disabled: not app.data.connectionStatus
Label:
text: "X:"
Button:
text: '-5'
disabled: True
Button:
text: '-4'
disabled: True
Button:
text: '-3'
disabled: True
Button:
text: '-2'
disabled: True
Button:
text: '-1'
disabled: True
Button:
text: '0'
disabled: True
Button:
text: '1'
disabled: True
Button:
text: '2'
disabled: True
Button:
text: '3'
disabled: True
Button:
text: '4'
disabled: True
Button:
disabled: True
text: '5'
Label:
text: "Y:"
Button:
disabled: True
text: '-5'
Button:
disabled: True
text: '-4'
Button:
disabled: True
text: '-3'
Button:
disabled: True
text: '-2'
Button:
disabled: True
text: '-1'
Button:
disabled: True
text: '0'
Button:
disabled: True
text: '1'
Button:
disabled: True
text: '2'
Button:
disabled: True
text: '3'
Button:
disabled: True
text: '4'
Button:
disabled: True
text: '5'
Label:
text: "Z:"
Button:
disabled: True
text: '-5'
Button:
disabled: True
text: '-4'
Button:
disabled: True
text: '-3'
Button:
disabled: True
text: '-2'
Button:
disabled: True
text: '-1'
Button:
disabled: True
text: '0'
Button:
disabled: True
text: '1'
Button:
disabled: True
text: '2'
Button:
disabled: True
text: '3'
Button:
disabled: True
text: '4'
Button:
disabled: True
text: '5'
<OtherFeatures>:
connectmenu:connectmenu
viewmenu:viewmenu
diagnostics:diagnostics
runmenu:runmenu
BoxLayout:
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
padding:2
spacing:0
ViewMenu:
id: viewmenu
RunMenu:
id: runmenu
ConnectMenu:
id: connectmenu
BoxLayout:
orientation: 'vertical'
padding:2
spacing:0
Diagnostics:
id: diagnostics
Button:
text: "Close"
size_hint_y: .15
on_release: root.close()
<SoftwareSettings>:
<PositionIndicator>:
size: 50, 50
canvas:
Color:
rgb: root.color
Line:
circle:
(self.center_x-self.width/2, self.center_y-self.height/2, min(self.width, self.height)/ 2)
Line:
circle:
(self.center_x-self.width/2, self.center_y-self.height/2, self.positionErrorRadius)
Line:
circle:
(self.center_x-self.width/2, self.center_y-self.height/2, .5)
Line:
points: (self.x-self.width/2, self.y-self.height/2, self.width/2+self.x, self.height/2+self.y)
Line:
points: (self.x-self.width/2, self.height/2+self.y, self.width/2+self.x, self.y-self.height/2)
<LoadDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooser:
id: filechooser
path: root.path
filters: ['*.nc','*.ngc','*.text,','*.gcode']
FileChooserIconLayout
FileChooserListLayout
BoxLayout:
size_hint_y: None
height: dp(30)
Button:
text: 'Icon View'
on_press: filechooser.view_mode = 'icon'
size_hint_x: 0.3
Button:
text: 'List View'
on_press: filechooser.view_mode = 'list'
size: root.width/8,root.height
size_hint_x: 0.3
Button:
text: "Load"
on_release: root.load(filechooser.path, filechooser.selection)
Button:
text: "Cancel"
on_release: root.cancel()
<NotificationPopup>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
ScrollableLabel:
text: root.text
BoxLayout:
size_hint_y: None
height: dp(60)
Button:
text: "Continue"
on_release: root.continueOn()
<ScrollableTextPopup>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
ScrollableLabel:
text: root.text
BoxLayout:
size_hint_y: None
height: dp(60)
Button:
text: "Close"
on_release: root.cancel()
<PageableTextPopup>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
ScrollableLabel:
text: root.text
BoxLayout:
size_hint_y: None
height: dp(30)
Button:
text: "Prev"
on_release: root.prev()
Button:
text: "Next"
on_release: root.next()
Button:
text: "Close"
on_release: root.cancel()
<SaveDialog>:
text_input: text_input
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooserListView:
id: filechooser
on_selection: text_input.text = self.selection and self.selection[0] or ''
TextInput:
id: text_input
size_hint_y: None
height: dp(30)
multiline: False
BoxLayout:
size_hint_y: None
height: dp(30)
Button:
text: "Cancel"
on_release: root.cancel()
Button:
text: "Save"
on_release: root.save(filechooser.path, text_input.text)
<TouchNumberInput>:
textInput:textInput
cols: 1
size: root.size
pos: root.pos
TextInput:
size_hint_y:.25
font_size: self.height - 5
id:textInput
GridLayout:
cols: 3
Button:
text: "1"
on_release: root.addText("1")
Button:
text: "2"
on_release: root.addText("2")
Button:
text: "3"
on_release: root.addText("3")
Button:
text: "4"
on_release: root.addText("4")
Button:
text: "5"
on_release: root.addText("5")
Button:
text: "6"
on_release: root.addText("6")
Button:
text: "7"
on_release: root.addText("7")
Button:
text: "8"
on_release: root.addText("8")
Button:
text: "9"
on_release: root.addText("9")
Button:
text: "."
on_release: root.addText(".")
Button:
text: "0"
on_release: root.addText("0")
Button:
text: "Done"
on_release: root.done()
<ZAxisPopupContent>:
distBtn:distBtn
unitsBtn:unitsBtn
cols: 1
size: root.size
pos: root.pos
GridLayout:
cols: 3
Button:
text: ".1"
id: distBtn
on_release: root.setDist()
Button:
text: "MM"
on_release: root.units()
id: unitsBtn
Button:
text: "Lower"
on_release: root.zIn()
Button:
text: "Done"
on_release: root.done()
Button:
text: "Define Zero"
on_release: root.zero()
Button:
text: "Raise"
on_release: root.zOut()
<MeasureMachinePopup>:
carousel:carousel
linksTextInput:linksTextInput
reviewNumbers:reviewNumbers
cutBtn:cutBtn
goBackBtn:goBackBtn
goFwdBtn:goFwdBtn
horizMeasure:horizMeasure
vertMeasure:vertMeasure
unitsBtn:unitsBtn
enterValues:enterValues
zAxisActiveSwitch:zAxisActiveSwitch
chooseKinematicsType:chooseKinematicsType
triangleMeasure: triangleMeasure
unitsBtnT:unitsBtnT
enterValuesT:enterValuesT
cutBtnT:cutBtnT
cols: 1
size: root.size
pos: root.pos
#top bar
GridLayout:
cols: 3
size_hint_y: .1
Button:
text: "<Go Back"
on_release: root.backBtn()
id: goBackBtn
disabled: True
Label:
text: root.stepText#Step {} of 9'.format(carousel.index)
Button:
text: "Skip>"
id: goFwdBtn
on_release: root.fwdBtn()
Carousel:
id: carousel
direction: "right"
size_hint_y: .9
on_index: root.slideJustChanged()
#:set leftCol .8
#:set rightCol .2
#intro
GridLayout:
cols: 2
Label:
text: 'This walk-through will guide you through the process of calibrating your Maslow Machine. \n\nClick Begin to start. \n\nYou can move forward and backwards through the walk-through at any time using the Previous and Next buttons\n\nYou can also skip this process entirely and enter your machine dimensions in the Settings window\n\nYour feedback on how to improve this process is more than welcome'
size_hint_x: leftCol
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Label:
text: 'The controls you will need\nfor each step will be on here\non the right'
Button:
text: "Begin"
on_release: root.defineInitialState()
Label:
#Set sprockets to 12 o'clock
GridLayout:
cols: 2
GridLayout:
cols: 1
Label:
text: "Orient each sprocket so that one tooth faces straight up in the 12:00 o'clock position.\n\nIt is important to start with the sprockets in a known configuration. \nUse the buttons to the right to rotate each sprocket so that one tooth points straight up.\nWhen you are ready, press Set Zero"
size_hint_x: leftCol
Image:
source: "./Documentation/Calibrate Machine Dimensions/Sprocket at 12-00.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Turn Left Sprocket\n1 degree CCW'
on_release: root.LeftCCW()
Button:
text: 'Turn Left Sprocket\n1 degree CW'
on_release: root.LeftCW()
Button:
text: 'Turn Right Sprocket\n1 degree CCW'
on_release: root.RightCCW()
Button:
text: 'Turn Right Sprocket\n1 degree CW'
on_release: root.RightCW()
Button:
text: 'Set Zero'
on_release: root.setZero()
Label:
#Measure spacing between motors
GridLayout:
cols: 2
GridLayout:
cols: 1
Label:
text: "Rather than using a tape measure to measure the spacing between the motors, we're going to use the chain.\n\nHook the first link from the left chain over the top tooth on the left motor\n\nThen, use the buttons to the right to extend the chain until it can reach the right motor.\n\nBe sure to keep an eye on the chains during this process to ensure that they do not become tangled\naround the sprocket. The motors are very powerful and the machine can damage itself this way\n\nHook the third link on the right motor's 12:00 tooth as shown in the picture below\n\nPull the chain tight by pressing Pull Chain Tight. You can use this button repeatedly if needed\n\nPress Measure when the chain is taught"
size_hint_x: leftCol
GridLayout:
cols: 3
Image:
source: "./Documentation/Calibrate Machine Dimensions/Chain On Left Sprocket.jpg"
Image:
source: "./Documentation/Calibrate Machine Dimensions/Chain Between Sprockets.jpg"
Image:
source: "./Documentation/Calibrate Machine Dimensions/Chain On Right Sprocket.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Extend Left Chain 1mm'
on_release: root.extendLeft(1)
Button:
text: 'Extend Left Chain 10mm'
on_release: root.extendLeft(10)
Button:
text: 'Extend Left Chain 100mm'
on_release: root.extendLeft(100)
Button:
text: 'Extend Left Chain 1000mm'
on_release: root.extendLeft(1000)
Button:
text: 'Pull Chain Tight'
on_release: root.pullChainTight()
Button:
text: 'Measure'
on_release: root.measureLeft()
Button:
text: "Stop\nMotors"
on_release: root.stopCut()
Label:
#Measure sled spacing
GridLayout:
cols: 2
GridLayout:
cols: 1
Label:
text: "Detach the end of the chain from the right sprocket\n\nFeed the free end through the sled mounting brackets and hold it in place with cotter pins\n\nCount the holes between the two pins and enter the number in the box to the right, then press Enter\nWe will refine this measurement later, it is only an initial guess.\n\nSkip this step if you are using a linkage kit"
size_hint_x: leftCol
Image:
source: "./Documentation/Calibrate Machine Dimensions/Chain Between Sled Mounts.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Extend Left Chain 10mm'
on_release: root.extendLeft(10)
Button:
text: 'Retract Left Chain 10mm'
on_release: root.retractLeft(10)
TextInput:
text: "0"
id: linksTextInput
Button:
text: "Enter # of\nLinks"
on_release: root.countLinks()
Label:
#Measure to the top of the sheet
GridLayout:
cols: 2
GridLayout:
cols: 1
size_hint_x: leftCol
Label:
text: "Unhook the cotter pin from the sled\n\nRetract the chain until it hangs down from the motor to the height of the top of the 4x8 sheet, then click Measure\n\nBe careful that the chain hangs straight down, and is not caught on the chain tensioner to get an accurate measurement\n\nThis measurement is not critical for the internal mathematics\nit simply moves the center point of the plywood up and down"
size_hint_x: leftCol
Image:
source: "./Documentation/Calibrate Machine Dimensions/Measure Motor Height.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Extend Left Chain 10mm'
on_release: root.extendLeft(10)
Button:
text: 'Retract Left Chain 1mm'
on_release: root.retractLeft(1)
Button:
text: 'Retract Left Chain 10mm'
on_release: root.retractLeft(10)
Button:
text: 'Retract Left Chain 100mm'
on_release: root.retractLeft(100)
Button:
text: 'Retract Left Chain 1000mm'
on_release: root.retractLeft(1000)
Button:
text: "Stop\nMotors"
on_release: root.stopCut()
Button:
text: 'Measure'
on_release: root.measureLeft()
Label:
#review measurements
GridLayout:
cols: 2
GridLayout:
cols: 1
size_hint_x: leftCol
Label:
id: reviewNumbers
text: "Let's review the measurements we've made so far to make sure they look correct\n\nMotor Spacing: 300mm\nSled Mount Spacing: 300mm\nVertical Offset: 400mm\n\nYou can go back and re-do any of these numbers if you would like"
Label:
text: 'Note: Two important factors are not measured in this process:\n\n1) The distance from the chain mounting points to the router bit\n2) The center of gravity of the sled\n\nIf you are using the standard sled design and router the default values will be close\n\nIf you are using a custom design, it is a good idea to measure these values manually and enter them in the settings. \n\nIf you have a recomendation for a way to automate these measurements, let us know in the forums'
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Continue'
on_release: carousel.load_next()
Label:
#measure out chains
GridLayout:
cols: 2
GridLayout:
cols: 1
size_hint_x: leftCol
Label:
text: "Now we are going to measure out the chains and reattach the sled\n\nHook the first link of the right chain on the vertical tooth of the right sprocket\n as shown in the picture below\n\nThe left chain does not need to be moved, it can be left partly extended\n\nThe correct length of first the left and then the right chain will be measured out\n\nOnce both chains are finished attach the sled, then press Next\nPressing Next will move the sled to the center of the sheet.\n\nBe sure to keep an eye on the chains during this process to ensure that they do not become tangled\naround the sprocket. The motors are very powerful and the machine can damage itself this way"
size_hint_x: leftCol
GridLayout:
cols: 2
Image:
source: "./Documentation/Calibrate Machine Dimensions/Ready To Calibrate Right Sprocket.jpg"
Image:
source: "./Documentation/Calibrate Machine Dimensions/Sled Attached.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Button:
text: 'Calibrate\nChain Lengths'
on_release: root.calibrateChainLengths()
Button:
text: 'Stop'
on_release: root.stopCut()
Button:
text: 'Next'
on_release: root.finishChainCalibration()
Label:
#set z-axis depth
GridLayout:
cols: 2
GridLayout:
cols: 1
size_hint_x: leftCol
Label:
text: "Next, we are going to define the home position for the z-axis\n\nIf you have an automatic z-axis installed use the buttons to enable it and adjust the z-axis until the router bit\nbarely touches the surface of the wood. Then press Define Zero\n\nIf you do not have the z-axis installed, adjust your router until the router bit just barely\ntouches the surface of the wood, then press Define Zero"
size_hint_x: leftCol
GridLayout:
cols: 2
Image:
source: "./Documentation/Calibrate Machine Dimensions/Set Z Height.jpg"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
GridLayout:
cols: 2
Label:
text: 'Enable\nAutomatic Z-Aixs:'
Switch:
on_active: root.enableZaxis()
id: zAxisActiveSwitch
Button:
text: 'Raise Z-Axis 1mm'
on_release: root.moveZ(1)
Button:
text: 'Raise Z-Axis .1mm'
on_release: root.moveZ(.1)
Button:
text: 'Lower Z-Axis 1mm'
on_release: root.moveZ(-1)
Button:
text: 'Lower Z-Axis .1mm'
on_release: root.moveZ(-.1)
Button:
text: 'Define Zero'
on_release: root.zeroZ()
Label:
#choose kinematics type
GridLayout:
cols: 2
GridLayout:
cols: 1
size_hint_x: leftCol
Label:
text: "Now we're going to select the way the chains attach to the sled. There are currently two options. \n\nThe \"Quadrilateral\" system attaches the chains to the two stationary metal L brackets as shown in the left picture.\nThis is currently the default option. \n\nThe \"Triangular\" system attaches the chains to a system of either linkages or bearings which let the ends of the chains\nrotate around the router bit as shown in the picture on the right.\n\n Please choose an option from the drop down on the right, then press Next"
size_hint_x: leftCol
GridLayout:
cols: 2
Image:
source: "./Documentation/Calibrate Machine Dimensions/Quadrilateral Kinematics.JPG"
Image:
source: "./Documentation/Calibrate Machine Dimensions/Triangular Kinematics.JPG"
GridLayout:
cols: 1
size_hint_x: rightCol
Label:
Label:
text: "Please Choose\nAn Option"
Spinner:
text: 'Quadrilateral'
values: ('Quadrilateral', 'Triangular')
id: chooseKinematicsType
Button:
text: 'Next'
on_release: root.setKinematicsType()
Label:
#cut test shape Triangular
GridLayout:
cols: 2
GridLayout:
cols: 1