Advanced Robotics Programming: Difference between revisions

From TrcWiki
Jump to navigation Jump to search
Line 6: Line 6:
* [[FTC Programming Software Installation]]
* [[FTC Programming Software Installation]]


== TeleOp Driving a Robot Right Out-Of-The-Box ==
== TeleOp Driving Your Robot Right Out-Of-The-Box ==
At this point, you should have installed all necessary software for developing robot code and also clone the robot template code from the GitHub repo. Since the template already contains basic code for three different kinds of robot base (Differential Drive, Mecanum Drive and Swerve Drive), it takes very few modifications to make it work with any of the three types of robots.
At this point, you should have installed all necessary software for developing robot code and also clone the robot template code from the GitHub repo. Since the template already contains basic code for three different kinds of robot base (Differential Drive, Mecanum Drive and Swerve Drive), it takes very few modifications to make it work with any of the three types of robots.



Revision as of 22:48, 26 June 2024

The Advanced Robotics Programming Class focuses on teaching our Titan Robotics Framework (TRC Library). The target audience of this Programming Class is for students who already have basic knowledge of the Java language. The class is primarily designed for FRC although it is also applicable for FTC because our TRC Library is shared between FTC and FRC. After finishing this class, you should be able to write code for both FTC and FRC robots with some platform specific differences.

Programming Software Installation

Before coming to the programming class, you need to install the required software on your laptop. Please do this at home before coming to class. We do not want to dedicate class time to install software because they are time consuming and require downloading gigabytes of data from the Internet which would overwhelm our Internet bandwidth if all students were downloading at the same time. Therefore, please make sure you finish these tasks at home before coming to class.

TeleOp Driving Your Robot Right Out-Of-The-Box

At this point, you should have installed all necessary software for developing robot code and also clone the robot template code from the GitHub repo. Since the template already contains basic code for three different kinds of robot base (Differential Drive, Mecanum Drive and Swerve Drive), it takes very few modifications to make it work with any of the three types of robots.

Creating Subsystems

  • Motor Actuators
    • Elevator
    • Slide
    • Arm
    • Turret
  • Intake
  • Conveyor
  • Shooter
  • Grabber

Connecting Subsystems to the Robot

  • Instantiate the subsystems
  • TeleOp control of the subsystems
  • Display subsystem status

Writing Autonomous Code