Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma config(Sensor, dgtl1, down, sensorTouch)
- #pragma config(Sensor, dgtl2, up, sensorTouch)
- #pragma config(Motor, port2, armMotor, tmotorVex393_MC29, openLoop)
- //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
- task main()
- {
- while(1==1)
- {
- if(sensorvalue[up]==1)
- {
- motor(armMotor)=40;
- }
- else if(sensorvalue[down]==1)
- {
- motor(armMotor}=40;
- }
- else
- {
- motor(armMotor)=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement