You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, sorry if this is an already known issue. When my team was setting up yagsl on our swerve drive we noticed that the conversion factors for angle motors and the inversion of the motor are set after the position of the motor was being set. This seemed to cause the motors to be set to about the (angle conversion factor) times higher than what they theoretically should be, and moving the setting of the conversion factor to before the position is set fixed the issue for us. And there was also a similar issue for us with the inversion.
absoluteEncoder = moduleConfiguration.absoluteEncoder;
angleMotor.configureIntegratedEncoder(moduleConfiguration.conversionFactors.angle);
if (absoluteEncoder != null)
{
absoluteEncoder.factoryDefault();
absoluteEncoder.configure(moduleConfiguration.absoluteEncoderInverted);
angleMotor.setPosition(getAbsolutePosition());
}
// Config angle motor/controllerangleMotor.configurePIDF(moduleConfiguration.anglePIDF);
angleMotor.configurePIDWrapping(0, 180);
angleMotor.setInverted(moduleConfiguration.angleMotorInverted); // haven't yet tested moving this line yet but we fixed the issue in an other very hacky way(not a universal way)angleMotor.setMotorBrake(false);
Thanks for your time, and this great library.
p.s. if I forgot to include something, sorry
The text was updated successfully, but these errors were encountered:
This shouldn't cause any issue however it never hurts to be verbose. If you would like to create a PR from https://github.com/BroncBotz3481/YAGSL-Example/tree/dev I will include this in the upcoming version and credit you in the changelogs!
Hi, sorry if this is an already known issue. When my team was setting up yagsl on our swerve drive we noticed that the conversion factors for angle motors and the inversion of the motor are set after the position of the motor was being set. This seemed to cause the motors to be set to about the (angle conversion factor) times higher than what they theoretically should be, and moving the setting of the conversion factor to before the position is set fixed the issue for us. And there was also a similar issue for us with the inversion.
vs
Thanks for your time, and this great library.
p.s. if I forgot to include something, sorry
The text was updated successfully, but these errors were encountered: