So we need to program our whole robot by Saturday, which should not be an issue, but our dedicated programmer cannot possibly program during off-time due to homework and stuff.
Now I can code, but I do not have RobotC on my computer (need VexRobotics account, might need to pay and such), and I will not be able to bring home my team’s programming computer.
Anyways, now that we have that covered, I would very much appreciate you guys being able to guide me through this so that on Thursday(our next robotics meet) I do not show up, copy what I have done onto RobotC, and find a plethora of crazy error messages popping up, we are all rushing to fix it all by Saturday, and our driver gets no time to practice before our best chance at state. So before I move any further with this jerry-coding, could you guys check over it (maybe even copy it onto RobotC and find the inevitable errors before I have too.)
#pragma config(Motor, port1, RIntake, tmotorVex393_HBridge, openLoop, reversed)
#pragma config(Motor, port2, BR, tmotorVex393HighSpeed_MC29, openLoop, reversed, driveLeft)
#pragma config(Motor, port3, FR, tmotorVex393HighSpeed_MC29, openLoop, reversed, driveRight)
#pragma config(Motor, port4, LL, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port5, Manipulator, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port6, Puncher, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port7, RL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port8, FL, tmotorVex393HighSpeed_MC29, openLoop, driveRight)
#pragma config(Motor, port9, BL, tmotorVex393HighSpeed_MC29, openLoop, driveLeft)
#pragma config(Motor, port10, LIntake, tmotorVex393_HBridge, openLoop)
//#pragma config(Sensor, port1, MPot, Potentiometer)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
while (true){
motor[FR] = (vexRT[Ch2]);
motor[BR] = (vexRT[Ch2]);
motor[FL] = (vexRT[Ch3]);
motor[BL] = (vexRT[Ch3]);
if(vexRT[6d] == 1){
motor[RL] = 127;
motor[LL] = 127;
}
else
if(vexRT[6u] == 1){
motor[RL] = -127;
motor[LL] = -127;
}
else
motor[RL] = 0;
motor[LL] = 0;
if(vexRT ] == 1){
if(SensorValue[MPot] == 0-90){
motor[Manipulator] = 40;
}
until
SensorValue[MPot] == 175-185;
else
if(SensorValue[MPot] == 175-185){
motor[Manipulator] = -40;
until
SensorValue[MPot] == 0-5;
else
motor[Manipulator] = 0;
}}
}
};
Asks question if needed, I will respond in due time. Thanks!