mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Standardize on PWMVictorSPX in examples (#2104)
This commit is contained in:
committed by
Peter Johnson
parent
8c4d9f5415
commit
c0e36df9d8
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user