Exporting to RoboRio Error

Hi, our team is having trouble exporting our code to the RoboRio every time we try it returns this error message. We would like to figure out the problem but none of our available coders can figure it out

Executing task: gradlew deploy -PteamNumber=5863 --offline -Dorg.gradle.java.home=“C:\Program Files\Java\jdk-11.0.6” <

Driver Station reported IP:

Task :discoverRoborio
Discovering Target roborio
Using [email protected]:22 for target roborio

Task :compileJava FAILED
C:\Users\Hypercubed\Documents\2020 Hypercubed VS\2020 Robot V2\src\main\java\frc\robot\subsystems\DriveTrain.java:27: error: incompatible types: VictorSP cannot be converted to Talon
leftBackMotor = new VictorSP(RobotContainer.backLeftMotor);
1 error
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileJava).
Check that all your files are saved, then scroll up in this log for more information.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

2 actionable tasks: 2 executed
The terminal process terminated with exit code: 1

This tells you where your error is. Your leftBackMotor is declared as a Talon object, but you’re creating a VictorSP object. You need to change leftBackMotor’s declaration to be VictorSP leftBackMotor;

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.