windell747
11-02-2008, 08:37
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
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