Go to Post Good judgement is the result of Experience. Experience is the result of Poor Judgement. - ChrisH [more]
Home
Go Back   Chief Delphi > FIRST > Robot Showcase
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
  #8   Spotlight this post!  
Unread 05-03-2004, 00:47
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: pic: Blue Lightning 578 presents KateGleasonOne

we closed the loop on steering last year by looking at the joystick1 X axis as a desired turn rate, and compairing it to the actual turn rate from the gyro sensor

it worked very well, esp keeping the bot straight going up the ramp- but the thing that didnt sit right with me was, when the commanded turn rate was equal to the actual turn rate, you ended up with no error signal - so there was no obvious way to command the motors to keep turning (if you were turning)

this year for auton mode, we create a compass heading with the yaw sensor by initializeing a variable to 32,000 - then we add the (sensor>>2 -127) to that on every loop of the code - so when the bot turns right, the accumulator goes down, when it turns left it goes up - and we use that as the relative actual heading of the robot

this let us use a straight PID loop to steer - if we want to be going straight we take the error from 32,000 and scale the error signal to be the X axis command into the one joystick equation

then it hit me one day. In normal mode, you can create another variable, desired heading, and init it to 32,000 as well - and when the driver moves the joystick add the x axis signal to the accumulating desired heading - and it will generate a desired (sorta like a projected heading) and we could compair the compass heading, and have the same kind of PID equations we used in auton mode

so in auton mode, the SW has preset desired headings, like go straight (32000) then turn left 80° (new desired heading is 29500) ect

and when the driver closes the loop it starts at 32000, clears the compass to 32000, and as he moves the stick left and right its changing the desired heading in realtime

all you have to do is get your gains right for your drivetrain - I think we are dividing the error signal by 8 - and limit the commands to the 8 bit range - and it works so nice

what I mean by steering like a hitec servo is, its like you connected a servo to the x axis of the joystick, thats how the robot turns - you nudge the stick slightly to the left and that desired heading starts accumulating to the left, and the robot slowly and precisely turns to the left

you hold the stick straight and push it forwards and the bot move forwards, dead straight.

Last edited by KenWittlief : 05-03-2004 at 01:06.
 


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
pic: MOE 365 Presents GizMOE CD47-Bot Robot Showcase 7 09-03-2004 02:04
pic: 571 - Team Paragon is blue this year.... CD47-Bot Robot Showcase 8 22-02-2004 20:08
pic: Cyber Blue 234 teaser CD47-Bot Robot Showcase 9 08-02-2004 19:32
pic: Cyber Blue Animation Concept CD47-Bot Extra Discussion 1 26-01-2004 18:53
pic: Cyber Blue 234's flailer CD47-Bot Extra Discussion 12 22-03-2003 21:38


All times are GMT -5. The time now is 03:16.

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