View Single Post
  #3   Spotlight this post!  
Unread 18-02-2009, 08:46
LVMastery LVMastery is offline
LabVIEW Educator and Mentor
AKA: Ben Zimmer
FRC #0843 (Wildcats)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 47
LVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud of
Re: So, honestly, who's still programming?

Quote:
Originally Posted by PhilBot View Post
1629 is still tweaking. Something that annoys me about our code is that I run a pid loop for the wheels (in periodic tasks) and during the disabled period, any latent movement causes the pid to burp when restarted.

Wondering the best way to reset the pids and ramp functions during disable.
One thing I would consider is using the reinitialize input of the PID Control Input Filter.vi and PID.VI itself. You could use a global to send an enabled boolean from the main loop which is true when teleop is enabled and false when disabled. Or,

As an aside, and for all of the people asking about Joystick Functions: there is a fantastic function inside the OpenG Library called Boolean Trigger. It will output a momentary boolean high when the input value has a rising (and/or falling edge) which makes trapping a change of state a lot easier.

Naturally ( ) I have a TipJar entry discussing the OpenG library and how to install it: http://www.lvmastery.com/TipJar2008-03-13

Ben
__________________
Ben Zimmer
Enable Education
www.EnableEducation.com
www.FRCMastery.com
email: ben@enabletc.com
Phone/Fax: (905) 864-1858
Toll Free: (877) 872-4619
Reply With Quote