This is kinda a shot in the dark but does the old robot’s roboRIO have the old 2023 firmware? If you’re using the up-to-date Driver Station and WPILib with out-of-date roboRIO firmware, that may be causing an issue. I seem to remember that causing more trouble than it should have for us a while back.
The supplied phased action failed with an exception.
A problem occurred configuring root project ‘2023-ChargedUp-Quicksilver’.
Build file ‘C:\Users\Robotics\Documents\GitHub\2023 Robots\2023-ChargedUp-Quicksilver\build.gradle’ line: 3
Plugin [id: ‘edu.wpi.first.GradleRIO’, version: ‘2023.3.1’] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in ‘org.gradle’ namespace)
Plugin Repositories (could not resolve plugin artifact ‘edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2023.3.1’)
Searched in the following repositories:
MavenLocal(file:/C:/Users/Robotics/.m2/repository)
Gradle Central Plugin Repository
frcHome(file:/C:/Users/Public/wpilib/2023/maven/)
Plugin [id: ‘edu.wpi.first.GradleRIO’, version: ‘2023.3.1’] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in ‘org.gradle’ namespace)
Plugin Repositories (could not resolve plugin artifact ‘edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2023.3.1’)
Searched in the following repositories:
MavenLocal(file:/C:/Users/Robotics/.m2/repository)
Gradle Central Plugin Repository
Im lost and kind of stressed so sorry if I am missing anthing
I was going to try to reinstall the 2023 version of Wpilib and redo the libraries and try to see if that worked, but I will try that at my lunch and then I am going to stay affter school to today for a bit
edit- (did not end up doing this I am going to update to 2024 wpilib)
so I have been messing around with it and the only thing I can not find out is this
public Elevator() {
forwardLimit.enableLimitSwitch(false);
ReverseLimit.enableLimitSwitch(false);
//also the setIdleMode can also not be resolved
elevator.setIdleMode(IdleMode.kBrake);
elevator.setInverted(false);
// the only thing popping up as an error is the SoftLimitDirection can not be resolved
elevator.enableSoftLimit(SoftLimitDirection.kForward, true);
elevator.enableSoftLimit(SoftLimitDirection.kReverse, true);
elevator.setSoftLimit(SoftLimitDirection.kForward, 88);
elevator.setSoftLimit(SoftLimitDirection.kReverse, 0);
// elevatorA.burnFlash();
elevator.burnFlash();
// elevator.setStatusFramePeriod();
controller.setTolerance(3);
profiledController.setTolerance(3);
}
these are all my imports
package frc.robot.subsystems;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkMax.IdleMode; <---------
import com.revrobotics.CANSparkMax.SoftLimitDirection; <--------- these 2 are the ones imports that are giving me errors
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
import com.revrobotics.RelativeEncoder;
import com.revrobotics.SparkMaxLimitSwitch;
import edu.wpi.first.math.MathUtil;
import edu.wpi.first.math.controller.ElevatorFeedforward;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.math.controller.ProfiledPIDController;
import edu.wpi.first.math.trajectory.TrapezoidProfile;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.RobotContainer;