[examples] Use PWMSparkMax instead of PWMVictorSPX (#3156)

This accurately reflects the motor controllers that are distributed in
the Kit of Parts.
This commit is contained in:
Prateek Machiraju
2021-02-13 01:14:56 -05:00
committed by GitHub
parent 69e8d0b65d
commit be0ce99007
89 changed files with 304 additions and 304 deletions

View File

@@ -5,7 +5,7 @@
#pragma once
#include <frc/AnalogPotentiometer.h>
#include <frc/PWMVictorSPX.h>
#include <frc/PWMSparkMax.h>
#include <frc2/command/PIDSubsystem.h>
/**
@@ -40,7 +40,7 @@ class Wrist : public frc2::PIDSubsystem {
void Periodic() override;
private:
frc::PWMVictorSPX m_motor{6};
frc::PWMSparkMax m_motor{6};
double m_setpoint = 0;
// Conversion value of potentiometer varies between the real world and