View Single Post
  #10   Spotlight this post!  
Unread 09-02-2009, 19:53
mianesva mianesva is offline
Registered User
FRC #1073
 
Join Date: Oct 2008
Location: Hollis, NH
Posts: 1
mianesva is an unknown quantity at this point
Re: PrintF to Driver Station

If using Windriver you can just create one of the sample projects to demo the dashboard class.

It is extremely useful to download/install the WPI Lib sources...

Specifically, driverstation.cpp and dashboard.cpp

It is clear that dashboard.cpp is a packer class that encodes the data in a way for Labview to unpack...

One does not need to use this particular way of packing data if one is to write their own dashboard (e.g. using c#, java, etc...). All that is needed is a sample upd server code to read port 1165 as noted earlier in this tread... One can then come up with their own way of encoding data in the packets....

The robot essentially sends the 984 or so bytes every 20ms... it is all there in the code in driverstation.cpp (senddata function)

These bytes then go to the driverstation (address 10.x.x.5) which then sends them to the 10.x.x.6 address. This is hardwired somewhere.... The laptop that has 10.x.x.6 address then receives the information via udp from the driver station....
Reply With Quote