Hi I am new to swerve programming and need to renew our code of 2023 swerve. I saw the statement of set(ControlMode,double)
turned to setControl(ControlMode.with(double))
. But I am a newbie and the closed-loop control doc says there is 2 types of controlmodes like with voltage comp and without voltage comp. English isn’t my mother lang and couldn’t understand it (with translate actually) I am searching but there is so much math and I blew up, anybody can explain? Thanks for help and there is our old code version => mAngleMotor.set(ControlMode.Position, Conversions.degreesToFalcon(angle.getDegrees(), Constants.Swerve.angleGearRatio));