View Single Post
  #5   Spotlight this post!  
Unread 03-12-2003, 22:30
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Use Joysticks w/ 2004 EDU

The easiest way to do this is as follows.

DB15 Pins:
1,8,9,15: connect to any of the "analog +5v" pins on the edu controller.
4,5,12: Any ground on the edu controller.
3: analog 1 "sig"
6: analog 2 "sig"

add the following code to user_routines.c right after "void Default_Routine(void){ ":

pwm01 = (unsigned char) (Get_Analog_Value(rc_ana_in01) >> 2);
pwm02 = (unsigned char) (Get_Analog_Value(rc_ana_in02) >> 2);

Hope this helps and that i wasn't too late.
__________________
1139 Alumni