Telop Robot C saving as autonomous

We are writing a teleop program using Robot C Graphical. We have been doing this all season. This weekend when we download the teleop to the brain it saves it as an autonomous program under telop on the brain. s soon as I confirm on the brain under teleop the robot begins to move as if autonomous. Telop is checked on the brain and in Robot C. I have tired deleting all programs off the brain and reinstalling nothing seems to work. We have a tournament this weekend and I’m needing to do additional programming, please advise.

Can you post your code? if you are selecting it under the telep menu it will run as a telop program even if it’s configured otherwise.

What is the purpose of the last IF statement? It’ll run your arm motors pretty much every time as soon as the program starts and all the time unless you hild the joystick off centre.

I would comment out the last two if statements and see if that helps. It’s going to be very hard to make sure that channels a & b are ever exactly 1 or 0. It gives an analog number between -100 and 100.

OK Thanks! Is there a way to set a button in teleop to move an arm motor to a specific position when pushed up and then back to another specific position with another button is pushed? I need the two arm motors to move together as well.

Here is what my daughter uses for her team. She uses BtnLUp and BtnLDown for manual control of the arm and BtnRUp and BtnRDown for automated control of the arm. A “Manual” variable is used to tell whether the last arm control was using a manual button or not. This is needed in line 14 to determine whether or not to stop the motors. The automated control uses setMotorTarget, so stopping the motors when in automated mode would defeat that purpose. The first screenshot show includes the manual arm control and the second shows the automated arm control.

Hope this is helpful.





Here is what my daughter uses for her team. She uses BtnLUp and BtnLDown for manual control of the arm and BtnRUp and BtnRDown for automated control of the arm. A “Manual” variable is used to tell whether the last arm control was using a manual button or not. This is needed in line 14 to determine whether or not to stop the motors. The automated control uses setMotorTarget, so stopping the motors when in automated mode would defeat that purpose. The first screenshot show includes the manual arm control and the second shows the automated arm control.

Hope this is helpful.





Many thanks! WE will try this tonight.

Where can I find the MANUAL statement?

Manual is a variable. She used a “Variable [Number]” block from the Variable section.