All pages
Powered by GitBook
1 of 1

Loading...

Upgrades

Arcade Drive

REVStarterBotTeleOpArcade.blk
22KB
Open

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

REVStarterBotTeleOpMultiGamepads.blk
22KB
Open

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.

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

Upgrading to a (REV-45-2470) allows for new kinds of movement, giving the robot the ability to strafe side-to-side across the field.

For Mecanum Drive each wheel has an individual motor!

The following additional parts are needed:

  • - QTY 2

  • - QTY 2

  • - QTY 4

How a Mecanum Drivetrain is programmed largely depends on the driver's preference for how the gamepad is configured.

In our provided example, the left joystick controls forward/back and strafe then the right joystick controls turning. This code is based on the sample provided by FIRST in Blocks (BasicOmniOpMode).

When adding an Expansion Hub, you will need to create a new configuration file.

Port Type
Hub
Port
Device Type
Name
- QTY 1 (set of 4)
  • M3 x 6mm HexCap Screws 50 Pack - QTY 1

  • Expansion Hub (QTY 1) OR SPARKmini Motor Controller (QTY 2)

    • If using the SPARKmini Motor Controllers a XT30 Power Distribution Block (QTY 1) is recommended

  • Motor

    Expansion

    1

    REV Robotics Ultraplanetary HD Hex Motor

    backLeft

    Motor

    Expansion

    2

    REV Robotics Ultraplanetary HD Hex Motor

    frontRight

    Motor

    Expansion

    3

    REV Robotics Ultraplanetary HD Hex Motor

    backRight

    Motor

    Control

    2

    REV Robotics Core Hex Motor

    coreHex

    Motor

    Control

    3

    REV Robotics Ultraplanetary HD Hex Motor

    flywheel

    Servo

    Control

    0

    Continuous Servo

    servo

    Motor

    Expansion

    0

    REV Robotics Ultraplanetary HD Hex Motor

    frontLeft

    Mecanum Drive

    Upgrading from the FTC Starter Kit V3.1 to Mecanum Drivetrain V2:

    To upgrade this year's starter bot to mecanum, you'll need to replace the two 15mm Plastic 90 Degree Brackets with two 15mm Plastic Inside Corner Brackets. These brackets secure the rear vertical extrusion to the rear C-channel of the drivetrain. Pre-loading the corner brackets with T-Slot Screws would be recommended.

    Example Mecanum Drive Program

    Mecanum Demo Blocks Code:

    Mecanum Configuration - Control Hub and Expansion Hub

    A full tutorial on programming mecanum is available here! Your team may need to do some testing to account for any changes in configuration or building of your mecanum drivetrain.

    Mecanum Drivetrain
    15mm Plastic Inside Corner Bracket
    UltraPlanetary Gearbox Kit & HD Hex Motor
    Ultra 90 Degree Gearbox
    Full build instructions can be found here!
    Manual servo and Core Hex controls on gamepad2
    Flywheel controls set to gamepad2 - manual and auto
    Servo check updated for gamepad2
    REV's Mecanum Drivetrain Kit V2
    REVStarterBotTeleOpMecanum.blk
    29KB
    Open
    75mm Mecanum Wheel Set