View Single Post
  #2   Spotlight this post!  
Unread 26-09-2001, 23:02
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,639
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
Thumbs down 16 bit unsigned math

The problem with "vector math" is not really a problem using PBASIC -- the only problem is that you have to do everything yourself -- no functions are easily there for you to call to do the various stuff you would like to do with Vectors.

The biggest problem is actually just the unsigned 16 bit math makes things more tricky than usual.

On several of our robots, we kept track of the center of gravity of the arm. This allowed us to put in a "virtual counter balance" term so that our feedback loop did not have to have such a high gain.

Apart from the unsigned 16 bit math problem, the next thing was keeping straight the units of the arquments that the trig functions take.

One more thing is the bother of not enough memory or variable space.

Finally, it really stinks that there is no ASIN or ATAN. It would have been nice to use on many occassions. This is something we have gotten around (lookup is a wonderful function) but it is not as easy.


Good Luck,

Joe J.