|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Communicating with cRIO over WiFi
Quote:
|
|
#2
|
|||
|
|||
|
Re: Communicating with cRIO over WiFi
Alright, but the issue of sending data to the cRIO and using it still remains..
|
|
#3
|
||||
|
||||
|
Re: Communicating with cRIO over WiFi
The theory is that the dashboard code would do the vision processing and send the code to the cRIO. Again, I defer to other threads on the vision tracking subject.
|
|
#4
|
|||
|
|||
|
Re: Communicating with cRIO over WiFi
Quote:
EDIT: I've found this class called SmartDashboard and this class called Dashboard. It specifies some functions, which, if i understand correctly, are used to Get and Put data from and to the Dashboard. Are there any examples for the usage of this Class? I think the info on the WPILib reference is insufficient.. Last edited by UriF : 14-01-2012 at 05:14. |
|
#5
|
||||
|
||||
|
Re: Communicating with cRIO over WiFi
Again, I'll defer to other threads on the vision tracking subject. I won't be the one doing it, so I don't know all the details.
|
|
#6
|
|||
|
|||
|
Re: Communicating with cRIO over WiFi
The KinectGestures example has some commented out calls to the SmartDashboard.
|
|
#7
|
|||
|
|||
|
Re: Communicating with cRIO over WiFi
BTW, for competition, your laptop needs to be wired into a router, which communicates over WiFi to the robot. In the shop, you can take shortcuts and use WiFi directly to the robot's radio or tether directly to the robot's radio. The key is that you need to form a network link with the robot.
See the other threads for how to get camera images to the laptop. Once you process the image on the laptop, you'll need code in your dashboard to establish a socket connection to code in your robot that establishes a socket connection. Check out msdn.microsoft.com for samples on network programming. Once you have your own connection, you can send commands from the dashboard to the robot. The commands can be anything you want. KC |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|