// <return type> <function name> (<parameters>)
int do_something(int number) {
return number; // return value
}
void arcade_drive(int forward, int rotation) {
left_motor.moveVelocity(forward + rotation);
right_motor.moveVelocity(forward - rotation);
}
void opcontrol() {
Controller master(ControllerId::master);
Motor left_motor(1);
Motor right_motor(-2);
while (true) {
arcade_drive(master.getAnalog(ControllerAnalog::leftY), master.getAnalog(ControllerAnalog::rightX));
pros::delay(10);
}
}