-
-
Save csfsr/528a6abb08525e2657a5adbb3a521a7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma config(Sensor, dgtl1, up, sensorTouch) | |
#pragma config(Sensor, dgtl2, down, sensorTouch) | |
#pragma config(Sensor, dgtl3, upLimit, sensorTouch) | |
#pragma config(Sensor, dgtl4, downLimit, sensorTouch) | |
#pragma config(Motor, port6, armMotor, tmotorVex393_MC29, openLoop, encoderPort, None) | |
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// | |
task main() | |
{ | |
//Loop Forever | |
while(true) | |
{ | |
if(SensorValue[up] == 1 && SensorValue[upLimit] == 0) | |
{ | |
motor[armMotor] = 40; | |
} | |
else if(SensorValue[down] == 1 && SensorValue[downLimit] == 0) | |
{ | |
motor[armMotor] = -40; | |
} | |
else | |
{ | |
motor[armMotor] = 0; | |
} | |
}the problem with bulgaria | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is another problem just any person can go online a post politcs