Go to Post FIRST teams are made of people - students and mentors. In my humble opinion, it doesn't make one iota of difference if the name of the sponsoring organization or the name of the school changes over time. - dlavery [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 01-01-2003, 10:45
BrendaB BrendaB is offline
Registered User
no team (Volunteer)
 
Join Date: Jan 2003
Location: Pontiac, Michigan
Posts: 10
BrendaB is an unknown quantity at this point
Question Robot steering help needed!

I am charged with coming up with code to help our robot steer smoothly during competitions. I am new to programming a robot yet I have visited parallax and innovation first websites for information.

Anyone have any examples of code that could help steer a robot? I am particularly interested in code that uses sensors. I am learning rather rapidly and should be able to pick up on most examples offered.

Also, are there any online tutorials that could team the programming language used for the Basic Stamp and FIRST? If so, please let me know!

Thanks much!
Bren
  #2   Spotlight this post!  
Unread 01-01-2003, 11:20
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,517
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
What kind of steering? Skid, swerve, ackerman?
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #3   Spotlight this post!  
Unread 01-01-2003, 12:28
BrendaB BrendaB is offline
Registered User
no team (Volunteer)
 
Join Date: Jan 2003
Location: Pontiac, Michigan
Posts: 10
BrendaB is an unknown quantity at this point
Smile Steering code

Thanks for your response! I am interested in keeping the robot strait so I guess swerving control. I was thinking of code that would readjust itself automatically when sensing the robot varying from a strait vector. Any ideas?
  #4   Spotlight this post!  
Unread 01-01-2003, 13:00
Tom Schindler's Avatar
Tom Schindler Tom Schindler is offline
Now an AIR Striker....
FRC #0078
 
Join Date: May 2001
Rookie Year: 1997
Location: Middletown, RI
Posts: 462
Tom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond repute
Send a message via AIM to Tom Schindler
you could use the gyro chip to sense the angular acceleration of the robot.... mount the sensor so there will be a readout when the robot turns. Then write the code that checks the stick inputs, and corrects the motor outputs if for some reason hte robot is not doing what the operator intended it to do.

Be careful..... Say you are pushing against another robot, you do not want to modify the speed of a motor..... this could lead to situations where you can have a "Steering assist On/off" button on the UI....

Unless you are going incredibly fast, the driver *should* be able to correct for misdirections of the robot.

Good luck

Tom
  #5   Spotlight this post!  
Unread 01-01-2003, 19:31
Matt Reiland's Avatar
Matt Reiland Matt Reiland is offline
'The' drive behind the drive
None #0226 (TEC CReW Hammerheads)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1999
Location: Troy Michigan
Posts: 712
Matt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond repute
Before we can help too awfully much you have to have an idea of the type of robot you will be controlling (As sanddrag first stated) One of the most difficult will be the swerve steering, the simplest would be skid steering like a tank, the latter is already pretty much completed for you already in the standard code and on the IFI website. As for learning PBasic, the best tool is the emulator that RBayer wrote (White Papers) or an actual controller (The edu bot will also do this too)

Keep posting for more answers to specific questions.
  #6   Spotlight this post!  
Unread 02-01-2003, 00:43
Mongoose's Avatar
Mongoose Mongoose is offline
Registered User
#0948 (Newport Robotics Group (NRG 948))
 
Join Date: Oct 2002
Location: Bellevue, WA
Posts: 45
Mongoose is an unknown quantity at this point
Send a message via AIM to Mongoose
For extremely simple skid (tank-like) steering and two joysticks, you'd use the joystick values for p1_y and p2_y (changes depending on which ports the joysticks are connected to, so there's also p3_y and p4_y) for input. I think by default they're already read in, so you don't need to deal with that. But don't forget to adjust values because of the different orientation of wheels on opposite sides.

Then look at the very bottom line of the default code for a SEROUT command (convenient example located above it), and substitute p1_y and p2_y for the corresponding PWMs your motors are plugged into.

I'd suggest also putting in a snippet of code (at least temporarily) to kill the motors when the trigger is being held down in case something goes haywire.

Last edited by Mongoose : 02-01-2003 at 00:52.
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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
Index of team's post about their robot... Ken Leung Robot Showcase 1 20-03-2002 17:10
Controversy at the SCRRF Scrimmage -- opinions needed! ahecht Rules/Strategy 31 05-03-2002 20:43
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 05:06.

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