Mecanum Drive Problems

Hey, so we were trying to paste in code from the frc website to utilize mecanum drive. But it says that frc has no MecanumDrive libraries, so the whole code went to crap. Any reason why? Thank you.

Team 2148

Could you share the code you’re using and the specific error you’re getting when building your code?

Code:
/class MecanumDefaultCode : public frc::TimedRobot
{
frc::Spark mfleft{0};
frc::Spark mrleft{1};
frc::Spark mfright{2};
frc::Spark mrright{3};
/
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
/*frc::Joystick drivestick{1};

	void TeleopPeriodic override (void)
	{
	.MecanumDrive_Cartesian(drivestick.GetX(), drivestick.GetY(), drivestick.GetZ());
	}
};
START_ROBOT_CLASS(MecanumDefaultCode);*/

Error:
BUILD FAILED in 2s
2 actionable tasks: 2 executed
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramDebugExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramReleaseExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
The terminal process terminated with exit code: 1

The only active code in all of this is Cartesian drive, and the frc::Mecanumdrive

There should be more to your error above, try scrolling up and gathering more of the text. I’m not super well-versed in FRC C++ development, but getting the actual error will help debug.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramDebugExecutableFrcUserProgramCpp/output.txt

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramReleaseExecutableFrcUserProgramCpp/output.txt

  • 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

BUILD FAILED in 2s
2 actionable tasks: 2 executed
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramDebugExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramReleaseExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
The terminal process terminated with exit code: 1

You have a comment before frc::Joystick drivestick{1} and ending after START_ROBOT_CLASS. I believe that’s causing a syntax error as you’re commenting out the end of your class. Try something like this?

class MecanumDefaultCode : public frc::TimedRobot
{
    frc::Spark mfleft{0};
    frc::Spark mrleft{1};
    frc::Spark mfright{2};
    frc::Spark mrright{3};
    frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
    frc::Joystick drivestick{1};

    void TeleopPeriodic override (void)
    {
        // .MecanumDrive_Cartesian(drivestick.GetX(), drivestick.GetY(), drivestick.GetZ());
    }
};
START_ROBOT_CLASS(MecanumDefaultCode);

We still get this error:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramDebugExecutableFrcUserProgramCpp/output.txt

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramReleaseExecutableFrcUserProgramCpp/output.txt

  • 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

BUILD FAILED in 2s
2 actionable tasks: 2 executed
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramDebugExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramReleaseExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
The terminal process terminated with exit code: 1

Hmm… Could you try posting the contents of the log file it specifies?

Also, are you sure you have the #include "WPILib.h" header at the top of your file?

Executing task in folder SparkyII: gradlew build -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

Task :compileFrcUserProgramDebugExecutableFrcUserProgramCpp FAILED
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:11:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\cameraserver-cpp-2019.2.1-headers.zip_6d5c4a8bf55973d76d90eeb158bc5c66/CameraServer.h:14:2: warning: warning is a GCC extension
warning “CameraServer.h is deprecated; include cameraserver/CameraServer.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\cameraserver-cpp-2019.2.1-headers.zip_6d5c4a8bf55973d76d90eeb158bc5c66/CameraServer.h:14:2: warning: warning “CameraServer.h is deprecated; include cameraserver/CameraServer.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:14:2: warning: warning is a GCC extension
warning “IterativeRobot.h is deprecated; include frc/IterativeRobot.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:14:2: warning: warning “IterativeRobot.h is deprecated; include frc/IterativeRobot.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:13:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/LiveWindow/LiveWindow.h:14:2: warning: warning is a GCC extension
warning “LiveWindow/LiveWindow.h is deprecated; include frc/livewindow/LiveWindow.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/LiveWindow/LiveWindow.h:14:2: warning: warning “LiveWindow/LiveWindow.h is deprecated; include frc/livewindow/LiveWindow.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:14:2: warning: warning is a GCC extension
warning “smartdashboard/SendableChooser.h is deprecated; include frc/smartdashboard/SendableChooser.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:14:2: warning: warning “smartdashboard/SendableChooser.h is deprecated; include frc/smartdashboard/SendableChooser.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:15:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SmartDashboard.h:14:2: warning: warning is a GCC extension
warning “smartdashboard/SmartDashboard.h is deprecated; include frc/smartdashboard/SmartDashboard.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SmartDashboard.h:14:2: warning: warning “smartdashboard/SmartDashboard.h is deprecated; include frc/smartdashboard/SmartDashboard.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:16:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Joystick.h:14:2: warning: warning is a GCC extension
warning “Joystick.h is deprecated; include frc/Joystick.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Joystick.h:14:2: warning: warning “Joystick.h is deprecated; include frc/Joystick.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:17:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/WPILib.h:14:2: warning: warning is a GCC extension
warning “WPILib.h is deprecated; include frc/WPILib.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/WPILib.h:14:2: warning: warning “WPILib.h is deprecated; include frc/WPILib.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:18:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Ultrasonic.h:14:2: warning: warning is a GCC extension
warning “Ultrasonic.h is deprecated; include frc/Ultrasonic.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Ultrasonic.h:14:2: warning: warning “Ultrasonic.h is deprecated; include frc/Ultrasonic.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:19:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Command.h:14:2: warning: warning is a GCC extension
warning “Commands/Command.h is deprecated; include frc/commands/Command.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Command.h:14:2: warning: warning “Commands/Command.h is deprecated; include frc/commands/Command.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:20:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Scheduler.h:14:2: warning: warning is a GCC extension
warning “Commands/Scheduler.h is deprecated; include frc/commands/Scheduler.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Scheduler.h:14:2: warning: warning “Commands/Scheduler.h is deprecated; include frc/commands/Scheduler.h
instead” [-Wcpp]
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:8: error: variable or field ‘TeleopPeriodic’ declared void
void TeleopPeriodic override (void)
^~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:8: error: expected ‘;’ at end of member declaration
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:37: error: ISO C++ forbids declaration of ‘override’ with no type [-fpermissive]
void TeleopPeriodic override (void)
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:28: error: invalid use of non-static data member ‘Robot::motor_left’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:68:14: note: declared here
frc::Spark motor_left;
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:40: error: invalid use of non-static data member ‘Robot::motor_bleft’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:70:17: note: declared here
frc::Spark motor_bleft;
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:53: error: invalid use of non-static data member ‘Robot::motor_right’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:69:14: note: declared here
frc::Spark motor_right;
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:66: error: invalid use of non-static data member ‘Robot::motor_bright’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:71:17: note: declared here
frc::Spark motor_bright;
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:78: error: could not convert ‘{, , , }’ from ‘’ to ‘frc::MecanumDrive’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘int Robot::main()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:23: warning: ‘int Robot::StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(MecanumDefaultCode) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:43: warning: ‘int Robot::StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(MecanumDefaultCode) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘virtual void Robot::RobotInit()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:112:58: warning: ‘void frc::SendableChooser::AddDefault(wpi::StringRef, T) [with T = std::__cxx11::basic_string]’ is deprecated: use SetDefaultOption() instead [-Wdeprecated-declarations]
m_chooser.AddDefault(kAutoNameDefault, kAutoNameDefault);
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/smartdashboard/SendableChooser.h:57:8: note: declared here
void AddDefault(wpi::StringRef name, T object) {
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:113:55: warning: ‘void frc::SendableChooser::AddObject(wpi::StringRef, T) [with T = std::__cxx11::basic_string]’ is deprecated: use AddOption() instead [-Wdeprecated-declarations]
m_chooser.AddObject(kAutoNameCustom, kAutoNameCustom);
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/smartdashboard/SendableChooser.h:54:8: note: declared here
void AddObject(wpi::StringRef name, T object) { AddOption(name, object); }
^~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘virtual void Robot::TeleopPeriodic()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:3: error: ‘m_robotDrive’ was not declared in this scope
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:45: error: request for member ‘GetX’ in '((Robot
)this)->Robot::stick’, which is of pointer type 'frc::Joystick
’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:59: error: request for member ‘GetY’ in '((Robot
)this)->Robot::stick’, which is of pointer type 'frc::Joystick
’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:73: error: request for member ‘GetZ’ in ‘((Robot*)this)->Robot::stick’, which is of pointer type ‘frc::Joystick*’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In function ‘int main()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:23: warning: ‘int StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(Robot) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:43: warning: ‘int StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(Robot) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In instantiation of ‘int frc::StartRobot() [with Robot = Robot]’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: required from here
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:22:7: warning: ‘frc::IterativeRobot::IterativeRobot()’ is deprecated: Use TimedRobot instead. It’s a drop-in replacement that provides more regular execution periods. [-Wdeprecated-declarations]
class Robot : public frc::IterativeRobot {
^~~~~
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:28:3: note: declared here
IterativeRobot();
^~~~~~~~~~~~~~

In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:28:16: note: synthesized method ‘Robot::Robot()’ first required here
static Robot robot;
^~~~~

Task :compileFrcUserProgramReleaseExecutableFrcUserProgramCpp FAILED
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:11:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\cameraserver-cpp-2019.2.1-headers.zip_6d5c4a8bf55973d76d90eeb158bc5c66/CameraServer.h:14:2: warning: warning is a GCC extension
warning “CameraServer.h is deprecated; include cameraserver/CameraServer.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\cameraserver-cpp-2019.2.1-headers.zip_6d5c4a8bf55973d76d90eeb158bc5c66/CameraServer.h:14:2: warning: warning “CameraServer.h is deprecated; include cameraserver/CameraServer.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:14:2: warning: warning is a GCC extension
warning “IterativeRobot.h is deprecated; include frc/IterativeRobot.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:14:2: warning: warning “IterativeRobot.h is deprecated; include frc/IterativeRobot.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:13:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/LiveWindow/LiveWindow.h:14:2: warning: warning is a GCC extension
warning “LiveWindow/LiveWindow.h is deprecated; include frc/livewindow/LiveWindow.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/LiveWindow/LiveWindow.h:14:2: warning: warning “LiveWindow/LiveWindow.h is deprecated; include frc/livewindow/LiveWindow.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:14:2: warning: warning is a GCC extension
warning “smartdashboard/SendableChooser.h is deprecated; include frc/smartdashboard/SendableChooser.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:14:2: warning: warning “smartdashboard/SendableChooser.h is deprecated; include frc/smartdashboard/SendableChooser.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:15:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SmartDashboard.h:14:2: warning: warning is a GCC extension
warning “smartdashboard/SmartDashboard.h is deprecated; include frc/smartdashboard/SmartDashboard.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SmartDashboard.h:14:2: warning: warning “smartdashboard/SmartDashboard.h is deprecated; include frc/smartdashboard/SmartDashboard.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:16:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Joystick.h:14:2: warning: warning is a GCC extension
warning “Joystick.h is deprecated; include frc/Joystick.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Joystick.h:14:2: warning: warning “Joystick.h is deprecated; include frc/Joystick.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:17:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/WPILib.h:14:2: warning: warning is a GCC extension
warning “WPILib.h is deprecated; include frc/WPILib.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/WPILib.h:14:2: warning: warning “WPILib.h is deprecated; include frc/WPILib.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:18:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Ultrasonic.h:14:2: warning: warning is a GCC extension
warning “Ultrasonic.h is deprecated; include frc/Ultrasonic.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Ultrasonic.h:14:2: warning: warning “Ultrasonic.h is deprecated; include frc/Ultrasonic.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:19:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Command.h:14:2: warning: warning is a GCC extension
warning “Commands/Command.h is deprecated; include frc/commands/Command.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Command.h:14:2: warning: warning “Commands/Command.h is deprecated; include frc/commands/Command.h instead” [-Wcpp]
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:20:0:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Scheduler.h:14:2: warning: warning is a GCC extension
warning “Commands/Scheduler.h is deprecated; include frc/commands/Scheduler.h instead”
^~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/Commands/Scheduler.h:14:2: warning: warning “Commands/Scheduler.h is deprecated; include frc/commands/Scheduler.h
instead” [-Wcpp]
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:8: error: variable or field ‘TeleopPeriodic’ declared void
void TeleopPeriodic override (void)
^~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:8: error: expected ‘;’ at end of member declaration
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:90:37: error: ISO C++ forbids declaration of ‘override’ with no type [-fpermissive]
void TeleopPeriodic override (void)
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:28: error: invalid use of non-static data member ‘Robot::motor_left’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:68:14: note: declared here
frc::Spark motor_left;
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:40: error: invalid use of non-static data member ‘Robot::motor_bleft’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:70:17: note: declared here
frc::Spark motor_bleft;
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:53: error: invalid use of non-static data member ‘Robot::motor_right’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:69:14: note: declared here
frc::Spark motor_right;
^~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:66: error: invalid use of non-static data member ‘Robot::motor_bright’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:71:17: note: declared here
frc::Spark motor_bright;
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:86:78: error: could not convert ‘{, , , }’ from ‘’ to ‘frc::MecanumDrive’
frc::MecanumDrive mdrive{motor_left, motor_bleft, motor_right, motor_bright};
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘int Robot::main()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:23: warning: ‘int Robot::StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(MecanumDefaultCode) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:43: warning: ‘int Robot::StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(MecanumDefaultCode) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:95:2: note: in expansion of macro ‘START_ROBOT_CLASS’ START_ROBOT_CLASS(MecanumDefaultCode);
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘virtual void Robot::RobotInit()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:112:58: warning: ‘void frc::SendableChooser::AddDefault(wpi::StringRef, T) [with T = std::__cxx11::basic_string]’ is deprecated: use SetDefaultOption() instead [-Wdeprecated-declarations]
m_chooser.AddDefault(kAutoNameDefault, kAutoNameDefault);
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/smartdashboard/SendableChooser.h:57:8: note: declared here
void AddDefault(wpi::StringRef name, T object) {
^~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:113:55: warning: ‘void frc::SendableChooser::AddObject(wpi::StringRef, T) [with T = std::__cxx11::basic_string]’ is deprecated: use AddOption() instead [-Wdeprecated-declarations]
m_chooser.AddObject(kAutoNameCustom, kAutoNameCustom);
^
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/SmartDashboard/SendableChooser.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:14:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/smartdashboard/SendableChooser.h:54:8: note: declared here
void AddObject(wpi::StringRef name, T object) { AddOption(name, object); }
^~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In member function ‘virtual void Robot::TeleopPeriodic()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:3: error: ‘m_robotDrive’ was not declared in this scope
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:45: error: request for member ‘GetX’ in '((Robot
)this)->Robot::stick’, which is of pointer type 'frc::Joystick
’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:59: error: request for member ‘GetY’ in '((Robot
)this)->Robot::stick’, which is of pointer type 'frc::Joystick
’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:294:73: error: request for member ‘GetZ’ in ‘((Robot*)this)->Robot::stick’, which is of pointer type ‘frc::Joystick*’ (maybe you meant to use ‘->’ ?)
m_robotDrive.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
^~~~
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In function ‘int main()’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:23: warning: ‘int StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(Robot) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:39:43: warning: ‘int StartRobotClassImpl()’ is deprecated: Call frc::StartRobot() in your own main() instead of using the START_ROBOT_CLASS(Robot) macro. [-Wdeprecated-declarations]
int main() { return StartRobotClassImpl(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:38:7: note: declared here
int StartRobotClassImpl() { return frc::StartRobot<ClassName>(); }
^
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: note: in expansion of macro ‘START_ROBOT_CLASS’
START_ROBOT_CLASS(Robot)
^~~~~~~~~~~~~~~~~
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp: In instantiation of ‘int frc::StartRobot() [with Robot = Robot]’:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:374:1: required from here
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:22:7: warning: ‘frc::IterativeRobot::IterativeRobot()’ is deprecated: Use TimedRobot instead. It’s a drop-in replacement that provides more regular execution periods. [-Wdeprecated-declarations]
class Robot : public frc::IterativeRobot {
^~~~~
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:28:3: note: declared here
IterativeRobot();
^~~~~~~~~~~~~~
In file included from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobotBase.h:10:0,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/IterativeRobot.h:10,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/IterativeRobot.h:19,
from C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\src\main\cpp\SPARKYII.cpp:12:
C:\Users\evsd\Desktop\VSCode 2019 Sparky\SparkyII\build\tmp\expandedArchives\wpilibc-cpp-2019.2.1-headers.zip_c5f7002a6c1dfda8aa2899e2594d01fe/frc/RobotBase.h:28:16: note: synthesized method ‘Robot::Robot()’ first required here
static Robot robot;
^~~~~

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramDebugExecutableFrcUserProgramCpp/output.txt

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

A build operation failed.
C++ compiler failed while compiling SPARKYII.cpp.
See the complete log at: file:///C:/Users/evsd/Desktop/VSCode%202019%20Sparky/SparkyII/build/tmp/compileFrcUserProgramReleaseExecutableFrcUserProgramCpp/output.txt

  • 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

BUILD FAILED in 2s
2 actionable tasks: 2 executed
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramDebugExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgramReleaseExecutableFrcUserProgramCpp).
Check that all your files are saved, then scroll up in this log for more information.
The terminal process terminated with exit code: 1