TheVarunKaushik commited on
Commit
9482599
·
verified ·
1 Parent(s): 14832e8

Delete data.json

Browse files
Files changed (1) hide show
  1. data.json +0 -104
data.json DELETED
@@ -1,104 +0,0 @@
1
- {
2
- "data":[
3
- {
4
- "text":"Drive forward for a specific distance.",
5
- "code":"drivetrain.driveFor(forward, DISTANCE, inches);"
6
- },
7
- {
8
- "text":"Drive backward for a specific distance.",
9
- "code":"drivetrain.driveFor(reverse, DISTANCE, inches);"
10
- },
11
- {
12
- "text":"Turn left a specific number of degrees.",
13
- "code":"drivetrain.turnFor(left, DEGREES, degrees);"
14
- },
15
- {
16
- "text":"Turn right a specific number of degrees.",
17
- "code":"drivetrain.turnFor(right, DEGREES, degrees);"
18
- },
19
- {
20
- "text":"Spin motor at a specific speed.",
21
- "code":"motor1.spin(forward, SPEED, rpm);"
22
- },
23
- {
24
- "text":"Reverse motor at a specific speed.",
25
- "code":"motor1.spin(reverse, SPEED, rpm);"
26
- },
27
- {
28
- "text":"Stop the drivetrain.",
29
- "code":"drivetrain.stop();"
30
- },
31
- {
32
- "text":"Lift arm for a specific duration.",
33
- "code":"armMotor.spin(forward); wait(DURATION, seconds); armMotor.stop();"
34
- },
35
- {
36
- "text":"Rotate using inertial sensor to a specific angle to the left.",
37
- "code":"while(inertialSensor.heading(degrees) < ANGLE) { drivetrain.turn(left); } drivetrain.stop();"
38
- },
39
- {
40
- "text":"Rotate using inertial sensor to a specific angle to the right.",
41
- "code":"while(inertialSensor.heading(degrees) > ANGLE) { drivetrain.turn(right); } drivetrain.stop();"
42
- },
43
- {
44
- "text":"Spin the flywheel at a specific velocity.",
45
- "code":"flywheelMotor.spin(forward, VELOCITY, velocityUnits::rpm);"
46
- },
47
- {
48
- "text":"Stop the flywheel.",
49
- "code":"flywheelMotor.stop();"
50
- },
51
- {
52
- "text":"Run the intake forward.",
53
- "code":"intakeMotor.spin(forward, SPEED, velocityUnits::pct);"
54
- },
55
- {
56
- "text":"Reverse the intake.",
57
- "code":"intakeMotor.spin(reverse, SPEED, velocityUnits::pct);"
58
- },
59
- {
60
- "text":"Stop the intake.",
61
- "code":"intakeMotor.stop();"
62
- },
63
- {
64
- "text":"Activate the match loader to load a ball.",
65
- "code":"matchLoaderMotor.spin(forward, SPEED, velocityUnits::pct); wait(DURATION, seconds); matchLoaderMotor.stop();"
66
- },
67
- {
68
- "text":"Extend a piston to push an object.",
69
- "code":"piston.set(true);"
70
- },
71
- {
72
- "text":"Retract a piston.",
73
- "code":"piston.set(false);"
74
- },
75
- {
76
- "text":"Toggle a piston's state.",
77
- "code":"piston.toggle();"
78
- },
79
- {
80
- "text":"Run the flywheel for a specific duration then stop.",
81
- "code":"flywheelMotor.spin(forward, VELOCITY, velocityUnits::rpm); wait(DURATION, seconds); flywheelMotor.stop();"
82
- },
83
- {
84
- "text":"Spin the intake and match loader simultaneously to intake and load.",
85
- "code":"intakeMotor.spin(forward, INTAKE_SPEED, velocityUnits::pct); matchLoaderMotor.spin(forward, LOADER_SPEED, velocityUnits::pct);"
86
- },
87
- {
88
- "text":"Calibrate the inertial sensor.",
89
- "code":"inertialSensor.calibrate(); while(inertialSensor.isCalibrating()) { wait(100, msec); }"
90
- },
91
- {
92
- "text":"Set the drivetrain velocity to a specific value.",
93
- "code":"drivetrain.setVelocity(SPEED, velocityUnits::pct);"
94
- },
95
- {
96
- "text":"Set the flywheel velocity for a long-distance shot.",
97
- "code":"flywheelMotor.setVelocity(LONG_DISTANCE_SPEED, velocityUnits::rpm); flywheelMotor.spin(forward);"
98
- },
99
- {
100
- "text":"Set the flywheel velocity for a short-distance shot.",
101
- "code":"flywheelMotor.setVelocity(SHORT_DISTANCE_SPEED, velocityUnits::rpm); flywheelMotor.spin(forward);"
102
- }
103
- ]
104
- }