Trapping JVN (or any other IFI employee) is negative infinity [I]and[/I] a caption contest. Trapping 1114 is a measly 50 points, unless you trap Karthik, which multiplies your entire score by -1. - EricH [more]
Tip of the hat to Martin for reminding me of this.
Based on the above linked paper, I threw together the LabView "equivelent".
I chose to set it up with a counter instead of an encoder, but you can still use an encoder as the input to the counter. With this configuration, you can also use a simple Banner sensor and a piece of Retroreflective tape on the wheel if you would like. I also chose to use the 10ms. periodic loop.
With this version, you should be able to modify the loop delay without changing anything else. It will compensate for the change in interval time.
Please test this before you use it. This is built purely in code only and has not been debugged on actual hardware......yet.
[EDIT] I realized I had not made a compensation in the slew rate limiter to take into account different loop execution times. So, in the next version I'll have it added. [/EDIT]
[EDIT#2] See my next post, post #36, for the updated version of the Periodic tasks.vi. [/EDIT#2]
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist