Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Mechanisms

Samir-Rashid edited this page Aug 24, 2019 · 1 revision

Mechanisms: the core of all extended functionality

Once you get the driving functional and reliable on a "mule" (a robot corpse), you should begin planning the coding for the mechanisms. The mechanisms are your way to make the robot output things, or to get data from the robot. However, do not implement any logic in these files as they are meant to be used by every single other program, autonomous or teleop, and small changes could ruin everyone else's work.

What do I need to do to add mechanism functionality?

Generally, it is pretty easy; you just have to add the get() and set() methods for each of your physical mechanisms. This should allow you to start testing programs. The most necessary function will be the method that sets the power of the drive motors.

Clone this wiki locally