Go to Post they used the same random number generator we used for our autonomous drive code . . . (oops did I say that?) - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-02-2012, 19:46
siggy2xc siggy2xc is offline
Registered User
AKA: Tyler Siegrist
FRC #1756 (Argos)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: peoria
Posts: 70
siggy2xc is an unknown quantity at this point
Controls on dashboard

I can create indicators on the dashboard but I would also like to be able to put some controls on as well. How would I go about doing this?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2012, 09:06
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Controls on dashboard

Use a UDP port to communicate data back to the robot. Currently, we have offboarded our vision processing to the driver's station, and have a couple of customizable controls on the dashboard.

The hardest thing is trying to encode your data into strings, because UDP Ports only accept data as a string.

Give me two hours and I will post some example code.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2012, 13:31
demons858 demons858 is offline
Registered User
FRC #0858 (Demons)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2005
Location: grand rapids, michigan
Posts: 10
demons858 is an unknown quantity at this point
Re: Controls on dashboard

so what happened to the two hours I think this is what im looking for too
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2012, 15:09
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Controls on dashboard

School came up. I am working on the example code right now.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2012, 15:22
demons858 demons858 is offline
Registered User
FRC #0858 (Demons)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2005
Location: grand rapids, michigan
Posts: 10
demons858 is an unknown quantity at this point
Re: Controls on dashboard

Thnats understandible school comes first
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2012, 15:38
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Controls on dashboard

Ok, here we go. This is a short example that encodes a Decimal Numeric, a Boolean, and a string and sends it over UDP from the dashboard to the Robot, at which point it is decoded and sent out in the exact same data types.

You can re purpose this to send data back to the dashboard by switching the port and IP addresses on the UDP reads and writes.

For a more in depth project, I off boarded our vision processing to our dashboard, and sent the target information back to the robot. I can post this code, although it is significantly more in depth than this code.

If you have any other questions, feel free to either PM me, or post on this thread again.
Attached Thumbnails
Click image for larger version

Name:	UDP String Example.png
Views:	66
Size:	98.2 KB
ID:	12078  
Attached Files
File Type: vi UDP String Example.vi (15.6 KB, 5 views)
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2012, 17:03
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Controls on dashboard

I have some example code attached to this post. Take a look, and I'll gladly answer any questions that might arise.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2012, 19:14
demons858 demons858 is offline
Registered User
FRC #0858 (Demons)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2005
Location: grand rapids, michigan
Posts: 10
demons858 is an unknown quantity at this point
Re: Controls on dashboard

Thanks a ton
Reply With Quote
  #9   Spotlight this post!  
Unread 24-02-2012, 00:28
siggy2xc siggy2xc is offline
Registered User
AKA: Tyler Siegrist
FRC #1756 (Argos)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: peoria
Posts: 70
siggy2xc is an unknown quantity at this point
Re: Controls on dashboard

Thanks a ton guys, I'll be trying this out at the next meeting!
Reply With Quote
Reply


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 22:11.

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