UNOFFICIAL Response to "Triggering Autonomous Mode"

  1. yesterday

    Riley

    yesterday United Kingdom 3116C
    Edited yesterday by Riley

    For your autonomous code to work, you need to have a competition switch, which can be purchased here: http://www.vexrobotics.com/vexedr/products/competition-products/276-2335.html

    Alternatively, if you have a wireless programming kit (available to purchase here: http://www.vexrobotics.com/vexedr/products/accessories/electronics/276-2186.html )

    If you use the wireless programming kit, then you should connect it correctly then go to Robot >> Advanced Tools >> VEXNet Joystick Viewer on your RobotC software. This has a built-in competition switch

    @451stroker

  2. NightsRosario

    yesterday Maryland 3922A
    Edited yesterday by NightsRosario

    Adding on, there is no current way (to my knowledge) to trigger autonomous when you push a button if it is in the autonomous task. However, if you want to test your auton, you could just put an if statement that activates your auton when a button is pushed in user control. It should (theoretically) work.

  3. Andrew Strauss

    yesterday Ontario, Canada 5225A

    You could also set a boolean flag to true, start the autonomous task from driver control which would know to know to kill the user control task when auto starts and start usercontrol when auto ends based on this flag.

 

or Sign Up to reply!