Difference between revisions of "FTC Just Enough Android Studio 20220223"

From wikidb
Jump to: navigation, search
(References)
(Download a project from GitHub)
Line 8: Line 8:
  
 
* Set up a GitHub account
 
* Set up a GitHub account
 +
 +
= Add an Op Mode =
 +
 +
* click on <tt>org.firstinspires.ftc.teamcode</tt> folder which is itself in the <tt>TeamCode/java</tt> in the Project view
 +
** File menu
 +
*** New item
 +
**** Java Class - at the top of the list
 +
***** Type in the class name <tt>TestMotorEpp</tt> select <tt>Class Name</tt>
 +
****** answer the GitHub question
 +
****** find the class in the TeamCode of the project and enter your code
 +
 +
* Paste the downloaded code into the newprograms
 +
= Run =
 +
 +
Pressing '''Run''' (right pointing green triangle) and be excited when it works
  
 
= The Configuration File =
 
= The Configuration File =

Revision as of 13:05, 24 February 2022

Strategy

  • Assure that the training robots are configured correctly for the tutorials
  • Introduce a Happy Path to starting a project. This is not by any means a complete tutorial.
  • Best Known Methods (BKM) are critical and are guided by the individual FTC teams. BKM will be integrated into my material but core Java skills will be the focus.

Download a project from GitHub

  • Set up a GitHub account

Add an Op Mode

  • click on org.firstinspires.ftc.teamcode folder which is itself in the TeamCode/java in the Project view
    • File menu
      • New item
        • Java Class - at the top of the list
          • Type in the class name TestMotorEpp select Class Name
            • answer the GitHub question
            • find the class in the TeamCode of the project and enter your code
  • Paste the downloaded code into the newprograms

Run

Pressing Run (right pointing green triangle) and be excited when it works

The Configuration File

Connection Details

Creating a Configuation File Using the Driver Station

  • Section 9.4

Build Project

Modify and Build

References