-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path2024EmberbotsIntakeTestSV.blk
More file actions
131 lines (131 loc) · 4.18 KB
/
2024EmberbotsIntakeTestSV.blk
File metadata and controls
131 lines (131 loc) · 4.18 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
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="procedures_defnoreturn" id="WtpyD@tEu+EoY=P9iY,D" deletable="false" x="25" y="169">
<field name="NAME">runOpMode</field>
<comment pinned="true" h="141" w="577">This sample contains the bare minimum Blocks for any regular OpMode. The 3 blue
Comment Blocks show where to place Initialization code (runs once, after touching the
DS INIT button, and before touching the DS Start arrow), Run code (runs once, after
touching Start), and Loop code (runs repeatedly while the OpMode is active, namely not
Stopped).</comment>
<data>{"commentPositionLeft":319,"commentPositionTop":-171}</data>
<statement name="STACK">
<block type="comment" id="Lc#BFtj*NTB48YL;eBl.">
<field name="COMMENT">Put initialization blocks here.</field>
<next>
<block type="servo_setProperty_Direction" id=":HMgp_WxG)rZO*NQ1u#s">
<field name="IDENTIFIER">testServo1AsServo</field>
<field name="PROP">Direction</field>
<data>{"IDENTIFIER":"testServo1"}</data>
<value name="VALUE">
<shadow type="servo_typedEnum_direction" id="r-bUa`|M|8tiPDa%4zoR">
<field name="DIRECTION">REVERSE</field>
</shadow>
</value>
<next>
<block type="linearOpMode_waitForStart" id=":`$wN_ci`O;o6P0~.(+g">
<next>
<block type="controls_if" id="}Q?5mbxSO8Di;i!__6[y">
<value name="IF0">
<block type="linearOpMode_opModeIsActive" id=")o%YFX/#9kvv^sgXr4~5"/>
</value>
<statement name="DO0">
<block type="comment" id="(rU-p_T_/B|vExcs}liL">
<field name="COMMENT">Put run blocks here.</field>
<next>
<block type="controls_whileUntil" id="^0Kagy/e+Ea{rbZPv2G6">
<field name="MODE">WHILE</field>
<value name="BOOL">
<block type="linearOpMode_opModeIsActive" id="e)cr{!2VIET83s,JWC.="/>
</value>
<statement name="DO">
<block type="comment" id="Jh/;L$n@JuX8AQJDFCul">
<field name="COMMENT">Put loop blocks here.</field>
<next>
<block type="controls_if" id="uHDtABeA{k9K^V*X7AJ,">
<mutation elseif="1" else="1"/>
<value name="IF0">
<block type="gamepad_getProperty_Boolean" id="+YgJFstPJV`zxF]/N`/`">
<field name="IDENTIFIER">gamepad1</field>
<field name="PROP">RightBumper</field>
<data>{"IDENTIFIER":"gamepad1"}</data>
</block>
</value>
<statement name="DO0">
<block type="servo_setProperty_Number" id="$atM:^E.w7WjUf|`Y./}">
<field name="IDENTIFIER">testServo1AsServo</field>
<field name="PROP">Position</field>
<data>{"IDENTIFIER":"testServo1"}</data>
<value name="VALUE">
<shadow type="math_number" id="[/pVBrU#e/b7ti9bLf]Q">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</statement>
<value name="IF1">
<block type="gamepad_getProperty_Boolean" id="2g?bK2G_#-UU.*GN9*3y">
<field name="IDENTIFIER">gamepad1</field>
<field name="PROP">LeftBumper</field>
<data>{"IDENTIFIER":"gamepad1"}</data>
</block>
</value>
<statement name="DO1">
<block type="servo_setProperty_Number" id="=OdwIL(Wh}uyb2lZeqGi">
<field name="IDENTIFIER">testServo1AsServo</field>
<field name="PROP">Position</field>
<data>{"IDENTIFIER":"testServo1"}</data>
<value name="VALUE">
<shadow type="math_number" id="[Vk,o*aY4KOVA0YO?1mw">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="servo_setProperty_Number" id="/=gh:)uEJs%=r;+,`x]m">
<field name="IDENTIFIER">testServo1AsServo</field>
<field name="PROP">Position</field>
<data>{"IDENTIFIER":"testServo1"}</data>
<value name="VALUE">
<shadow type="math_number" id="K-nuLju`%.m.C}3{^X`Q">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</statement>
<next>
<block type="telemetry_update" id="exvivmft-pX$n!1,8Ea$"/>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="servo_getProperty_Number" id="qn%)Z4?ScFL]BPnbv?)E" x="258" y="199">
<field name="IDENTIFIER">testServo1AsServo</field>
<field name="PROP">Position</field>
<data>{"IDENTIFIER":"testServo1"}</data>
</block>
<block type="logic_compare" id="!P/RK8Tvi8@yra26z?x|" x="402" y="315">
<field name="OP">EQ</field>
</block>
<block type="math_number" id="$Bd^-7Av7a#iM(8^gHR}" x="732" y="357">
<field name="NUM">0</field>
</block>
</xml>
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<Extra>
<OpModeMeta flavor="TELEOP" group="" autoTransition="" />
<Enabled value="true" />
</Extra>