pi-this

Pi this, pi that @ pi-this.github.io

Home definitions private profile profile settings coding games art

Java FTC

programming a FTC robot using Java

What All Code Needs

Every Java program in FTC is writen with the same layout, lets talk about this layout

Within the Java FTC layout there are things that must be added to your code these things include:

  1. declaring the package name
  2. example
  3. importing the nessasary modules
  4. example
  5. setting the program to TeleOp or Autonomous
  6. example
  7. creating all the nessasary public classes and functions
  8. example

Important Things To Know

Here I will list some important Java FTC coding tips
  • sending a message to the driver's station
  • example
  • setting motor direction
  • example
  • run using encoders
  • example
  • setting motors to a hardware map
  • example