View Single Post
  #10   Spotlight this post!  
Unread 30-04-2008, 16:26
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
Re: Need help with PWM 1-2ms pulse control

I did mine like this:

printf("Analog In = %d\n", Get_Analog_Value(rc_ana_in01));

But thats right though, the readings im getting are still 0-22. could it be that I've got the pot hooked up wrong? I have it connected to ground and signal. Its a 10k pot, and I tested it on the multimeter.

Could it be something in the user_initialization? Im using the EDU Default code right now to debug this problem.

Set_Number_of_Analog_Channels(TWO_ANALOG);

Last edited by Generalx5 : 30-04-2008 at 16:28. Reason: Yes, the ini file is set up with 2 analog inputs. Default