Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   driver station coding (http://www.chiefdelphi.com/forums/showthread.php?t=105319)

tilky 02-04-2012 07:14

driver station coding
 
is the driver station coded the same way as a regular vi? for example, can we use get refnum and indicators to display information the same way as you would on a regular vi?

Greg McKaskle 02-04-2012 07:50

Re: driver station coding
 
Both are written in the same language, but they are using different parts of WPILib. On the robot, it is easy and fast to get robot values, but the joystick values have to be sent over with a protocol. On the DS, the robot values are remote, and need a protocol to deliver them to the DS. Once you have the values, things are roughly the same to loop, make decisions, etc.

Do you alread have the data pulled overto the DS?

Greg McKaskle

tilky 02-04-2012 07:52

Re: driver station coding
 
no, how would i go about doing this? i thought i could just use the refnums

Greg McKaskle 02-04-2012 08:21

Re: driver station coding
 
The refnums are to the cRIO FPGA, or to other memory on the robot, and it would be pretty slow if it were made to work.

Instead, your choices are to use the low or high priority data, which uses the flatten and unflatten nodes. It isn't hard, but it is easy to get wrong. The other option is to use the network tables -- from FirstForge.

Greg McKaskle

tilky 03-04-2012 06:55

Re: driver station coding
 
can you post an example/link?

Greg McKaskle 03-04-2012 07:38

Re: driver station coding
 
I googled for "frc dashboard example" and found good ones for both LV and C++. Ask questions if you can't follow what they are doing.

Greg McKaskle


All times are GMT -5. The time now is 04:11.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi