STEP 1: Use GitHub Desktop to get the Toronto Framework
STEP 2: Compile the Code
STEP 3: Update the VS Code formatter settings
Log onto GitHub.com and navigate to the TorontoCodingCollective GyroDrive project for 2020.
Click 'Clone or Download' and then 'Open in Desktop'. This will launch the GitHub Desktop and will import the project.
Connect to your robot using a USB cable, network cable, or wireless connection.
Set the team number:
Deploy the code:
NOTE: The code will not work unless the Speed Controllers and encoders are on the correct ports.
The TorontoCodingCollective framework uses formatting settings equivalent to the default eclipse settings for formatting Java code. The Formatter contains information on indentation rules.
Amazingly, the recommended way to set up VS Code formatting is to set up eclipse to the preferred settings, export the settings, and import them into VS Code (seriously, start eclipse and export your favourite formatter?). So the TorontoCodingCollective formatter is included in the GyroDrive project.
The Detect Indentation setting automatically converts spaces to tabs when opening a file. Since the TorontoCodingCollective style uses spaces instead of tabs, this setting causes the formatter and the file opening Detect Indentation to conflict. This is NOT something you want, so turn off the Detect Indentation: