I’m programming in LabVIEW and I’m having a hard time reviewing their code. I reached out to SDS already. Figured I would reach out to the CD community as well.
Use position mode, motion magic is bad at continually changing setpoints such as a swerve module, you will always see some jitter when tracking.
I would set a reasonable peak closed loop output, maybe something like 6-9 volts, this helps keep current draw down.
Slowly increase p until you get some slight overshot, put the robot on the carpet and re test. The carpet should artificially add some D into the mix and you should be good to go.
We’ve been running a Position loop with only P for the duration of our SDS experience.
Ah I read LabView and then immediately forgot it. Their code is using
P = 0.2
I = 0.0
D = 0.1
With position control over motion magic like someone recommended above.
Well position is supposed to use PID to set your swerve modules to rotate to a certain position, velocity is supposed to spin your modules at a certain velocity. I’m not sure why position would mess up your swerve and why velocity would work, unless its something different with LabView, since I’m not familiar with it.
We’re not using the SDS module. We have designed two swerve modules. One using REV and the other using Falcons. We use the same control for the steering motor as 4414. Position mode with P only. We are also using LabView.