Standardize on PWMVictorSPX in examples (#2104)

This commit is contained in:
Austin Shalit
2019-11-20 00:48:22 -05:00
committed by Peter Johnson
parent 8c4d9f5415
commit c0e36df9d8
10 changed files with 57 additions and 52 deletions

View File

@@ -9,7 +9,7 @@
#include <frc/AnalogGyro.h>
#include <frc/Encoder.h>
#include <frc/Spark.h>
#include <frc/PWMVictorSPX.h>
#include <frc/SpeedControllerGroup.h>
#include <frc/controller/PIDController.h>
#include <frc/kinematics/DifferentialDriveKinematics.h>
@@ -57,10 +57,10 @@ class Drivetrain {
static constexpr double kWheelRadius = 0.0508; // meters
static constexpr int kEncoderResolution = 4096;
frc::Spark m_leftMaster{1};
frc::Spark m_leftFollower{2};
frc::Spark m_rightMaster{3};
frc::Spark m_rightFollower{4};
frc::PWMVictorSPX m_leftMaster{1};
frc::PWMVictorSPX m_leftFollower{2};
frc::PWMVictorSPX m_rightMaster{3};
frc::PWMVictorSPX m_rightFollower{4};
frc::SpeedControllerGroup m_leftGroup{m_leftMaster, m_leftFollower};
frc::SpeedControllerGroup m_rightGroup{m_rightMaster, m_rightFollower};