Go to Post Every match they would leave blue and red skid marks all over the carpet. It was like someone roadkilled a Smurf. - Koko Ed [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
  #16   Spotlight this post!  
Unread 14-02-2004, 20:54
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Newbie Autonomous Question(s)

also, remember the built-in deadzone on the Victors, which is approximately 10 in either direction, so 117 and 137 are right on the edge of this deadzone - the robot is going to move almost not at all. i'd recommend something close to 150 and 100 or so at the least. your problem is probably that you're setting both of the motors inside the deadzone, so the robot doesn't move.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #17   Spotlight this post!  
Unread 16-02-2004, 10:02
platt platt is offline
Registered User
FRC #1345
 
Join Date: Feb 2004
Location: fl
Posts: 4
platt is an unknown quantity at this point
Re: Newbie Autonomous Question(s)

hey i am a new team and i am i a great need is there a code for the stupid banner sensore some plz help
  #18   Spotlight this post!  
Unread 16-02-2004, 11:23
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Newbie Autonomous Question(s)

Quote:
Originally Posted by platt
hey i am a new team and i am i a great need is there a code for the stupid banner sensore some plz help
What sort of code? I assume you mean line following or something similar. Do a search for banner or line or something like that. There's tons of stuff that has already been said about this sort of thing. If you can't find what you need, post again.
__________________

  #19   Spotlight this post!  
Unread 16-02-2004, 11:35
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: Newbie Autonomous Question(s)

Quote:
Originally Posted by Texan
Third, make the power that the motors are driven at a little higher. I'm not sure if your problem was that it wasn't moving, but the way it is now, it will either move really slow or not at all.
The Victor 884 speed controllers have a deadpan (no movement spot) between 117 and 137 with 127 as neutral. Therefore, you are not getting outside the speed controllers "don't move" range.

Increase the numbers to something like 90 and 164.

Phil
  #20   Spotlight this post!  
Unread 16-02-2004, 11:45
LBK Rules's Avatar
LBK Rules LBK Rules is offline
1467 '06 Alumni
AKA: Anthony Rinaldi
no team (HSRO)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Henrico, VA
Posts: 438
LBK Rules will become famous soon enoughLBK Rules will become famous soon enough
Re: Newbie Autonomous Question(s)

Our Victors don't have a deadpan. going 107:147 makes our robot overshoot the line. (I thought the 883 had the deadpan, and not the 884.)

Our team has been trying to code the banners, and we just can't get it to work right.

If somebody can please post some working line fowolling code, I know all of us newbies woud greatly appreciate it.
__________________
Anthony Rinaldi
Team 1132: 2003
Team 1467: 2004 - 2006
  #21   Spotlight this post!  
Unread 16-02-2004, 11:51
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: Newbie Autonomous Question(s)

Quote:
Originally Posted by LBK Rules
Our Victors don't have a deadpan.
Are you using the 884's in the kit? They do have a deadpan.

Also, calibrate the Victors. This might be your problem.

Phil
  #22   Spotlight this post!  
Unread 16-02-2004, 13:47
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Newbie Autonomous Question(s)

Quote:
Originally Posted by LBK Rules
Our team has been trying to code the banners, and we just can't get it to work right.

If somebody can please post some working line fowolling code, I know all of us newbies woud greatly appreciate it.
Well, I can't guarrantee this works, but if you want to look at it...
PHP Code:
// Check if the right sensor is reading the line
if(lineDetectorLeft == ON_LINE)
{
  
// Turn right
  
driveMotorLeft 127;
  
driveMotorRight 254;
}
else if(
lineDetectorRight == ON_LINE)
{
  
// Turn left
  
driveMotorLeft 254;
  
driveMotorRight 127;
}
else
{
  
// Go forward
  
driveMotorLeft 254;
  
driveMotorRight 254;

Subsitute pwmXX for the driveMotorLeft and Rights, the lineDetectorLeft and Rights with the digital inputs they are on, and the ON_LINEs with the value that the sensors read when over the line. This is a very simple algorithm and can be improved, but it gives you the idea. Put it in its own function and continually call it and it will (should) faithfully follow a line.

--EDIT--
You can also adjust the speeds passed to the motors. The way it is now, it might lose the line because it is too fast.
__________________


Last edited by Ryan M. : 16-02-2004 at 13:51.
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
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
variable? manodrum Programming 11 01-04-2003 17:20
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


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

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