View Single Post
  #7   Spotlight this post!  
Unread 10-03-2005, 23:30
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Re: Question about human disable

If you're worried about the PID building up, you can disable your algorithm while the robot is disabled.

There is a bit called disabled_mode that is 0 of the robot is running and 1 if its disabled. If you want, you can tell the PID only to run if disabled_mode == 0, other wise, just leave it. This will keep your integral term from building up and making the arm be crazy.

Hope this helps.

-Tony K
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year