Go to Post FIRST is not about a robot competition . . there just happens to be one at every FIRST event. - Stuart [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 20-01-2005, 14:58
KoRnPoP's Avatar
KoRnPoP KoRnPoP is offline
Webmaster/Driver/Fabricator
AKA: Michael
FRC #1598 (Team Talon)
Team Role: Webmaster
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Virginia
Posts: 23
KoRnPoP will become famous soon enough
Send a message via MSN to KoRnPoP Send a message via Yahoo to KoRnPoP
How to get the robot to stop...

Does anyone know how to get the robot to stop in autonomous mode with out using script?
  #2   Spotlight this post!  
Unread 20-01-2005, 15:04
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: How to get the robot to stop...

I'm not sure if you're trying to stop the robot using software (as in, if we run into something stop) or if you mean that you want to be able to kill the robot in mid-stride because you can tell it's just about to rip its arm off.

For the first thing, you just have to set the variables pwmXX and pwmXX to 127 in your code, where the two XX is where your motors are hooked up.

For the other option, which only works when you're on your practice field, you build a dongle, which is basically just a few stiches which connect/disconnect a few pins on the competition port on the operator interface. I'm not sure right now exactly where those are, but there is lots about them here. Do a search.
__________________

  #3   Spotlight this post!  
Unread 20-01-2005, 15:57
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: How to get the robot to stop...

while(1);
Works every time!
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #4   Spotlight this post!  
Unread 20-01-2005, 16:27
RIgnazio RIgnazio is offline
Registered User
no team
Team Role: Webmaster
 
Join Date: Jan 2005
Rookie Year: 2004
Location: .
Posts: 45
RIgnazio will become famous soon enough
Re: How to get the robot to stop...

Quote:
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
Love it!
Ok, anyways, back to the making the robot stop. In autonomous mode, what I find that works best is at the end of the loop, use
Quote:
else
{
pwmXX = 127;
pwmXX = 127;
}
where XX is your PWM number. Now, you can create a little snippet like this:
Quote:
#define pwm_neutral 127
What that will do is let you use pwm_neutral and it will equal 127. If you don't like working with numbers, that is. I also do a
Quote:
#define pwm_max 254
#define pwm_min 0
for max and min speeds.
  #5   Spotlight this post!  
Unread 20-01-2005, 17:33
buss buss is offline
Registered User
AKA: Steven
FRC #0180 (S.P.A.M. Robotics)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Gainesville, FL
Posts: 50
buss has a spectacular aura aboutbuss has a spectacular aura about
Send a message via AIM to buss
Re: How to get the robot to stop...

Last year my team (S.P.A.M. #180) ran into a serious problem during autonomous. If we ran into something and the robot didn't fix itself, we would continue driving forward and start to burn holes into the carpet. If you have some sort of motion sensor (be it an accelerometer or something equivalent) have a counter going that adds 1 every loop. Each time the sensor returns data, have it zero the counter. So if the sensor doesn't return anything (I.E. you're not moving) then the counter will count to whatever you have set as the max. When it reaches the max, set the motors to neutral (127). This bit of code kept us from being disqualified for field damage for at least five matches during one regional.

That may not be exactly what you're asking for, but its good none-the-less.
__________________
Steven Buss

"Far and away the best prize that life offers is the chance to work hard at work worth doing."
-- Teddy Roosevelt
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
pic: 2003 TechnoKat Ball Drive : Patent Pending CD47-Bot Robot Showcase 78 30-03-2003 16:27
pic: Ball Drive Close Up CD47-Bot Robot Showcase 17 04-03-2003 15:23
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
Fork Lift Robot tinyfarnsworth General Forum 64 16-04-2002 12:09
Index of team's post about their robot... Ken Leung Robot Showcase 1 20-03-2002 17:10


All times are GMT -5. The time now is 18:45.

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