Learn FRC Coding Basics and Build a Drivetrain for Robotics

lesson 3 frc coding basics n.w
1 / 10
Embed
Share

"Explore lessons on FRC coding environment, building drivetrains, software components, and utilizing libraries. Install IDE, create projects, and work with Java code in a simplified robot architecture."

  • Robotics
  • Coding
  • Drivetrain
  • Software Components
  • IDE

Uploaded on | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Lesson 3 - FRC Coding Basics 10/22/2024

  2. Build a Drivetrain - Lessons Content Lesson 1 - Drivetrains & OnShape Wheels Motors & Controllers Drivetrains CAD Tools (Onshape & Libraries) CAD a Square Bracket Make an Assembly Lesson 4 - Wiring & 2024 Robot Code Wiring all Components 2024 Robot Code Lesson 5 - Strategy & Scouting Lesson 6 - Tools & Building Safety Power Tools & Cutting jigs Assembly Lesson 2 - CAD a Drivetrain (3 weeks) OnShape & Libraries Make an Assembly Lesson 3 - FRC Coding Environment Architecture VSCode & Libraries Example Code Lesson 7 - Advanced Java Coding Examples on GitHub Sources: https://robotics.nasa.gov/downloads/nasarap-rdc-v101-compressed.pdf

  3. Content Overall Architecture Hardware / Software Components Overview Software Stack Install the IDE Make Sample Code Browse through Code

  4. Overall Architecture (Simplified) Robot Code FRC Utilities Vendor Libraries JAVA libraries wpilib roboRio (Main Controller) CAN Bus Power Module Controlle r Sensor Controlle r Sensor Controlle r Sensor M M M 12V

  5. What are we using? Legend Robot Code Team8626 Utilities (Motor Controllers) (Motor Controllers) Button Controller (Swerve Drive) Phoenix/CTRE (Trajectories) Photonvision RevRobotics Pathplanner AllianceFlip Swerve Util Vendor Libraries YAGSL wpilib roboRio (Main Controller)

  6. Installing IDE Full documentation here: https://docs.wpilib.org/ Create a Github Account http://github.com VSCode and FRC libraries https://github.com/wpilibsuite/allwpilib/releases/tag/v2024.3.2 PC/Mac/Linux Computers Only

  7. Generate a sample project Launch the WPILIB Command Palette Type new , Select Create a new Project Fill in the textboxes Example/java/ tank drive

  8. Lets look at the code Where does it start? How are things running? teleopPeriodic() -> called by the scheduler every 20ms Change the controller type to CANSparkMax Install the RevRobotics Library: https://docs.wpilib.org/en/stable/docs/software/vscode-overview/3rd-party-libraries.html Change left an right motors, make the motor brushed. Build and simulate code

  9. Lets look at Darts code Clone Repository: https://github.com/team8626/team8626_2024.git Where does it start? How are things running?

  10. End

Related


More Related Content