Skip to content

Instantly share code, notes, and snippets.

@csfsr
Forked from liamariemb/TorqueBot Code
Last active November 4, 2016 01:27
Show Gist options
  • Save csfsr/528a6abb08525e2657a5adbb3a521a7e to your computer and use it in GitHub Desktop.
Save csfsr/528a6abb08525e2657a5adbb3a521a7e to your computer and use it in GitHub Desktop.
#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
}
@csfsr
Copy link
Author

csfsr commented Nov 4, 2016

this is another problem just any person can go online a post politcs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment