diff --git a/.vscode/settings.json b/.vscode/settings.json index cc74d5b..638a2bd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,5 +18,6 @@ "*.inc": "cpp", "*.tcc": "cpp", "fstream": "cpp" - } -} + }, + "C_Cpp.errorSquiggles": "Disabled" +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index f7d64fb..3a93cbb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { id "cpp" id "google-test-test-suite" - id "edu.wpi.first.GradleRIO" version "2020.1.2" + id "edu.wpi.first.GradleRIO" version "2020.3.2" } // Define my targets (RoboRIO) and artifacts (deployable files) diff --git a/src/main/cpp/Robot.cpp b/src/main/cpp/Robot.cpp index 38eb0d5..b3e4ac2 100644 --- a/src/main/cpp/Robot.cpp +++ b/src/main/cpp/Robot.cpp @@ -1,31 +1,7 @@ -/*----------------------------------------------------------------------------*/ -/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ -/* Open Source Software - may be modified and shared by FRC teams. The code */ -/* must be accompanied by the FIRST BSD license file in the root directory of */ -/* the project. */ -/*----------------------------------------------------------------------------*/ -#include "cscore.h" #include "Robot.h" -#include -#include -#include -#include "rev/CANSparkMax.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define Brit - -//#define Sounds + +#define StraightShot +// #define SideShot //joystick creation frc::Joystick *lonelyStick; @@ -35,25 +11,15 @@ frc::JoystickButton *lessSpeed; //button 5 frc::JoystickButton *moreSpeed; //button 3 frc::JoystickButton *fullCheech; //button 2 frc::JoystickButton *putItIn; //button 1 -#ifdef Sounds -frc::JoystickButton *sound1; //button 7 -frc::JoystickButton *sound2; //button 8 -frc::JoystickButton *sound3; //button 9 -frc::JoystickButton *sound4; //button 11 -frc::JoystickButton *sound5; //button 12 -#endif - -//digital input creation -frc::DigitalOutput playSound1(1); - -//controller creation -frc::XboxController *soundController; +frc::JoystickButton *snoop; //button 7 //tank drive creation frc::DifferentialDrive *brit; +//controller creation +frc::XboxController *neighborlyInputDevice; + //brit motors -#ifdef Brit rev::CANSparkMax driveboi1(7, rev::CANSparkMax::MotorType::kBrushless); rev::CANSparkMax driveboi2(10, rev::CANSparkMax::MotorType::kBrushless); rev::CANSparkMax driveboi3(13, rev::CANSparkMax::MotorType::kBrushless); @@ -64,36 +30,38 @@ rev::CANSparkMax driveboi6(9, rev::CANSparkMax::MotorType::kBrushless); //brit motor groups frc::SpeedControllerGroup speedyboiL(driveboi1, driveboi2, driveboi3); frc::SpeedControllerGroup speedyboiR(driveboi4, driveboi5, driveboi6); -#endif - -#ifndef Brit -//axel motors -rev::CANSparkMax driveboi1(4, rev::CANSparkMax::MotorType::kBrushless); -rev::CANSparkMax driveboi2(6, rev::CANSparkMax::MotorType::kBrushless); -rev::CANSparkMax driveboi3(1, rev::CANSparkMax::MotorType::kBrushless); -rev::CANSparkMax driveboi4(3, rev::CANSparkMax::MotorType::kBrushless); - -//axel motor croups -frc::SpeedControllerGroup speedyboiR(driveboi1, driveboi2); -frc::SpeedControllerGroup speedyboiL(driveboi3, driveboi4); -#endif //winch motor creation -rev::CANSparkMax whinch(3, rev::CANSparkMax::MotorType::kBrushless); +rev::CANSparkMax whench(12, rev::CANSparkMax::MotorType::kBrushless); +//climber motor creation +rev::CANSparkMax spoodermoon(11, rev::CANSparkMax::MotorType::kBrushless); +//mike whipper motor creation +ctre::phoenix::motorcontrol::can::VictorSPX whippedCheese = {25}; +//mike whipper up/down solenoid +frc::Solenoid viagra(3); +//intake motor creation +rev::CANSparkMax simp(1, rev::CANSparkMax::MotorType::kBrushless); +rev::CANSparkMax egirl(3, rev::CANSparkMax::MotorType::kBrushless); + +//limit switch move thing +// ctre::phoenix::motorcontrol::can::VictorSPX heli = {26}; +// int x; //Encoder creation rev::CANEncoder spinReader1 = driveboi1.GetEncoder(); rev::CANEncoder spinReader2 = driveboi2.GetEncoder(); rev::CANEncoder spinReader3 = driveboi3.GetEncoder(); rev::CANEncoder spinReader4 = driveboi4.GetEncoder(); -#ifdef Brit rev::CANEncoder spinReader5 = driveboi5.GetEncoder(); rev::CANEncoder spinReader6 = driveboi6.GetEncoder(); -#endif -rev::CANEncoder pimp = whinch.GetEncoder(); +//winch encoder creation +rev::CANEncoder pimp = whench.GetEncoder(); +//climber encoder creation +rev::CANEncoder gwen = spoodermoon.GetEncoder(); //camera creation cs::UsbCamera fbi; +cs::UsbCamera cia; //ultrasonic range sensor creation frc::AnalogInput batman(0); // 230 - 630 is usable range @@ -112,13 +80,22 @@ enum Auton forward2 = 5, back2 = 6, turn2 = 7, - forward3 = 8 + forward3 = 8, + null = 9 + /*forwardfromside = 10 (for the UltraSonic Side Shot) + turnsideshot = 11 +*/ }; Auton step; +// encoder variables +double forwardBackward; +double turn; + //sonlenoid creation frc::Solenoid peerPressure1(0); frc::Solenoid peerPressure2(1); +//dump intake frc::Solenoid roboMyRio(2); //compressor creation @@ -127,15 +104,21 @@ frc::Compressor bonusPressure(0); //limit switch creation frc::DigitalInput stopIt(9); -//revolution var -int forwardBackwardDistance = 46; //23 is about 5 ft -int turnDistance = 29; //25 is about 360 degrees on shop floors, 29 is about 360 on carpet +//toggle variable for intake things +int toggle = 1; //Dead Zone Variables double lonelyY; double lonelyTwist; double notFarEnough; +//intake stop var +int estop = 1; + +//turn variables +int right; +int left; + void Robot::RobotInit() { //m_chooser.SetDefaultOption(kAutoNameDefault, kAutoNameDefault); @@ -145,9 +128,11 @@ void Robot::RobotInit() //setting up camera fbi = frc::CameraServer::GetInstance()->StartAutomaticCapture(0); fbi.SetVideoMode(cs::VideoMode::PixelFormat::kYUYV, 320, 240, 10); + cia = frc::CameraServer::GetInstance()->StartAutomaticCapture(1); + cia.SetVideoMode(cs::VideoMode::PixelFormat::kYUYV, 320, 240, 10); //setting up controller - //neighborlyInputDevice = new frc::XboxController(0); + neighborlyInputDevice = new frc::XboxController(1); //setting up Joystick lonelyStick = new frc::Joystick(0); @@ -157,13 +142,7 @@ void Robot::RobotInit() lessSpeed = new frc::JoystickButton(lonelyStick, 5); moreSpeed = new frc::JoystickButton(lonelyStick, 3); putItIn = new frc::JoystickButton(lonelyStick, 1); -#ifdef Sounds - sound1 = new frc::JoystickButton(lonelyStick, 7); - sound2 = new frc::JoystickButton(lonelyStick, 8); - sound3 = new frc::JoystickButton(lonelyStick, 9); - sound4 = new frc::JoystickButton(lonelyStick, 11); - sound5 = new frc::JoystickButton(lonelyStick, 12); -#endif + snoop = new frc::JoystickButton(lonelyStick, 7); //setting up drivetrain brit = new frc::DifferentialDrive(speedyboiL, speedyboiR); @@ -207,30 +186,45 @@ void Robot::AutonomousInit() step = forward1; driveboi2.Follow(driveboi1, /*invert*/ false); - driveboi4.Follow(driveboi3, /*invert*/ false); -#ifdef Brit - driveboi5.Follow(driveboi1, /*invert*/ false); - driveboi6.Follow(driveboi3, /*invert*/ false); -#endif + driveboi4.Follow(driveboi5, /*invert*/ false); + driveboi3.Follow(driveboi1, /*invert*/ false); + driveboi6.Follow(driveboi5, /*invert*/ false); } void Robot::AutonomousPeriodic() { - - double forwardBackward = spinReader1.GetPosition() - spinReader3.GetPosition(); - double turn = spinReader1.GetPosition() + spinReader3.GetPosition(); - /*if (m_autoSelected == kAutoNameCustom) { - // Custom Auto goes here - } - else { - // Default Auto goes here - }*/ - + double distance = batman.GetValue() * 0.393701; + + forwardBackward = spinReader1.GetPosition() - spinReader5.GetPosition(); + turn = spinReader1.GetPosition() + spinReader5.GetPosition(); + // if (m_autoSelected == kAutoNameCustom) { + // // Custom Auto goes here + // } + // else { + // // Default Auto goes here + // } + //Read Encoder + frc::SmartDashboard::PutNumber("Encoder1 Position", spinReader1.GetPosition()); + frc::SmartDashboard::PutNumber("Encoder2 Position", spinReader2.GetPosition()); + frc::SmartDashboard::PutNumber("Encoder3 Position", spinReader3.GetPosition()); + frc::SmartDashboard::PutNumber("Encoder4 Position", spinReader4.GetPosition()); + frc::SmartDashboard::PutNumber("Encoder5 Position", spinReader5.GetPosition()); + frc::SmartDashboard::PutNumber("Encoder6 Position", spinReader6.GetPosition()); + frc::SmartDashboard::PutNumber("climber position", -gwen.GetPosition()); + frc::SmartDashboard::PutNumber("Range Sensor 1", distance); +/* + //climber down + if (-gwen.GetPosition() > -42.1) + { + spoodermoon.Set(.5); + } */ +//Straight Shot (Best Option) (Not Tested) +#ifdef StraightShot switch (step) { case forward1: { - if (batman.GetValue() > 375) //230 - 630 usable range + if (distance > 230) //230 - 630 usable range { Robot::Forwards(); } @@ -244,13 +238,14 @@ void Robot::AutonomousPeriodic() case dump: { roboMyRio.Set(true); + Wait(1); roboMyRio.Set(false); step = back1; break; } case back1: { - if (forwardBackward < 92) + if (forwardBackward < 180) { Robot::Backwards(); } @@ -263,7 +258,7 @@ void Robot::AutonomousPeriodic() } case turn1: { - if (turn < 14.5) + if (turn > -9.5) { Robot::Clock(); } @@ -276,7 +271,7 @@ void Robot::AutonomousPeriodic() } case forward2: { - if (batman.GetValue() > 250) + if (distance > 230) { Robot::Forwards(); } @@ -289,7 +284,7 @@ void Robot::AutonomousPeriodic() } case back2: { - if (forwardBackward < 4.6) + if (forwardBackward < 2) { Robot::Backwards(); } @@ -302,7 +297,7 @@ void Robot::AutonomousPeriodic() } case turn2: { - if (turn < 14.5) + if (turn > -9.5) { Robot::Clock(); } @@ -316,6 +311,57 @@ void Robot::AutonomousPeriodic() case forward3: { if (forwardBackward < 198.49) + { + viagra.Set(true); + simp.Set(-.5); + egirl.Set(.35); + whippedCheese.Set(ControlMode::PercentOutput, -1); + Robot::Forwards(); + } + else + { + ZeroMotors(); + step = null; + } + break; + } + default: + break; + } +#endif + + //UltraSonic Side Shot (2nd Best Option) (Not Tested) +#ifdef SideShot + switch (step) + { + case forward1: + { + if (forwardBackward < 120) + { + Robot::Forwards(); + } + else + { + ZeroMotors(); + step = turn1; + } + break; + } + case turn1: + { + if (turn > -9.5) + { + Robot::Clock(); + } + else + { + ZeroMotors(); + step = forward2; + } + } + case forward2: + { + if (distance > 230) //230 - 630 usable range { Robot::Forwards(); } @@ -326,26 +372,104 @@ void Robot::AutonomousPeriodic() } break; } + case dump: + { + roboMyRio.Set(true); + Wait(1); + roboMyRio.Set(false); + step = back1; + break; + } + case back1: + { + if (forwardBackward < 180) + { + Robot::Backwards(); + } + else + { + ZeroMotors(); + step = turn2; + } + break; + } + case turn2: + { + if (turn > -9.5) + { + Robot::Clock(); + } + else + { + ZeroMotors(); + step = forward2; + } + break; + } + case forward2: + { + if (distance > 230) + { + Robot::Forwards(); + } + else + { + ZeroMotors(); + step = back2; + } + break; + } + case back2: + { + if (forwardBackward < 2) + { + Robot::Backwards(); + } + else + { + ZeroMotors(); + step = turn3; + } + break; + } + case turn3: + { + if (turn > -9.5) + { + Robot::Clock(); + } + else + { + ZeroMotors(); + step = forward3; + } + break; + } + case forward3: + { + if (forwardBackward < 198.49) + { + Robot::Forwards(); + } + else + { + ZeroMotors(); + step = null; + } + break; + } default: break; } - /*auton idea - go forward until limit switch hits wall or range gets to very low - dump balls - go backward until across the line - turn tward wall - go forward until limit switch hits wall or range gets to very low - back up a little - turn 90 degrees twards our side - turn on intake things - go forward under the trench*/ +#endif } -void Robot::TeleopInit() {} +void Robot::TeleopInit() +{ +} void Robot::TeleopPeriodic() { - //42 counts per rev. on neo if (spinReader1.GetVelocity() == 0) spinReader1.SetPosition(0); @@ -355,49 +479,39 @@ void Robot::TeleopPeriodic() spinReader3.SetPosition(0); if (spinReader4.GetVelocity() == 0) spinReader4.SetPosition(0); -#ifdef Brit if (spinReader5.GetVelocity() == 0) spinReader5.SetPosition(0); if (spinReader6.GetVelocity() == 0) spinReader6.SetPosition(0); -#endif //Read Encoder frc::SmartDashboard::PutNumber("Encoder1 Position", spinReader1.GetPosition()); frc::SmartDashboard::PutNumber("Encoder2 Position", spinReader2.GetPosition()); frc::SmartDashboard::PutNumber("Encoder3 Position", spinReader3.GetPosition()); frc::SmartDashboard::PutNumber("Encoder4 Position", spinReader4.GetPosition()); -#ifdef Brit frc::SmartDashboard::PutNumber("Encoder5 Position", spinReader5.GetPosition()); frc::SmartDashboard::PutNumber("Encoder6 Position", spinReader6.GetPosition()); -#endif - + frc::SmartDashboard::PutNumber("climber position", -gwen.GetPosition()); //read sensor - double distance = batman.GetValue(); // * 0.393701; //multiplying by 0.393701 converts the sonar value to inches (hopefully) + double distance = batman.GetValue() * 0.393701; //multiplying by 0.393701 converts the sonar value to inches (hopefully) frc::SmartDashboard::PutNumber("Range Sensor 1", distance); // Code for deadzones on joystick notFarEnough = .05; /*todo: Adjust to driver's needs*/ if (-lonelyStick->GetY() < notFarEnough || -lonelyStick->GetY() > -notFarEnough) { -#ifdef Brit lonelyY = lonelyStick->GetY(); -#endif - -#ifndef Brit - lonelyY = -lonelyStick->GetY(); -#endif } if (lonelyStick->GetTwist() < notFarEnough || lonelyStick->GetTwist() > -notFarEnough) { -#ifdef Brit lonelyTwist = -lonelyStick->GetTwist(); -#endif - -#ifndef Brit - lonelyTwist = lonelyStick->GetTwist(); -#endif } + /* + //climber back up + if (snoop->Get() && -gwen.GetPosition() < 42.1) + { + spoodermoon.Set(-.3); + }*/ //making the compressor compress bonusPressure.SetClosedLoopControl(true); @@ -407,118 +521,126 @@ void Robot::TeleopPeriodic() peerPressure1.Set(moreSpeed->Get()); //pneumatic actuator - roboMyRio.Set(putItIn->Get()); - - //drive train code - if (fullCheech->Get()) + if (neighborlyInputDevice->GetXButton()) { - speed = 1; + roboMyRio.Set(true); } + // Robot::Wait(.5); else { - speed = .4; + roboMyRio.Set(false); } - brit->ArcadeDrive(lonelyY * speed, lonelyTwist * speed); - /*//joystick values to movement in drivetrain -brit->ArcadeDrive ( -lonelyStick->GetY () , lonelyStick->GetTwist () );*/ + //mike whipper and intake code + if (neighborlyInputDevice->GetAButtonReleased()) + { + toggle = -toggle; + } - //controller values to movement in drivetrain - //brit->ArcadeDrive ( soundController->GetY ( frc::GenericHID::JoystickHand::kLeftHand ) , soundController->GetX ( frc::GenericHID::JoystickHand::kLeftHand ) ); + if (neighborlyInputDevice->GetBackButtonPressed()) + { + estop = -estop; + } + else if (estop == 1) + { + simp.Set(0); + } + else if (estop == -1) + { + simp.Set(-.5); + } - //testing to use controller - /*double testingboi = soundController->GetX(frc::GenericHID::JoystickHand::kLeftHand); -if ( testingboi > 0 ) { - std::cout << "x axis is goin \n"; -}*/ -#ifdef Sounds - /*if (lonelyStick.GetThrottle() == 1) + if (neighborlyInputDevice->GetYButton()) { - if (sound1 && sound2 && sound3) - { - } - if (sound1 && sound2 && sound4) - { - } - if (sound1 && sound2 && sound5) - { - } - if (sound1 && sound2 && sound6) - { - } + viagra.Set(false); + simp.Set(.5); + egirl.Set(-.5); } - if (lonelyStick.GetThrottle() == 0) + else if (neighborlyInputDevice->GetStartButton()) { - }*/ - if (sound3->Get()) + simp.Set(-.5); + egirl.Set(.5); + } + else if (toggle == 1) { - playSound1.Set(true); + viagra.Set(false); + egirl.Set(0); + whippedCheese.Set(ControlMode::PercentOutput, 0); //should be 0 just testing + } + else if (toggle == -1) + { + viagra.Set(true); + simp.Set(-.5); + egirl.Set(.35); + whippedCheese.Set(ControlMode::PercentOutput, -1); //should be .1 just testing + } + + //winch code + if (neighborlyInputDevice->GetBButton()) + { + whench.Set(1); } else { - playSound1.Set(false); + whench.Set(0); } -#endif -} -void Robot::TestPeriodic() -{ + //climber code + if (neighborlyInputDevice->GetTriggerAxis(frc::GenericHID::JoystickHand::kRightHand) > 0) + { + spoodermoon.Set(-neighborlyInputDevice->GetTriggerAxis(frc::GenericHID::JoystickHand::kRightHand) * .2); + } + else if (neighborlyInputDevice->GetTriggerAxis(frc::GenericHID::JoystickHand::kLeftHand) > 0) + { + spoodermoon.Set(neighborlyInputDevice->GetTriggerAxis(frc::GenericHID::JoystickHand::kLeftHand) * .2); + } + else + { + spoodermoon.Set(0); + } - /* -//back motors following front motors -//driveboi2.Follow (driveboi1, false); -//driveboi4.Follow (driveboi3, false); -//driveboi5.Follow (driveboi1, false); -//driveboi6.Follow (driveboi3, false); - -//encoder math -forwardBackward = spinReader1.GetPosition() - spinReader3.GetPosition(); -turn = spinReader1.GetPosition() + spinReader3.GetPosition(); -forwardBackwardDistance = 46; //23 is about 5 ft -turnDistance = 29; //25 is about 360 degrees on shop floors, 29 is about 360 on carpet - -if (oneSpin->Get()) { - driveboi1.Set(.1); - driveboi3.Set(-.1); -} else if (nuke->Get()) { - driveboi1.Set(-.1); - driveboi3.Set(.1); -} else if (moreSpeed->Get()) { - driveboi1.Set(-.1); - driveboi3.Set(-.1); -} else if (lessSpeed->Get()) { - driveboi1.Set(.1); - driveboi3.Set(.1); -} else if ( forwardBackward < -2*forwardBackwardDistance || forwardBackward > 2*forwardBackwardDistance || turn < -2*turnDistance || turn > 2*turnDistance ) { - driveboi1.Set(0); - driveboi3.Set(0); - spinReader1.SetPosition(0); - spinReader2.SetPosition(0); - spinReader3.SetPosition(0); - spinReader4.SetPosition(0); + //Bumber to preset climbing positions (63 in and all the way down) + if (neighborlyInputDevice->GetBumper(frc::GenericHID::JoystickHand::kRightHand) && -gwen.GetPosition() < 75) + { + spoodermoon.Set(-.3); + } + else if (neighborlyInputDevice->GetBumper(frc::GenericHID::JoystickHand::kLeftHand) && -gwen.GetPosition() > 0) + { + spoodermoon.Set(.2); } + //90 Degrees turn code (Not Tested) + if (putItIn->Get()) + { + right = 1; + } + else if (fullCheech->Get()) + { + left = 1; + } -//Motor spins once with Joystick button -//if (spinReader1.GetPosition() < 10) driveboi1.Set(.25); -if (spinReader1.GetPosition() < r) driveboi1.Set(.1); -else if (spinReader1.GetPosition() > r) driveboi1.Set(-.1); -//else if (spinReader1.GetPosition() < 10 ) driveboi1.Set(-1/2*spinReader1.GetPosition()+5); -else driveboi1.Set(0); + if (left == 1 && turn > -40) + { + Robot::CounterClock(); + } + else if (right == 1 && turn < 40) + { + Robot::Clock(); + } + else + { + ZeroMotors(); + right = 0; + left = 0; + } -//if (spinReader3.GetPosition() > -10) driveboi3.Set(-.25); -if (spinReader3.GetPosition() > -r ) driveboi3.Set(-.1); -else if (spinReader3.GetPosition() < -r) driveboi3.Set(.1); -//else if (spinReader3.GetPosition() > -10 ) driveboi3.Set(1/2*spinReader1.GetPosition()-5); -else driveboi3.Set(0); + speed = .8; -motor group = .99^encoder value -motor group = -.99^encoder value -make sure the opposite encoder stuff is the opposite otherwise as it counts up it will keep getting faster/ need two different equations -driveboi1.Set(.99^spinReader1.GetPosition()) for the positive side -*/ + brit->ArcadeDrive(lonelyY * speed, lonelyTwist * speed); } +void Robot::TestPeriodic() {} + void Robot::ZeroMotors() { driveboi1.Set(0); @@ -527,31 +649,37 @@ void Robot::ZeroMotors() spinReader2.SetPosition(0); spinReader3.SetPosition(0); spinReader4.SetPosition(0); -#ifdef Brit spinReader5.SetPosition(0); spinReader6.SetPosition(0); -#endif } void Robot::Forwards() { - driveboi1.Set(-.1); - driveboi3.Set(.1); + driveboi1.Set(-.5); + driveboi5.Set(.5); } void Robot::Backwards() { - driveboi1.Set(.1); - driveboi3.Set(-.1); + driveboi1.Set(.5); + driveboi5.Set(-.5); } void Robot::Clock() { - driveboi1.Set(.1); - driveboi3.Set(.1); + driveboi1.Set(-.5); + driveboi5.Set(-.5); } void Robot::CounterClock() { - driveboi1.Set(-.1); - driveboi3.Set(-.1); + driveboi1.Set(.5); + driveboi5.Set(.5); +} +void Robot::Wait(double seconds) +{ + clock_t endwait; + endwait = clock() + seconds * CLOCKS_PER_SEC; + while (clock() < endwait) + { + } } #ifndef RUNNING_FRC_TESTS diff --git a/src/main/include/Robot.h b/src/main/include/Robot.h index 76ab331..d51c3d6 100644 --- a/src/main/include/Robot.h +++ b/src/main/include/Robot.h @@ -7,8 +7,26 @@ #pragma once +#include "cscore.h" #include - +#include +#include +#include +#include "rev/CANSparkMax.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "ctre/Phoenix.h" +#include #include #include @@ -27,6 +45,7 @@ class Robot : public frc::TimedRobot void Backwards(); void Clock(); void CounterClock(); + void Wait(double); private: frc::SendableChooser m_chooser; diff --git a/vendordeps/Phoenix.json b/vendordeps/Phoenix.json new file mode 100644 index 0000000..aa5554e --- /dev/null +++ b/vendordeps/Phoenix.json @@ -0,0 +1,180 @@ +{ + "fileName": "Phoenix.json", + "name": "CTRE-Phoenix", + "version": "5.18.2", + "uuid": "ab676553-b602-441f-a38d-f1296eff6537", + "mavenUrls": [ + "http://devsite.ctr-electronics.com/maven/release/" + ], + "jsonUrl": "http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/Phoenix-latest.json", + "javaDependencies": [ + { + "groupId": "com.ctre.phoenix", + "artifactId": "api-java", + "version": "5.18.2" + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "wpiapi-java", + "version": "5.18.2" + } + ], + "jniDependencies": [ + { + "groupId": "com.ctre.phoenix", + "artifactId": "cci", + "version": "5.18.2", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "diagnostics", + "version": "5.18.2", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "canutils", + "version": "5.18.2", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "platform-stub", + "version": "5.18.2", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "core", + "version": "5.18.2", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + } + ], + "cppDependencies": [ + { + "groupId": "com.ctre.phoenix", + "artifactId": "wpiapi-cpp", + "version": "5.18.2", + "libName": "CTRE_Phoenix_WPI", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "api-cpp", + "version": "5.18.2", + "libName": "CTRE_Phoenix", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "cci", + "version": "5.18.2", + "libName": "CTRE_PhoenixCCI", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "diagnostics", + "version": "5.18.2", + "libName": "CTRE_PhoenixDiagnostics", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "canutils", + "version": "5.18.2", + "libName": "CTRE_PhoenixCanutils", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "platform-stub", + "version": "5.18.2", + "libName": "CTRE_PhoenixPlatform", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxx86-64" + ] + }, + { + "groupId": "com.ctre.phoenix", + "artifactId": "core", + "version": "5.18.2", + "libName": "CTRE_PhoenixCore", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "windowsx86-64", + "linuxx86-64" + ] + } + ] +} \ No newline at end of file diff --git a/vendordeps/REVRobotics.json b/vendordeps/REVRobotics.json index cea495f..5eb069f 100644 --- a/vendordeps/REVRobotics.json +++ b/vendordeps/REVRobotics.json @@ -1,24 +1,45 @@ { - "cppDependencies": [ + "fileName": "REVRobotics.json", + "name": "REVRobotics", + "version": "1.5.2", + "uuid": "3f48eb8c-50fe-43a6-9cb7-44c86353c4cb", + "mavenUrls": [ + "http://www.revrobotics.com/content/sw/max/sdk/maven/" + ], + "jsonUrl": "http://www.revrobotics.com/content/sw/max/sdk/REVRobotics.json", + "javaDependencies": [ { - "artifactId": "SparkMax-cpp", - "binaryPlatforms": [ + "groupId": "com.revrobotics.frc", + "artifactId": "SparkMax-java", + "version": "1.5.2" + } + ], + "jniDependencies": [ + { + "groupId": "com.revrobotics.frc", + "artifactId": "SparkMax-driver", + "version": "1.5.2", + "skipInvalidPlatforms": true, + "isJar": false, + "validPlatforms": [ "windowsx86-64", "windowsx86", "linuxaarch64bionic", "linuxx86-64", "linuxathena", "linuxraspbian" - ], + ] + } + ], + "cppDependencies": [ + { "groupId": "com.revrobotics.frc", - "headerClassifier": "headers", + "artifactId": "SparkMax-cpp", + "version": "1.5.2", "libName": "SparkMax", + "headerClassifier": "headers", "sharedLibrary": false, "skipInvalidPlatforms": true, - "version": "1.5.1" - }, - { - "artifactId": "SparkMax-driver", "binaryPlatforms": [ "windowsx86-64", "windowsx86", @@ -26,45 +47,24 @@ "linuxx86-64", "linuxathena", "linuxraspbian" - ], - "groupId": "com.revrobotics.frc", - "headerClassifier": "headers", - "libName": "SparkMaxDriver", - "sharedLibrary": false, - "skipInvalidPlatforms": true, - "version": "1.5.1" - } - ], - "fileName": "REVRobotics.json", - "javaDependencies": [ + ] + }, { - "artifactId": "SparkMax-java", "groupId": "com.revrobotics.frc", - "version": "1.5.1" - } - ], - "jniDependencies": [ - { "artifactId": "SparkMax-driver", - "groupId": "com.revrobotics.frc", - "isJar": false, + "version": "1.5.2", + "libName": "SparkMaxDriver", + "headerClassifier": "headers", + "sharedLibrary": false, "skipInvalidPlatforms": true, - "validPlatforms": [ + "binaryPlatforms": [ "windowsx86-64", "windowsx86", "linuxaarch64bionic", "linuxx86-64", "linuxathena", "linuxraspbian" - ], - "version": "1.5.1" + ] } - ], - "jsonUrl": "http://www.revrobotics.com/content/sw/max/sdk/REVRobotics.json", - "mavenUrls": [ - "http://www.revrobotics.com/content/sw/max/sdk/maven/" - ], - "name": "REVRobotics", - "uuid": "3f48eb8c-50fe-43a6-9cb7-44c86353c4cb", - "version": "1.5.1" + ] } \ No newline at end of file diff --git a/vendordeps/WPILibNewCommands.json b/vendordeps/WPILibNewCommands.json new file mode 100644 index 0000000..83de291 --- /dev/null +++ b/vendordeps/WPILibNewCommands.json @@ -0,0 +1,37 @@ +{ + "fileName": "WPILibNewCommands.json", + "name": "WPILib-New-Commands", + "version": "2020.0.0", + "uuid": "111e20f7-815e-48f8-9dd6-e675ce75b266", + "mavenUrls": [], + "jsonUrl": "", + "javaDependencies": [ + { + "groupId": "edu.wpi.first.wpilibNewCommands", + "artifactId": "wpilibNewCommands-java", + "version": "wpilib" + } + ], + "jniDependencies": [], + "cppDependencies": [ + { + "groupId": "edu.wpi.first.wpilibNewCommands", + "artifactId": "wpilibNewCommands-cpp", + "version": "wpilib", + "libName": "wpilibNewCommands", + "headerClassifier": "headers", + "sourcesClassifier": "sources", + "sharedLibrary": true, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxathena", + "linuxraspbian", + "linuxaarch64bionic", + "windowsx86-64", + "windowsx86", + "linuxx86-64", + "osxx86-64" + ] + } + ] +} \ No newline at end of file