CTRE Phoenix 6 is the vendor library for Kraken x60 and Falcon 500 motors. FRC Academy’s Kraken lessons useDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Holden9607/FRC-Academy/llms.txt
Use this file to discover all available pages before exploring further.
TalonFX, DutyCycleOut, and Follower from this library to demonstrate the Phoenix 6 control request model — where motor outputs are sent as typed request objects rather than raw numeric calls, giving you a precise and extensible command pipeline from the start.
com.ctre.phoenix6.hardware.*
TalonFX
Full class:com.ctre.phoenix6.hardware.TalonFX
The primary motor controller class for CTRE Kraken x60 and Falcon 500 motors. Unlike simpler motor APIs, TalonFX uses a control-request pattern: you construct a request object (like DutyCycleOut) and pass it to setControl(), which lets you swap control modes at runtime without re-wiring your code.
Constructor
| Parameter | Type | Description |
|---|---|---|
deviceID | int | CAN ID of the TalonFX controller (e.g. 1) |
canbus | String | CAN bus name — use your CANivore’s name (e.g. "DINO") or "" for roboRIO CAN |
| Method | Returns | Description |
|---|---|---|
setControl(ControlRequest request) | void | Sends a typed control request (e.g. DutyCycleOut, Follower) to the controller |
getDeviceID() | int | Returns the CAN ID of this TalonFX |
setNeutralMode(NeutralModeValue mode) | void | Sets brake or coast behavior when output is zero |
com.ctre.phoenix6.controls.*
DutyCycleOut
Full class:com.ctre.phoenix6.controls.DutyCycleOut
A direct output control request that sets a TalonFX’s output as a simple duty-cycle percentage. This is the most straightforward control mode and the one used throughout FRC Academy’s introductory Kraken lessons.
Constructor
| Parameter | Type | Description |
|---|---|---|
output | double | Duty cycle value: -1.0 = full reverse, 0.0 = stop, 1.0 = full forward |
Follower
Full class:com.ctre.phoenix6.controls.Follower
A control request that causes one TalonFX to continuously mirror another TalonFX (the master/leader). Once set, the follower automatically tracks the leader’s output — you only need to command the leader motor in your teleop code.
Constructor
| Parameter | Type | Description |
|---|---|---|
masterID | int | The device ID of the leader TalonFX to mirror |
opposeLeaderDirection | boolean | true if the follower should spin opposite to the leader (e.g. physically reversed motor) |
MotorOutputConfigs, so both followers use false for opposeLeaderDirection:
The bus name
"DINO" is specific to FRC Team 9607’s CANivore. Replace it with your own team’s CANivore name, or use an empty string "" to target the default roboRIO CAN bus.Related Pages
REV Robotics
SparkMax, SparkMaxConfig, and MotorType for SPARK MAX and NEO brushless motors.
Kraken Motor Guide
Wiring, CAN configuration, and FRC Academy lesson walkthrough for Kraken x60 motors.