Go to Post My team heard another team describe the Championships as "10,000 kids jamming the Georgia Dome for 3 days…more nerds per square foot than a Star Trek convention…and more purposefully employed " Is this true?, Because I don't think there could possibly be a more wonderful place on earth - Emily3204 [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 18-02-2008, 12:24
mikaljr mikaljr is offline
Registered User
FRC #2588
 
Join Date: Feb 2008
Location: Pomona
Posts: 1
mikaljr is an unknown quantity at this point
Where? Quick explanation please...

Okay, I am just wondering where I am to put the code for the tele-operable mode. Does it go in the user_routines file or where?

Also can anyone tell me the difference between these variables...

rc_dig_out
rc_dig_in
digital_io

Thanks to anyone who can give me any help! :
  #2   Spotlight this post!  
Unread 18-02-2008, 12:35
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Where? Quick explanation please...

All teleop code should be in user_routines.c, in the function void Process_Data_From_Master_uP(void).
  #3   Spotlight this post!  
Unread 18-02-2008, 12:44
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Where? Quick explanation please...

Quote:
Originally Posted by mikaljr View Post
Also can anyone tell me the difference between these variables...

rc_dig_out
rc_dig_in
digital_io

Thanks to anyone who can give me any help! :
the digital_io variables need to be set to either INTPUT or OUTPUT, depending on how you're using them. for example, if you have a switch hooked up to one, it would be an INPUT. if you have an LED hooked up to one, then that would be an OUTPUT.

You then use the rc_dig_in or rc_dig_out to read/set your digital_io ports. only use the rc_dig_in for ports you set as an input, and rc_dig_out for ports you set as an output.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help need quick answer :) mcf747 Pneumatics 7 11-02-2008 23:40
PID Article / Explanation I Wrote Guy Davidson Programming 4 20-01-2007 20:48
FLL explanation video EHaskins FIRST Lego League 4 12-12-2006 10:07
[OCCRA]: Holly Match 12 Explanation Nate Smith OCCRA Q&A 0 18-11-2004 08:17
Please help asap.. Where do the victor motor 3 pin wires plug into 1166 Electrical 10 16-02-2004 12:07


All times are GMT -5. The time now is 01:00.

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