View Single Post
  #27   Spotlight this post!  
Unread 02-12-2010, 02:41 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: outputting data to DS's usermessage

Quote:
Originally Posted by yoyodyne View Post
Thanks Joe.

How do you wait for a new DS packet?
You can call IsNewControlData() on the DriverStation object.

Generally this shouldn't be necessary for this use case since usually the dashboard is expecting one or the other... so your robot program should only be using one or the other.

The only case I can see where you would use this is if you would like to print one set of messages each time a packet goes out, then you could use this to tell when that happens.

-Joe
Reply With Quote