RobotC code for Fling and touch sensor

What would the graphical code be for RobotC to control the throwing arm on the Fling robot while using the touch sensor.

I’d like to program Fling to run the arm motor until the touch sensor is pressed, then stop the arm motor. Thanks

I would highly recommend using VEXcode IQ for programming an IQ robot, as lots of resources are available for it. Including example projects in the application. Here are some tips for programming this season’s Herobot Fling. Since both are block based, you should be able to find corresponding code blocks to copy to make a working project in RobotC.

1 Like