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
@@ -8,7 +8,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <frc/Encoder.h>
|
||||
#include <frc/Spark.h>
|
||||
#include <frc/PWMVictorSPX.h>
|
||||
#include <frc/controller/PIDController.h>
|
||||
#include <frc/controller/ProfiledPIDController.h>
|
||||
#include <frc/kinematics/SwerveModuleState.h>
|
||||
@@ -34,8 +34,8 @@ class SwerveModule {
|
||||
kModuleMaxAngularAcceleration = units::meters_per_second_squared_t(
|
||||
wpi::math::pi * 2.0); // radians per second squared
|
||||
|
||||
frc::Spark m_driveMotor;
|
||||
frc::Spark m_turningMotor;
|
||||
frc::PWMVictorSPX m_driveMotor;
|
||||
frc::PWMVictorSPX m_turningMotor;
|
||||
|
||||
frc::Encoder m_driveEncoder{0, 1};
|
||||
frc::Encoder m_turningEncoder{2, 3};
|
||||
|
||||
Reference in New Issue
Block a user