Go to Post Why does kick off take so long to get here but ship date comes toooooooooo fast? - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming > WindRiver C++
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
Innovation First International, Inc.
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
ITT Tech
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-20-2012, 12:51 PM
connor.worley's Avatar
connor.worley connor.worley is offline
red ones go faster
FRC #1538 (The Holy Cows)
Team Role: Programmer
 
Join Date: Mar 2011
Rookie Year: 2010
Location: San Diego
Posts: 329
connor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant futureconnor.worley has a brilliant future
Get cRIO device name?

The imaging tool allows you to assign a name to a cRIO. Does anyone know how to access this name? Would gethostname be appropriate? I'm interested in discerning between the practice and competition bots.

Thanks.
__________________
Manager of Software and Electrical
Scout with CowScoutLike The Holy Cows on Facebook

2013 Championship Chairman's Award Winners

San Diego - Regional Chairman's Award, Engineering Excellence Award sponsored by Delphi
Inland Empire - Regional Winner, Quality Award sponsored by Motorola
Reply With Quote
  #2   Spotlight this post!  
Unread 05-20-2012, 03:45 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 567
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Get cRIO device name?

Yes, you can get the host name by:
Code:
#include <hostlib.h>
 
char hostName[MAXHOSTNAMELEN];
 
gethostname(hostName, sizeof(hostName));
printf("Host: %s\n", hostName);
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 05-21-2012, 07:05 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 6,621
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Get cRIO device name?

We use the IP address to discern between practice and competition robots.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-24-2012, 11:52 PM
garyk garyk is offline
Programming Mentor, 668 & 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 67
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: Get cRIO device name?

We've used a jumper on a Digital Input, to ground - present on one bot and absent on the other, reading 0 and 1, respectively.
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2012
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 05:31 PM.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School