Go to Post Yes, blame Gary. For everything. - MissInformation [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #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, 71 views)
File Type: c user_routines.c (13.5 KB, 64 views)
  #2   Spotlight this post!  
Unread 11-02-2008, 08:43
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,016
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: May I get a steering wheel and pedal code check?

I can't comment on the code (sorry!) but I'll comment on the driving concept...we are using a small R/C type control, with a tiny 2" steering wheel and trigger type throttle, and a 6wd skid steer chassis. The programming team decided it works well if the steering wheel turns the robot even if the throttle is not touched--it will spin the robot in place when you turn the steering wheel, and the speed it spins will be proportional to how far you steer the wheel. This gives the driver one more way to move the robot, which you lose if you require the throttle to be activated (adding forward motion to your steering).

You might want to think about this, as it could affect your plans. One big advantage of skid steering is that it does let you turn "on a dime".

If you are using Ackermann type steering instead of skid steer, then this would not apply.
Closed Thread


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 02:55.

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