Announcement

Collapse
No announcement yet.

Telop Robot C saving as autonomous

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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.

    Comment


    • #3

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment


          • #6
            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.

            Comment


            • #7
              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.

              Click image for larger version

Name:	Program1.PNG
Views:	2
Size:	73.0 KB
ID:	1687

              Click image for larger version

Name:	Program2.PNG
Views:	2
Size:	63.5 KB
ID:	1688

              Comment


              • #8
                Many thanks! WE will try this tonight.

                Comment


                • #9
                  Where can I find the MANUAL statement?

                  Comment


                  • #10
                    Originally posted by mseward View Post
                    Where can I find the MANUAL statement?
                    Manual is a variable. She used a "Variable [Number]" block from the Variable section.

                    Comment

                    Working...
                    X