V5 Programming (C++)

  1. 3 months ago

    So our key programmer left and now I am taking the task to learn how to code our robot using C++. The main issue is I don't know how to program controller inputs. Anybody mind telling me how to do this? (Sorry if this sounds dumb.)

  2. eggplant

    Sep 12 Wisconsin 9144B

    I recommend checking out the API Reference

  3. calvc01

    Sep 12 Event Partner, V5 Beta Tester Colchester, United Kingdom
    Edited 3 months ago by calvc01

    Also, if you go to Example Projects (in VCS) and scroll down to Controller, you can find examples that will show you basic Clawbot programs. These cover button presses and analog joystick inputs.

  4. Adam T

    Sep 12 Event Partner Jenison, MI Jension Robotics

    Try this site, it has a RobotC to VCS C++ example translated from one to the other.
    https://education.vex.com/parent-wrapper.php?id=robotc-vcs

  5. Barin

    Sep 12 Arizona

    @ChampionEevee So our key programmer left and now I am taking the task to learn how to code our robot using C++. The main issue is I don't know how to program controller inputs. Anybody mind telling me how to do this? (Sorry if this sounds dumb.)

    Look at the programming units of STEM Labs:

    https://education.vex.com/eduvex/edr/stem-labs/

  6. 8 weeks ago

    Im having issues with autonomous programming in c++, mainly there is an error when I try to put both Competition.autonomous and Competition.drivercontrol. plz help

  7. Barin

    Oct 18 Arizona

    @Mr.MoNkEy Im having issues with autonomous programming in c++, mainly there is an error when I try to put both Competition.autonomous and Competition.drivercontrol. plz help

    Make a new thread, first of all.

    In that new thread, post your code, state which language you're using, and include a screenshot of the error.

 

or Sign Up to reply!