Go to Post If enough students "get it," the team will begin to. And if enough students "get it," the smart ones will seek out all the extra help they can get. That's how I found Chiefdelphi... - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Steering Wheel and Throttle programming windell747 Programming 6 29-01-2008 08:17
Steering wheel radicalnerd Technical Discussion 30 31-05-2007 00:56
Algorithim question: 4 wheel steering and power Validius Programming 2 15-11-2005 17:41
pic: Chantilly Academy's 4 Wheel Drive 4 Wheel Steering!!!! jskene Robot Showcase 25 18-02-2005 20:24
need glp programing steering with a steering wheel Matchew Programming 2 10-02-2003 14:20


All times are GMT -5. The time now is 17:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi