-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForward.c
More file actions
21 lines (18 loc) · 752 Bytes
/
Forward.c
File metadata and controls
21 lines (18 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma config(Hubs, S1, HTMotor, HTServo, none, none)
#pragma config(Motor, mtr_S1_C1_1, frontRight, tmotorTetrix, openLoop, reversed, encoder)
#pragma config(Motor, mtr_S1_C1_2, frontLeft, tmotorTetrix, openLoop, encoder)
#pragma config(Motor, mtr_S1_C1_1, backRight, tmotorTetrix, openLoop, reversed, encoder)
#pragma config(Motor, mtr_S1_C1_2, backLeft, tmotorTetrix, openLoop, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
motor[frontRight] = 100;
motor[frontLeft] = 100;
motor[backRight] = 100;
motor[backLeft] = 100;
wait1Msec(4000);
motor[frontRight] = 0;
motor[frontLeft] = 0;
motor[backRight] = 0;
motor[backLeft] = 0;
}