Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Sending data to robot from driver station computer (http://www.chiefdelphi.com/forums/showthread.php?t=132289)

JohnM 06-01-2015 21:46

Sending data to robot from driver station computer
 
The language my team is C++. Anyways lets say you wanted to make a program run on your computer that was separate from the Driver Station software, and that program had to send commands to the robot.
  1. How would you go about sending commands to the robot easily? Any avaible classes?
  2. Also how would you make the robot easily understand these commands?

Note: This question might seem vague to probably most of you but I wasn't sure how to word this in the best possible way. If you have any specific questions about this please ask and I will try to clear it up some more.

Jared 06-01-2015 22:03

Re: Sending data to robot from driver station computer
 
Have you looked at NetworkTables? It's described on the WPI documentation website. It sends numbers, text, or other data between the DS/roboRIO.

TFleig78 06-01-2015 22:07

Re: Sending data to robot from driver station computer
 
You can use SmartDashboard. It's very well explained here:
https://wpilib.screenstepslive.com/s/3120/m/7932

You are able to send data back and fourth from the dashboard, running on the DS to the robot.

virtuald 06-01-2015 23:17

Re: Sending data to robot from driver station computer
 
SmartDashboard/SFX are great if you want a pre-built program to do the communication via NetworkTables. If you want to write your own program, NetworkTables has libraries available in multiple languages. I always recommend pynetworktables, but I'm biased. :eek:


All times are GMT -5. The time now is 02:38.

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