Go to Post I for one think this kind of robot "love" is absolutely inappropriate for children and both teams should have been condemned for such graphic displays. - Chris is me [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-03-2013, 20:40
ggorsuch ggorsuch is offline
Registered User
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Camas, WA
Posts: 21
ggorsuch is an unknown quantity at this point
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?
  #2   Spotlight this post!  
Unread 31-03-2013, 22:43
ggorsuch ggorsuch is offline
Registered User
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Camas, WA
Posts: 21
ggorsuch is an unknown quantity at this point
Found the solution. Have to use GetFloatVariable instead of GetVariable.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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