Merge pull request #7 from Team4388/gyro_fix

Gyro fix
This commit is contained in:
66945
2023-01-14 14:28:18 -07:00
committed by GitHub
6 changed files with 186 additions and 8 deletions
@@ -9,6 +9,7 @@ package frc4388.robot;
import com.ctre.phoenix.motorcontrol.InvertType;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.can.TalonSRX;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX;
import com.ctre.phoenix.sensors.CANCoder;
import com.ctre.phoenix.sensors.PigeonIMU;
@@ -27,6 +28,10 @@ import frc4388.utility.RobotGyro;
* testing and modularization.
*/
public class RobotMap {
private WPI_Pigeon2 m_pigeon2 = new WPI_Pigeon2(14);
public RobotGyro gyro = new RobotGyro(m_pigeon2);
private TalonSRX backleft = new TalonSRX(-1);
public SwerveModule leftFront;
public SwerveModule rightFront;