View Single Post
  #3   Spotlight this post!  
Unread 14-10-2004, 20:59
colt527 colt527 is offline
Registered User
AKA: Ken Colton
FRC #0527
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Long Island
Posts: 123
colt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to behold
Send a message via AIM to colt527
Re: No Signal From Gyro

Quote:
Originally Posted by Mark McLeod
Your analog I/O should already be setup in User_Initialization() in the user_routines.c file by the statement:

Set_Number_of_Analog_Channels(SIXTEEN_ANALOG);

I think Get_Analog_Value returns "unsigned int" if I recall correctly, so you might want to typecast the call to “(long int)”.

Will you be at the SBPLI mini-comp tomorrow? If so look me up and I'll help you debug the gyro input.
1.) We have that Set_Number_of_Analog_Channels() in there
2.) We have tried to type cast it to every variable known to c =P

it would just be

gyro_input = (long int)(Get_Analog_Value(rc_ana_in01));

right?

3.) Nah, we wanted to go to the mini-comp but could not afford the cost of a bus since the district busses would still be on duty.
__________________
Mentor, Team 527 -- Plainedge Red Dragons
FIRST Volunteer
SUNY Stony Brook Computer Science 2010
kcolton@gmail.com

Last edited by colt527 : 14-10-2004 at 21:06.