Go to Post 1902...hmmmmm did it go oink oink boom when it blew up? - Rohith Surampudi [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 06-02-2008, 18:32
Guarana Guarana is offline
Registered User
FRC #1706
 
Join Date: Jan 2008
Location: Wentzville, Missouri
Posts: 16
Guarana is an unknown quantity at this point
Re: Gyro Implementation

Okay, so now I got the gyro code all up and going. I am now working on installing the ADC.

I get to the part where is says to make all the analog inputs = INPUT; So I have this code:

rc_ana_in01 = rc_ana_in02 = rc_ana_in03 = rc_ana_in04 = INPUT;
rc_ana_in05 = rc_ana_in06 = rc_ana_in07 = rc_ana_in08 = INPUT;
rc_ana_in09 = rc_ana_in10 = rc_ana_in11 = rc_ana_in12 = INPUT;
rc_ana_in13 = rc_ana_in14 = rc_ana_in15 = rc_ana_in16 = INPUT;

above the digital inputs section in User_Initialization(). it keeps giving me a syntax error on the top line. Help?
  #2   Spotlight this post!  
Unread 06-02-2008, 21:54
usbcd36's Avatar
usbcd36 usbcd36 is offline
Registered User
AKA: "DOS"
FRC #2399 (The Fighting Unicorns)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Solon, OH
Posts: 151
usbcd36 is a jewel in the roughusbcd36 is a jewel in the roughusbcd36 is a jewel in the rough
Re: Gyro Implementation

The analog pins can't be configured as outputs, so that's unnecessary.
  #3   Spotlight this post!  
Unread 07-02-2008, 00:17
Guarana Guarana is offline
Registered User
FRC #1706
 
Join Date: Jan 2008
Location: Wentzville, Missouri
Posts: 16
Guarana is an unknown quantity at this point
Re: Gyro Implementation

But step 3 in the adc installation says:

3) On the EDU-RC, all analog inputs must be configured as
INPUTs in user_routines.c/User_Initialization().

That is what I did right?
  #4   Spotlight this post!  
Unread 07-02-2008, 01:23
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Gyro Implementation

Quote:
Originally Posted by Guarana View Post
But step 3 in the adc installation says:

3) On the EDU-RC, all analog inputs must be configured as
INPUTs in user_routines.c/User_Initialization().

That is what I did right?
Are you using the small EDU robot controller or the full size FRC robot controller?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 07-02-2008, 08:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Gyro Implementation

Quote:
Originally Posted by Guarana View Post
Code:
rc_ana_in01 = rc_ana_in02 = rc_ana_in03 = rc_ana_in04 = INPUT;
above the digital inputs section in User_Initialization(). it keeps giving me a syntax error on the top line. Help?
The syntax error is because rc_ana_in01 is a constant (I think it resolves to 135). The compiler understandably doesn't like code that tries to assign a value to a constant.

As others pointed out, the step you're trying to follow is only for the EDU-RC mini controller.
  #6   Spotlight this post!  
Unread 07-02-2008, 17:07
Guarana Guarana is offline
Registered User
FRC #1706
 
Join Date: Jan 2008
Location: Wentzville, Missouri
Posts: 16
Guarana is an unknown quantity at this point
Re: Gyro Implementation

Oh wow.. totally skipped over that part.
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
gyro captainking General Forum 4 03-02-2008 22:25
[FVC]: Gyro? Tangello_angela FIRST Tech Challenge 1 23-02-2007 18:20
Gyro magical hands Programming 2 14-01-2005 20:57
gyro odin892 Programming 0 08-04-2003 09:59
Gyro archiver 2001 2 23-06-2002 23:11


All times are GMT -5. The time now is 23: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