View Single Post
  #3   Spotlight this post!  
Unread 16-11-2001, 01:49
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,633
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
PWM pulse period != Pbasic Loop time

If my memory server, I think the update rate of the Victors is 50hz (1 every 20 msecs). The interface is from the RC industry.

It is possible that the RC stretches the 20 msec updates to 25 msec, I but I am not sure.

It is my understanding that the width of the pulse is the main thing to hold not necessarily the time between pulses. As Lloyd said, I think that 2msec is Zero voltage and then you go +/- from there. I can't recall the exact format but is it something like 3msec is full foward and 1 msec is full reverse.

On thing that you should know is that the Pbasic loop that we all have to live with on the Innovation First controllers is not the same as the pulse rate for the Victors -- your Pbasic loop is allowed to miss 5 data packets (125 msec) without anything bad happening -- I am sure that the master CPU that drives the PWM outputs does not wait that long between pulses even if your Pbasic loop does take that much time.

Joe J.