|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Network Tables
Can you try running the SmartDashboard from a command line (using CMD and the java -jar SmartDashboard.jar command) to verify that it's not throwing any exceptions.
In the SmartDashboard, NetworkTables is already initialized so you should not do the setClientMode() and setIPAddress() in your extension. Make sure those methods aren't being called in your code. If you do see any exceptions coming out, please post them here so we can try to diagnose the problem. Brad |
|
#2
|
|||
|
|||
|
Re: Network Tables
Via the link above, there is the category "The client (laptop) side of the program." Code exactly as is shown in this will not function. The robot side is also more or less as shown and will give/take values to/from the network table viewer.
Without the specified lines, setClientMode() and setIPAddress() there are no errors but also no connection. It will not print status as client with if (not server) print is client nor will it do the same with connection. With them, there are also no errors but it continuously fails to connect. |
|
#3
|
|||
|
|||
|
Re: Network Tables
Could I get a basic primer code in java for the client and cpp for the robot to start from?
|
|
#4
|
|||
|
|||
|
Re: Network Tables
I am having the same problem. I started with Daisy's vision code from last year and have modified it to fit our needs. The following line
Code:
Robot.getTable().putNumber("azimuth", azimuth);
Code:
SmartDashboard.getNumber("azimuth");
With the following lines, I lose camera feed on the SmartDashboard: Code:
NetworkTable.setClientMode();
NetworkTable.setIPAddress("10.35.2.2");
NetworkTable table = NetworkTable.getTable("visiondata");
.
.
.
table.putNumber("azimuth", azimuth);
When I comment out the first 2 of those 3, I get my camera stream back but still no data output. Any ideas?? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|