Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   RoboRealm GetVariable NetworkTable (http://www.chiefdelphi.com/forums/showthread.php?t=115433)

ggorsuch 25-03-2013 20:40

RoboRealm GetVariable NetworkTable
 
We are using RoboRealm on the driverstation to do vision tracking. We have it working well, and can aim. However, because of the vibration of our shooter, we don't have the camera fixed securely to it. Because of that, there is the possibility for it to move. As we have it, the offset formulas are in a vbscript in roborealm. We use the offset value to overlay cross hairs on the screen in case we want to aim manually. On the cRio (java), we have the ability to manually create an additional offset if the auto aim is a little off. We then store that value in network table and robot preferences. We are having trouble getting that variable back into RoboRealm. I can see the variables in the network tables plugin. They are listed in available plugins, with the correct values, but they never seem to have any value when we go to use them.
We are using
Code:

gunnerOffsetX = GetVariable("/Preferences/gunnerOffsetX")
to get the variable, then we use it in our formula.

Any ideas as to why this isn't working?

ggorsuch 31-03-2013 22:43

Found the solution. Have to use GetFloatVariable instead of GetVariable.


All times are GMT -5. The time now is 03:06.

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