Hi all,
We’re having an extremely weird issue…I followed all documentation, and our encoders are returning a good value in PhoenixTuner, but when I cout leftMaster.GetSelectedSensorPosition(0), it reads 0 no matter what (even though there’s a good value in PhoenixTuner for PID ID 0).
Here is our motor initialization:
WPI_TalonFX leftMaster(11);
leftMaster.ConfigSelectedFeedbackSensor(FeedbackDevice::IntegratedSensor, 0, 30);
leftMaster.SetSensorPhase(true);
leftMaster.SetInverted(true);
leftMaster.Config_kF(0, 0.048927863, 30);
leftMaster.Config_kP(0, kP, 30);
Any ideas?