View Single Post
  #1   Spotlight this post!  
Unread 11-02-2008, 08:37
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
May I get a steering wheel and pedal code check?

Hi guys, With it coming down to the wire, I am writing a lot of code away from the bot to make the most use of testing during the time im with the bot. I'm sure that a lot of us programmers are doing the same. I just wrote some code that will take input from our steering wheel and pedal and generate the PWM values.

Unlike, the mixed x and y joystick code, I've modified the code so that the bot will not move untill the pedal is pressed. My thought was to make the code act like driving a car--turning the steering wheel does nothing until the pedal is pressed.

I won't see the bot until later today so I would like to bounce my code off of some of you programmers before I load it on the bot. Feel free to let me know of any problems that you may see! By all means, you can copy my code if you can find use of it for your team!

I don't know how to post code directly, so I've attached it as files. In addition to my code, as some of you may notice, I've followed the code modifications suggested by team 1540.

Here is where to look at:
-Custom_Remote_Control function in custom_routines.c
-the "Custom_Remote_Control" function is called from Master_Data_From_uP function in user_routines.c.
-Macro substitutions at the top of custom_routines.c

Thanks!
Windell
#2477
Attached Files
File Type: c custom_routines.c (5.5 KB, 70 views)
File Type: c user_routines.c (13.5 KB, 63 views)