File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ <h3>Using Joystick Button
2424 </ h3 >
2525 < div class ="brief "> How to use joystick buttons.</ div >
2626 </ div >
27+
2728 < div class ="example " data-file ="doublesolenoud.xml ">
2829 < h3 > Double Solenoid
2930 < div class ="pull-right inline-block ">
@@ -33,6 +34,15 @@ <h3>Double Solenoid
3334 < div class ="brief "> How to use a joystick button to control a double solenoid pneumatic valve.</ div >
3435 </ div >
3536
37+ < div class ="example " data-file ="limitswitch.xml ">
38+ < h3 > Limit Switch
39+ < div class ="pull-right inline-block ">
40+ < button type ="button " class ="btn btn-success load "> Load</ button >
41+ </ div >
42+ </ h3 >
43+ < div class ="brief "> How to use a limit switch to control a motor.</ div >
44+ </ div >
45+
3646 </ div >
3747 < div class ="modal-footer ">
3848 < button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
Original file line number Diff line number Diff line change 1+ <xml >
2+ <block type =" init_declare" id =" 131" deletable =" false" x =" 2" y =" 19" >
3+ <statement name =" WHAT" >
4+ <block type =" declare_motor_controller" id =" 146" >
5+ <field name =" NAME" >Roller1</field >
6+ <field name =" CONTROLLER_TYPE" >Victor</field >
7+ <field name =" PORT" >1</field >
8+ <next >
9+ <block type =" declare_digital_input" id =" 152" >
10+ <field name =" NAME" >LimitSwitch1</field >
11+ <field name =" PORT" >1</field >
12+ </block >
13+ </next >
14+ </block >
15+ </statement >
16+ </block >
17+ <block type =" teleop_init" id =" 134" deletable =" false" x =" 4" y =" 137" ></block >
18+ <block type =" auto_init" id =" 132" deletable =" false" x =" 466" y =" 122" ></block >
19+ <block type =" auto_perodic" id =" 133" deletable =" false" x =" 466" y =" 191" ></block >
20+ <block type =" teleop_perodic" id =" 135" deletable =" false" x =" 7" y =" 223" >
21+ <statement name =" WHAT" >
22+ <block type =" controls_if" id =" 159" inline =" false" >
23+ <mutation else =" 1" ></mutation >
24+ <value name =" IF0" >
25+ <block type =" get_digital_input_value" id =" 162" >
26+ <field name =" NAME" >LimitSwitch1</field >
27+ </block >
28+ </value >
29+ <statement name =" DO0" >
30+ <block type =" move_motor_controller" id =" 188" inline =" true" >
31+ <field name =" NAME" >Roller1</field >
32+ <value name =" SPEED" >
33+ <block type =" math_number" id =" 189" >
34+ <field name =" NUM" >1</field >
35+ </block >
36+ </value >
37+ </block >
38+ </statement >
39+ <statement name =" ELSE" >
40+ <block type =" stop_motor_controller" id =" 177" >
41+ <field name =" NAME" >Roller1</field >
42+ </block >
43+ </statement >
44+ </block >
45+ </statement >
46+ </block >
47+ </xml >
You can’t perform that action at this time.
0 commit comments