Autonomous in Driver Control

  1. 9 months ago

    Team3211H

    9 Sep 2017 Sartell, MN 3211H

    Hello Vex Community,
    I have a question regarding easyC and RobotC progamming.
    Is it possible to, during driver control, program a button on the joystick to be pressed and, like in autonomous, a series of tasks be carried out by the robot?
    Can this be accomplished in either easyC or RobotC?
    Thanks for any feedback

  2. puzzler7

    9 Sep 2017 Peoria, Arizona 8452A

    Yes. Simply write the code as you would in autonomous, setting motor values without reading the joystick.

  3. Deleted 9 months ago by P@@wan_$agar
  4. @P@@wan_$agar <R20> During the Autonomous Period, human operators will not be allowed to use their hand-held
    controllers. As such, teams are responsible for programming their robot with custom software if they
    want to perform in Autonomous mode.

    This does not relate to the question at hand.

    @Team3211H asked if an autonomous-like routine can be programmed to run during driver control upon the press of a button, completely legal and unrelated to the autonomous period and its rules.

  5. So just to build on what @puzzler7, stated, it would be something like this:

    if(vexRT[Btn5U] == 1) {
    //code to be run
    }
  6. 1961Uranium

    10 Sep 2017 Georgia, United States Blitz Alliance 1961U

    @Team3211H Hello Vex Community,
    I have a question regarding easyC and RobotC progamming.
    Is it possible to, during driver control, program a button on the joystick to be pressed and, like in autonomous, a series of tasks be carried out by the robot?
    Can this be accomplished in either easyC or RobotC?
    Thanks for any feedback

    Don't make too many things autonomous, as there are a lot of factors that could mess you up. Talking from experience :P

  7. Team3211H

    10 Sep 2017 Sartell, MN 3211H

    @eagles1961U Don't make too many things autonomous, as there are a lot of factors that could mess you up. Talking from experience :P

    Our plan is to make a couple simple movements be as fast as possible by preprogramming actions into buttons.
    Thanks for all the help everyone, it is very much appreciated.

  8. Aponthis

    10 Sep 2017 Gilbert, Arizona Formerly 127A, 127C, 127X

    @eagles1961U Don't make too many things autonomous, as there are a lot of factors that could mess you up. Talking from experience :P

    Or at least have failsafes. ;)

  9. TriDragon

    10 Sep 2017 Tampa, FL 6430 - Mentor

    Our 6430(A) team had number of helpful automated routines for last year's starstruck. For instance, one would determine the load in the claw as it went to throw so that it would release the load at an optimal angle for distance. That particular team basically used autonomous routines as a "2nd" driver.

 

or Sign Up to reply!