View Single Post
  #5   Spotlight this post!  
Unread 14-02-2010, 18:11
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: How to update the Virtual compass

I'll be that person to jump in. Assuming you are using the default dashboard code and have it properly included in your code, you probably don't know that the default dashboard posts the same values to the dashboard all the time.

Looking at the code though, it looks like the gyro data is not sent at all. This is a perfect time for an exercise in dashboard coding. Hopefully by looking at the example code you can figure out the C++ to LabVIEW interface used. Just add another U8 (or whatever type is used for gyros) data field to the Digital portion of the dashboard packet, have it read your gyro data in, and in LabVIEW update the packet typedef to what you are using, open the Decode Digital module VI and read the new gyro data you included, and then conect that to the virtual gyro on the dashboard. If you need help with all that I might be able to take some LabVIEW screenshots tomorow when I'm back at the build