Go to Post This is going to be leet. Or something like that. I can't wait. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 14-02-2009, 00:46
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
GetAlliance value

Hey all,

Does anyone know what the driver station "get alliance" method returns if you're not hooked up to FMS? We'd test it out, except our robot is away from home due to a practice match tomorrow.
__________________
Get yer robot source code here!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2009, 09:42
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Re: GetAlliance value

I'm not sure what it returns, but I know it won't let you do it. You get an error in the debug console. I just wrote code that used the GetAlliance(), commented it out, then wrote code that sets the alliance manually. For release, just switch back to the GetAlliance() code.

EDIT: I looked through the source code and it turns out that GetAlliance() returns 'kInvalid' when you aren't hooked up to FMS. So you're still going to need a set of release code and debug code.

Last edited by Sentient : 14-02-2009 at 09:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2009, 11:09
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: GetAlliance value

Thanks
__________________
Get yer robot source code here!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Value of degree to calculate range? Ianuser Programming 20 14-02-2007 15:34
True Value of Offseason Events Lisa Rodriguez Off-Season Events 8 14-05-2004 13:37
OI and analog: Zero value Astronouth7303 Programming 1 02-02-2004 16:00
Value of Defense archiver 1999 4 23-06-2002 22:21


All times are GMT -5. The time now is 17:54.

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