View Single Post
  #8   Spotlight this post!  
Unread 03-10-2007, 19:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: pwm signal delay

Quote:
Originally Posted by Kevin Watson View Post
If the twitchiness occurs while saving camera parameters to EEPROM, the likely problem is that I call printf() many times in rapid succession to draw the menu on the terminal screen. This bogs down the CPU and causes a long delay between PWM pulses. If the delay is long enough, the servos assume something is wrong and attempt to center the output shaft.
That doesn't sound right to me, for two reasons. First, the servo twitch occurs only when EEPROM is written. It does not happen when the menu is written to the terminal at other times. Second, servos don't "attempt to center" when they lose signal. They stop driving the shaft completely.

But we agree that it isn't a problem in practice. I consider it a minor cosmetic blemish on otherwise shiny code.