Back to Browse

MARS Summer Java Training #1: Java WPILib Basics & Moving a Motor

861 views
May 27, 2024
36:28

View the 2024 MARS Summer Java playlist here! https://www.youtube.com/watch?v=eIrMbAQSU34&list=PLbPlQ6spj4HUZXX1iZorsoqfqVcE7wHxp&pp=gAQBiAQB WPILib VS Code can be downloaded from here: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html The CTRE offline library can be downloaded from here: https://github.com/CrossTheRoadElec/Phoenix-Releases/releases/download/v24.3.0/Phoenix-Offline_v24.3.0.exe Phoenix Tuner X is installed during the CTRE library installation. The code for this training is here: https://github.com/MARSProgramming/2024Training/tree/main/Training%20%231%20Code-%20Moving%20A%20Motor 0:00 Intro 0:39 Summer Training Plan 1:19 Installation Requirements 1:36 Goal 2:17 Making a Robot Project 6:02 Structure of a Robot Project 8:22 Timed Robot Functions 11:54 Adding CTRE Libraries 14:28 Creating a TalonFX Variable 17:08 Finding Motor ID with Phoenix Tuner X 19:45 Using set() to Move a Motor 22:47 Deploying Code to the RoboRIO 24:51 Motor Moves! 25:18 Adding XboxController 29:22 Getting Controller Input 31:43 Debugging with System.out.println() 33:14 Moving a Motor with Controller 34:24 Importance of Documentation 35:04 Join the Slack! 36:00 Challenge

Download

1 formats

Video Formats

360pmp468.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

MARS Summer Java Training #1: Java WPILib Basics & Moving a Motor | NatokHD