61 this->CANBusName = newCANBusName;
75 this->Pigeon2Id = newPigeon2Id;
90 #if __cpp_lib_optional >= 202106L || (defined(__APPLE__) && __cplusplus >= 202002L)
95 this->Pigeon2Configs = newPigeon2Configs;
Definition StatusCodes.h:18
Common constants for a swerve drivetrain.
Definition SwerveDrivetrainConstants.hpp:19
int Pigeon2Id
CAN ID of the Pigeon2 on the drivetrain.
Definition SwerveDrivetrainConstants.hpp:36
SwerveDrivetrainConstants & WithPigeon2Configs(const std::optional< configs::Pigeon2Configuration > &newPigeon2Configs)
Modifies the Pigeon2Configs parameter and returns itself.
Definition SwerveDrivetrainConstants.hpp:93
std::string_view CANBusName
Name of the CAN bus the swerve drive is on.
Definition SwerveDrivetrainConstants.hpp:32
constexpr SwerveDrivetrainConstants()=default
std::optional< configs::Pigeon2Configuration > Pigeon2Configs
The configuration object to apply to the Pigeon2.
Definition SwerveDrivetrainConstants.hpp:43
constexpr SwerveDrivetrainConstants & WithCANBusName(std::string_view newCANBusName)
Modifies the CANBusName parameter and returns itself.
Definition SwerveDrivetrainConstants.hpp:59
constexpr SwerveDrivetrainConstants & WithPigeon2Id(int newPigeon2Id)
Modifies the Pigeon2Id parameter and returns itself.
Definition SwerveDrivetrainConstants.hpp:73