Upgrades!

Arcade Drive

In this example code, we changed our drive function to only be on the left stick!

Modified drivetrain function for Arcade Drive

For clarity, the name of the function has been changed to arcadeDrive. In Blocks, this will automatically update it throughout our code once saved.

You can learn about arcade style of driving in Hello Robot!

Dual Gamepads

There are many ways to split robot control across two gamepads. We recommend testing different combinations with your team to decide what feels the most comfortable to you!

Our example here splits driving onto gamepad1 and all launcher controls to gamepad2. If you decide to split up controls differently, all that needs to be done is the preferred gamepad needs to be chosen from the dropdown menu.

Example of updating the gamepad for the feeder

Gamepad controls are found in the manualCoreHexAndServoControl, setFlywheelVelocity, and splitStickArcadeDrive functions. Below is how the launcher controls look once changed for this example.

Manual servo and Core Hex controls on gamepad2
Flywheel controls set to gamepad2 - manual and auto

Remember to make sure the check for the servo is updated to reflect the correct gamepad as well!

Servo check updated for gamepad2

Last updated

Was this helpful?