View Single Post
  #6   Spotlight this post!  
Unread 21-02-2009, 10:57
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Labview Question

Trying to emulate a physical system is really hard to do, because there are so many things that you have to take into account.

I did give this a try myself, though. I was trying to emulate our turret. I got the spec sheet for the globe motor, found the rpm, multiplied it by 0.5 (50%) to get it's real rpm, divided it by 60 to get the rps, and multiplied it by 360 to get the degrees per second.

To emulate the encoder on the motor, I took the desired speed, multiplied it by 12 (the voltage of the globe motor), and I assumed that there was a linear association between the voltage and the degrees per second (there probably isn't) and convert that value to desired degrees per second. I multiplied that value by time elapsed, and added it to the turret angle.

As you can see, it's a very involved process, and not completely accurate. I was able to find and squash some bugs in the software though, so it's not without merit.
__________________
Twitter Profile
Reply With Quote