-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlionOpControl.cpp
More file actions
32 lines (27 loc) · 813 Bytes
/
lionOpControl.cpp
File metadata and controls
32 lines (27 loc) · 813 Bytes
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
#include "lmain.h"
/**
* Runs the operator control code. This function will be started in its own task
* with the default priority and stack size whenever the robot is enabled via
* the Field Management System or the VEX Competition Switch in the operator
* control mode.
*
* If no competition control is connected, this function will run immediately
* following initialize().
*
* If the robot is disabled or communications is lost, the
* operator control task will be stopped. Re-enabling the robot will restart the
* task, not resume it from where it left off.
*/
void opcontrol() {
//move(1000);
std::string thing = "megapeen";
pros::lcd::set_text(1, thing);
while (true) {
drive();
runCatapult();
flipFlip();
roll();
lift();
pros::delay(2);
}
}