Go to Post 50% of the time that 330 used mcmaster 2717T51, we went to Einstein. Your mileage may vary. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-24-2011, 09:52 PM
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Best way of stopping the robot?

For the IterativeRobot I decided to force the robot to stop if it is in disabled mode or if the motorsafety gets disabled/timeout.

First of all, will motorsafety automatically shutdown motors if it isn't fed or enabled? If so then I probably should remove my lines telling the motors to stop.

Secondly, does it really matter which way you stop the robot? For instance, there are two different ways I know of to stop the robot. use the stopMotor method or tell the motors to move at a speed of 0 and turn of 0. If the stopMotor does not now allow you to use the motors until the robot is reset then I would use the method of setting the motor to speed and turn 0.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-25-2011, 01:25 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Best way of stopping the robot?

The whole point of the Motor Safety feature is to stop the motors if you don't set them often enough. If you disable the Motor Safety, that does not disable the motors, it disables the safety... i.e. the motors will continue to run even if you don't update them often enough.

I couldn't tell from your post if you were considering disabling the robot or E-Stopping the robot as options for stopping the motors.

-Joe
Reply With Quote
  #3   Spotlight this post!  
Unread 01-26-2011, 08:16 PM
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Best way of stopping the robot?

Sledgehammer? Always stops our runaways...
Reply With Quote
  #4   Spotlight this post!  
Unread 01-26-2011, 09:11 PM
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Best way of stopping the robot?

Our robot stops the instant we click the Disable button. Does it not do that for you?
Reply With Quote
  #5   Spotlight this post!  
Unread 01-26-2011, 09:17 PM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Best way of stopping the robot?

Quote:
Originally Posted by Patrick Chiang View Post
Our robot stops the instant we click the Disable button. Does it not do that for you?
The space bar on the Driver Station computer is an even more convenient way to hit disable.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 08:58 AM.

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