![]() |
Re: Questions about Encoders and PIDControllers
Quote:
|
Re: Questions about Encoders and PIDControllers
The WPILibJ source code is in the sunspotfrcsdk/lib directory in two zip files. One has the full project and the other has the source directory only.
Brad |
Re: Questions about Encoders and PIDControllers
Quote:
Instead of doing that, keep an accumulator which gets incremented each control iteration by the PID output times some gain. e.g. accumulator += gain * PID_output Use the value in the accumulator as the command to the motor. (you'll also want to clamp the value in the accumulator) |
Re: Questions about Encoders and PIDControllers
Quote:
Quote:
|
Re: Questions about Encoders and PIDControllers
Quote:
It seems like WPILib development should be a little more open to the community... I understand if they want to keep a few files secret (e.g. kinect last year), but I see *no* reason that the incremental changes that they published this year needed to be secret until kickoff. If there had been something really new, then they could just develop that separately and have a script commit it at kickoff. This might be better suited to a DVCS like git where you could have a local branch so you don't loose commit history, but I digress. |
Re: Questions about Encoders and PIDControllers
On the topic of open source - I gotta say I agree whole heartedly. We are encouraged to be open in our developments and I'd really appreciate seeing WPILib become more open and transparent. It would also promote diff-patch fixes and/or pull requests from experienced teams who find issues and solve them which would reduce the overall burden on the WPI team.
Anyone want to address why this would be problematic? Or make it happen? :) bob |
| All times are GMT -5. The time now is 14:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi