CAN Spark Max MotorType Issue

Hello. My team’s robot has 2 Spark Maxes using CAN. When I try to add them into my file, I tried three things.

  1. CANSparkMax rev::CANSparkMax m_climberMotor1{ClimberConstants::kClimberMotor1Port, rev::CANSparkMax::MotorType::kBrushless};
  2. CANSparkLowLevel rev::CANSparkMax m_climberMotor1{ClimberConstants::kClimberMotor1Port, rev::CANSparkLowLevel::MotorType::kBrushless};
  3. 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

Your robot project is WPILIb 2023, but you’re using 2024 vendor libraries. You need to install WPILib 2024 and import your project

1 Like