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.