Hello. My team’s robot has 2 Spark Maxes using CAN. When I try to add them into my file, I tried three things.
- CANSparkMax
rev::CANSparkMax m_climberMotor1{ClimberConstants::kClimberMotor1Port, rev::CANSparkMax::MotorType::kBrushless};
- CANSparkLowLevel
rev::CANSparkMax m_climberMotor1{ClimberConstants::kClimberMotor1Port, rev::CANSparkLowLevel::MotorType::kBrushless};
- CANSparkMaxLowLevel
rev::CANSparkMax m_climberMotor1{ClimberConstants::kClimberMotor1Port, rev::CANSparkMaxLowLevel::MotorType::kBrushless};
but all of them return the same error: spark error - Pastebin.com
The vendor libraries I am using is REVLib 2024.2.0, CTRE-Phoenix(v5) 5.3.1.0 + 23.2.2, and WPILib-New-Commands 1.0.0
If anyone could help it would be appreciated. My team’s code can be found here and the file with the sparks is 2024/src/main/include/subsystems/Climber.h
Thanks