![]() |
Problems forming NetworkTable between Robot and SmartDashboard
Hello!
We are currently trying to form a connection between the robot and the Smart Dashboard. Here is part of the extension code we have written in Java: Code:
if (table== null)Code:
NetworkTable::SetTeam(1943);Thanks! |
Re: Problems forming NetworkTable between Robot and SmartDashboard
How are you initializing NetworkTable in C++? Is it a static declaration? Could you post the entire class?
|
Re: Problems forming NetworkTable between Robot and SmartDashboard
Quote:
Code:
#include "WPILib.h" |
Re: Problems forming NetworkTable between Robot and SmartDashboard
The issue is probably how you are initializing the NetworkTable. You are setting it to null, where it probably should be initialized. I have not yet worked with NetworkTable's, but you can try looking at the WPILib Cookbook. Also, since you have declared a variable, you can use it as a pointer, so instead of this:
Code:
RobotDemo(void):Code:
RobotDemo(void): |
| All times are GMT -5. The time now is 02:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi