Basic Example Code for VCS

Hey All,

I made a basic example VCS (C++ Pro) code with a good amount of comments to help get people started. Nothing super advanced but definitely helps people who are new get some place to start. If it goes well then I can make a few more advanced ones that deal with other programming topics like task usage or different methods to approach controlling your robot with.

For the sake of example this code will have:

  • 4 motor drive
  • 4 motor flywheel
  • Shows how to declare motors/sensors
  • Shows how to make a drive forward and turn function
  • Shows how to have toggling buttons for Flywheel speed
  • Shows how to print to controller to see motor/sensor values
    -Explains a little of .pressed vs .pressing

Best of Luck,
Afnan
LearningVCS.vex (22.5 KB)