Update examples to use VictorSPX's rather then Sparks (#1521)

This commit is contained in:
Thad House
2018-12-31 13:45:09 -08:00
committed by Peter Johnson
parent 3635116049
commit c12d7729e3
32 changed files with 96 additions and 95 deletions

View File

@@ -7,7 +7,7 @@
#include <frc/AnalogGyro.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/PWMVictorSPX.h>
#include <frc/TimedRobot.h>
#include <frc/drive/MecanumDrive.h>
@@ -47,10 +47,10 @@ class Robot : public frc::TimedRobot {
static constexpr int kGyroPort = 0;
static constexpr int kJoystickPort = 0;
frc::Spark m_frontLeft{kFrontLeftMotorPort};
frc::Spark m_rearLeft{kRearLeftMotorPort};
frc::Spark m_frontRight{kFrontRightMotorPort};
frc::Spark m_rearRight{kRearRightMotorPort};
frc::PWMVictorSPX m_frontLeft{kFrontLeftMotorPort};
frc::PWMVictorSPX m_rearLeft{kRearLeftMotorPort};
frc::PWMVictorSPX m_frontRight{kFrontRightMotorPort};
frc::PWMVictorSPX m_rearRight{kRearRightMotorPort};
frc::MecanumDrive m_robotDrive{m_frontLeft, m_rearLeft, m_frontRight,
m_rearRight};