Repository navigation
Expand file tree
/
Copy path2489RobotCode_2013.yml
More file actions
531 lines (530 loc) · 21.9 KB
/
Copy path2489RobotCode_2013.yml
File metadata and controls
531 lines (530 loc) · 21.9 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
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
Version 0.0.2
---
Name: 2489RobotCode_2013
Base: Robot
Children:
- Name: Subsystems
Base: Subsystems
Children:
- Name: Chassis
Base: Subsystem
Children:
- Name: m_gyro
Base: Gyro
Children: []
Properties:
Sensitivity: !!robotbuilder.data.properties.DoubleProperty {default: 1.25,
name: Sensitivity, validators: null, value: 1.25}
Input Module (Analog): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2']
default: '1'
name: Input Module (Analog)
validators: [AnalogInput]
value: '1'
Input Channel (Analog): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8']
default: '1'
name: Input Channel (Analog)
validators: [AnalogInput]
value: '1'
- Name: Drive
Base: Robot Drive 2
Children:
- Name: m_leftMotor
Base: Speed Controller
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: &id001 ['1', '2']
default: '1'
name: Output Module (Digital)
validators: &id002 [PWMOutput]
value: '1'
Type: !!robotbuilder.data.properties.ChoicesProperty
choices: &id003 [Victor, Jaguar, Talon]
default: Victor
name: Type
validators: null
value: Jaguar
Output Channel (PWM): !!robotbuilder.data.properties.ChoicesProperty
choices: &id004 ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']
default: '1'
name: Output Channel (PWM)
validators: &id005 [PWMOutput]
value: '10'
- Name: m_rightMotor
Base: Speed Controller
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: *id001
default: '1'
name: Output Module (Digital)
validators: *id002
value: '1'
Type: !!robotbuilder.data.properties.ChoicesProperty
choices: *id003
default: Victor
name: Type
validators: null
value: Jaguar
Output Channel (PWM): !!robotbuilder.data.properties.ChoicesProperty
choices: *id004
default: '1'
name: Output Channel (PWM)
validators: *id005
value: '8'
Properties:
Sensitivity: !!robotbuilder.data.properties.DoubleProperty {default: 0.5,
name: Sensitivity, validators: null, value: 0.5}
Safety Enabled: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Safety Enabled, validators: null, value: false}
Left Motor Inverted: !!robotbuilder.data.properties.BooleanProperty {default: false,
name: Left Motor Inverted, validators: null, value: false}
Right Motor: !!robotbuilder.data.properties.ChildSelectionProperty
default: 1
name: Right Motor
type: PIDOutput
validators: [RobotDrive2, ChildDropdownSelected]
value: Chassis m_rightMotor
Maximum Output: !!robotbuilder.data.properties.DoubleProperty {default: 1,
name: Maximum Output, validators: null, value: 1.0}
Left Motor: !!robotbuilder.data.properties.ChildSelectionProperty
default: 0
name: Left Motor
type: PIDOutput
validators: [RobotDrive2, ChildDropdownSelected]
value: Chassis m_leftMotor
Right Motor Inverted: !!robotbuilder.data.properties.BooleanProperty {default: false,
name: Right Motor Inverted, validators: null, value: false}
Safety Expiration Time: !!robotbuilder.data.properties.DoubleProperty {default: 0.1,
name: Safety Expiration Time, validators: null, value: 0.1}
Properties:
Default Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Default Command, type: Command, validators: null, value: DriveWithJoysticks}
- Name: Shooter
Base: Subsystem
Children:
- Name: m_shooterMotor2
Base: Speed Controller
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: *id001
default: '1'
name: Output Module (Digital)
validators: *id002
value: '1'
Type: !!robotbuilder.data.properties.ChoicesProperty
choices: *id003
default: Victor
name: Type
validators: null
value: Jaguar
Output Channel (PWM): !!robotbuilder.data.properties.ChoicesProperty
choices: *id004
default: '1'
name: Output Channel (PWM)
validators: *id005
value: '2'
- Name: m_shooterMotor1
Base: Speed Controller
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: *id001
default: '1'
name: Output Module (Digital)
validators: *id002
value: '1'
Type: !!robotbuilder.data.properties.ChoicesProperty
choices: *id003
default: Victor
name: Type
validators: null
value: Jaguar
Output Channel (PWM): !!robotbuilder.data.properties.ChoicesProperty
choices: *id004
default: '1'
name: Output Channel (PWM)
validators: *id005
value: '1'
- Name: reverseSolenoid
Base: Solenoid
Children: []
Properties:
Output Module (Solenoid): !!robotbuilder.data.properties.ChoicesProperty
choices: &id006 ['1', '2']
default: '1'
name: Output Module (Solenoid)
validators: &id007 [Solenoid]
value: '1'
Output Channel (Solenoid): !!robotbuilder.data.properties.ChoicesProperty
choices: &id008 ['1', '2', '3', '4', '5', '6', '7', '8']
default: '1'
name: Output Channel (Solenoid)
validators: &id009 [Solenoid]
value: '1'
- Name: forwardSolenoid
Base: Solenoid
Children: []
Properties:
Output Module (Solenoid): !!robotbuilder.data.properties.ChoicesProperty
choices: *id006
default: '1'
name: Output Module (Solenoid)
validators: *id007
value: '1'
Output Channel (Solenoid): !!robotbuilder.data.properties.ChoicesProperty
choices: *id008
default: '1'
name: Output Channel (Solenoid)
validators: *id009
value: '2'
- Name: pistonSensor
Base: Digital Input
Children: []
Properties:
Input Channel (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14']
default: '1'
name: Input Channel (Digital)
validators: [DigitalChannel]
value: '2'
Input Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2']
default: '1'
name: Input Module (Digital)
validators: [DigitalChannel]
value: '1'
Properties:
Default Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Default Command, type: Command, validators: null, value: RunShooterMotors}
- Name: Pump
Base: Subsystem
Children:
- Name: m_compressor1
Base: Compressor
Children: []
Properties:
Spike Channel (Relay): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8']
default: '1'
name: Spike Channel (Relay)
validators: [RelayOutput]
value: '8'
Spike Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2']
default: '1'
name: Spike Module (Digital)
validators: [RelayOutput]
value: '1'
Pressure Switch Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2']
default: '1'
name: Pressure Switch Module (Digital)
validators: [DigitalChannel]
value: '1'
Pressure Switch Channel (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14']
default: '1'
name: Pressure Switch Channel (Digital)
validators: [DigitalChannel]
value: '1'
Properties:
Default Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Default Command, type: Command, validators: null, value: None}
- Name: ShooterElevator
Base: Subsystem
Children:
- Name: ElevatorMotor
Base: Speed Controller
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: *id001
default: '1'
name: Output Module (Digital)
validators: *id002
value: '1'
Type: !!robotbuilder.data.properties.ChoicesProperty
choices: *id003
default: Victor
name: Type
validators: null
value: Jaguar
Output Channel (PWM): !!robotbuilder.data.properties.ChoicesProperty
choices: *id004
default: '1'
name: Output Channel (PWM)
validators: *id005
value: '3'
Properties:
Default Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Default Command, type: Command, validators: null, value: None}
- Name: TargetingControl
Base: Subsystem
Children:
- Name: m_lightControl
Base: Spike
Children: []
Properties:
Output Module (Digital): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2']
default: '1'
name: Output Module (Digital)
validators: [RelayOutput]
value: '1'
Output Channel (Relay): !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8']
default: '1'
name: Output Channel (Relay)
validators: [RelayOutput]
value: '7'
Properties:
Default Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Default Command, type: Command, validators: null, value: None}
Properties: {}
- Name: Operator Interface
Base: OI
Children:
- Name: m_rightStick
Base: Joystick
Children:
- Name: m_rightTrigger
Base: Joystick Button
Children: []
Properties:
Command: !!robotbuilder.data.properties.TypeSelectionProperty
default: None
name: Command
type: Command
validators: [TypeDropdownSelected]
value: FireShooterTime
Button: !!robotbuilder.data.properties.ChoicesProperty
choices: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
default: '1'
name: Button
validators: null
value: '1'
Joystick: !!robotbuilder.data.properties.ParentProperty {default: parent,
name: Joystick, validators: null, value: m_rightStick}
When to Run: !!robotbuilder.data.properties.ChoicesProperty
choices: [whileHeld, whenPressed, whenReleased]
default: whileHeld
name: When to Run
validators: null
value: whenPressed
Properties:
Number: !!robotbuilder.data.properties.ChoicesProperty
choices: &id010 ['1', '2', '3', '4']
default: 1
name: Number
validators: &id011 [Joystick]
value: '1'
- Name: m_leftStick
Base: Joystick
Children: []
Properties:
Number: !!robotbuilder.data.properties.ChoicesProperty
choices: *id010
default: 1
name: Number
validators: *id011
value: '2'
Properties: {}
- Name: Commands
Base: Commands
Children:
- Name: Autonomous Command
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: None}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: DriveWithJoysticks
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: DriveForward
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: DriveBack
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: TurnLeft
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: TurnRight
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: RunTest
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: DriveBackAndForth
Base: Command Group
Children: []
Properties:
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: TurnAngle
Base: PID Command
Children: []
Properties:
D: !!robotbuilder.data.properties.DoubleProperty {default: 0, name: D, validators: null,
value: 0.0}
Period: !!robotbuilder.data.properties.DoubleProperty {default: 0.02, name: Period,
validators: null, value: 0.02}
Input: !!robotbuilder.data.properties.TypeSelectionProperty
default: None
name: Input
type: PIDSource
validators: [TypeDropdownSelected]
value: Chassis m_gyro
Limit Output: !!robotbuilder.data.properties.BooleanProperty {default: false,
name: Limit Output, validators: null, value: false}
Tolerance: !!robotbuilder.data.properties.DoubleProperty {default: 0.2, name: Tolerance,
validators: null, value: 0.2}
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Chassis}
Continuous: !!robotbuilder.data.properties.BooleanProperty {default: false,
name: Continuous, validators: null, value: false}
Maximum Output: !!robotbuilder.data.properties.DoubleProperty {default: 1, name: Maximum Output,
validators: null, value: 1.0}
Limit Input: !!robotbuilder.data.properties.BooleanProperty {default: false,
name: Limit Input, validators: null, value: false}
Output: !!robotbuilder.data.properties.TypeSelectionProperty
default: None
name: Output
type: PIDOutput
validators: [TypeDropdownSelected]
value: Chassis m_leftMotor
Minimum Input: !!robotbuilder.data.properties.DoubleProperty {default: 0, name: Minimum Input,
validators: null, value: 0.0}
Minimum Output: !!robotbuilder.data.properties.DoubleProperty {default: -1,
name: Minimum Output, validators: null, value: -1.0}
I: !!robotbuilder.data.properties.DoubleProperty {default: 0, name: I, validators: null,
value: 0.0}
P: !!robotbuilder.data.properties.DoubleProperty {default: 1, name: P, validators: null,
value: 1.0}
Maximum Input: !!robotbuilder.data.properties.DoubleProperty {default: 5, name: Maximum Input,
validators: null, value: 5.0}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: DriveInSquare
Base: Command Group
Children: []
Properties:
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: StartShooterMotors
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Shooter}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: StopShooterMotors
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Shooter}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: SetElevatorAngle
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: ShooterElevator}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
- Name: RunShooterMotors
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: Shooter}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: FireShooterTime
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: None}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: FireShooterSensor
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: None}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: true}
- Name: LightControl
Base: Command
Children: []
Properties:
Requires: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Requires, type: Subsystem, validators: null, value: None}
Button on SmartDashboard: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Button on SmartDashboard, validators: null, value: false}
Properties: {}
Properties:
Autonomous Command: !!robotbuilder.data.properties.TypeSelectionProperty {default: None,
name: Autonomous Command, type: Command, validators: null, value: Autonomous Command}
Wiring File: !!robotbuilder.data.properties.FileProperty {default: '', extension: html,
folder: false, name: Wiring File, validators: null, value: ''}
C++ Windriver Workspace: !!robotbuilder.data.properties.FileProperty {default: 'C:\Windriver\workspace',
extension: null, folder: true, name: C++ Windriver Workspace, validators: null,
value: 'C:\WindRiver\workspace_frc'}
Use Default Java Package: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Use Default Java Package, validators: null, value: true}
Java Package: !!robotbuilder.data.properties.StringProperty {default: org.usfirst.frc0000,
name: Java Package, validators: null, value: org.usfirst.frc0000}
Export Subsystems: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Export Subsystems, validators: null, value: true}
Team Number: !!robotbuilder.data.properties.IntegerProperty {default: 0, name: Team Number,
validators: null, value: 2489}
Export Commands: !!robotbuilder.data.properties.BooleanProperty {default: true,
name: Export Commands, validators: null, value: true}
Java Project Directory: !!robotbuilder.data.properties.FileProperty {default: 'C:\Users\sasha\NetBeansProjects',
extension: null, folder: true, name: Java Project Directory, validators: null,
value: 'C:\Users\sasha\NetBeansProjects'}