Common constants for a swerve drivetrain.
More...
#include <ctre/phoenix6/swerve/SwerveDrivetrainConstants.hpp>
Common constants for a swerve drivetrain.
◆ SwerveDrivetrainConstants()
| ctre::phoenix6::swerve::SwerveDrivetrainConstants::SwerveDrivetrainConstants |
( |
| ) |
|
|
constexprdefault |
◆ WithNetwork()
Modifies the Network parameter and returns itself.
The network the swerve drive is on. Note that all devices must be on the same CAN bus.
- Parameters
-
| newNetwork | Parameter to modify |
- Returns
- this object
◆ WithPigeon2Configs()
Modifies the Pigeon2Configs parameter and returns itself.
The configuration object to apply to the Pigeon2. This defaults to null. If this remains null, then the Pigeon2 will not be configured (and whatever configs are on it remain on it). If this is not null, the Pigeon2 will be overwritten with these configs.
- Parameters
-
| newPigeon2Configs | Parameter to modify |
- Returns
- this object
◆ WithPigeon2Id()
Modifies the Pigeon2Id parameter and returns itself.
CAN ID of the Pigeon2 on the drivetrain.
- Parameters
-
| newPigeon2Id | Parameter to modify |
- Returns
- this object
◆ Network
| CANBus ctre::phoenix6::swerve::SwerveDrivetrainConstants::Network = CANBus{} |
The network the swerve drive is on.
Note that all devices must be on the same CAN bus.
◆ Pigeon2Configs
The configuration object to apply to the Pigeon2.
This defaults to null. If this remains null, then the Pigeon2 will not be configured (and whatever configs are on it remain on it). If this is not null, the Pigeon2 will be overwritten with these configs.
◆ Pigeon2Id
| int ctre::phoenix6::swerve::SwerveDrivetrainConstants::Pigeon2Id = 0 |
CAN ID of the Pigeon2 on the drivetrain.
The documentation for this struct was generated from the following file: