|
Re: Encoder rate noise
We used a Low Pass filter of 20% to reduce the noise of our drive encoder rates. I've linked to the code below. Key note: The Low Pass filter code I linked needs to be executed as a preallocated clone reentrant because data is stored for more than 1 iteration. Go to vi properties>execution for this setting. You can tune LPFilt to whatever works best.
Context:
http://puu.sh/9ADYL/292687bb80.png
LPFilt.vi:
http://puu.sh/9ADVq/5b0cc41731.png
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW
3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308 - OCCRA Engineering Excellence - Waterford Kettering 2013
- Innovation in Control - 2011
- Quality award- Northville 2012
- Engineering Excellence- Howell 2014
- Innovation in Controls- Livonia 2014
Last edited by Iaquinto.Joe : 19-06-2014 at 11:58.
Reason: spelling error
|