Go to Post YO DAWGS. I GOT THIS. - LiquidMagik [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 09-10-2015, 13:57
Hsifeulbhsifder Hsifeulbhsifder is offline
Programmer
AKA: Zaeem Mohamed
FRC #5428 (Breaking Bots)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Markham, ON, Canada
Posts: 41
Hsifeulbhsifder is on a distinguished road
Using a different button to e-stop the robot instead of the space key

I was wondering if there was anyway of changing the emergency stop key of the driver station to some thing other than the space key. The point of this is to allow driving and programming to be done on the same laptop so we can easily tweak values without having to disable, deploy, and then re-enable. Are there any easy ways of doing this, or would it be better to create our own driver station? Disabling the robot to deploy code is not an option in our case. Thank you.
__________________
Hsifeulbhsifder
___________________
"Any given computer program is obsolete, any set of written rules is incomplete"
  #2   Spotlight this post!  
Unread 09-10-2015, 14:00
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Using a different button to e-stop the robot instead of the space key

Quote:
Originally Posted by Hsifeulbhsifder View Post
I was wondering if there was anyway of changing the emergency stop key of the driver station to some thing other than the space key. The point of this is to allow driving and programming to be done on the same laptop so we can easily tweak values without having to disable, deploy, and then re-enable. Are there any easy ways of doing this, or would it be better to create our own driver station? Disabling the robot to deploy code is not an option in our case. Thank you.
The robot must be disabled for the code to deploy. However you can have 2 computers connected to the robot at the same time. One with the driver station and one with the programming environment so coding can be done while the robot is running. Once you get to the deploy step though the robot will disable itself.
  #3   Spotlight this post!  
Unread 09-10-2015, 14:11
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a different button to e-stop the robot instead of the space key

If you are just tweaking values, you might find it faster and more convenient to use Smart Dashboard variables instead of changing the program each time. Once you have found the value you want, then you can put it in the code.

The robot is going to disable itself anyway when you load new code. Why isn't it possible for you to disable it a few moments earlier?
  #4   Spotlight this post!  
Unread 09-10-2015, 14:26
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,923
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Using a different button to e-stop the robot instead of the space key

I am not sure if the space bar estop's the bot when it is disabled, but the point (I assume) is Estop requires a power cycle to reset. At least it did on the Crios. Which means you can't edit code while the DS is connected to the robot without causing a Estop?

Not quite as annoying, but you have to remember not so use the enter (Disable) key while changing smart dashboard values.
__________________
If you don't know what you should hook up then you should read a data sheet

Last edited by FrankJ : 09-10-2015 at 14:30.
  #5   Spotlight this post!  
Unread 09-10-2015, 14:37
Hsifeulbhsifder Hsifeulbhsifder is offline
Programmer
AKA: Zaeem Mohamed
FRC #5428 (Breaking Bots)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Markham, ON, Canada
Posts: 41
Hsifeulbhsifder is on a distinguished road
Re: Using a different button to e-stop the robot instead of the space key

Quote:
Originally Posted by Alan Anderson View Post
If you are just tweaking values, you might find it faster and more convenient to use Smart Dashboard variables instead of changing the program each time. Once you have found the value you want, then you can put it in the code.

The robot is going to disable itself anyway when you load new code. Why isn't it possible for you to disable it a few moments earlier?
Our current build system does not disable the running of the robot, and can allow changes dynamically coded in. This allows us to change code (not just values, but entire functions) on the fly. However, the space bar emergency stopping causes issues with this. As long as I don't use the space bar or enter, I can change the code dynamically. The driver station intercepting those keys does not allow us to do this.
__________________
Hsifeulbhsifder
___________________
"Any given computer program is obsolete, any set of written rules is incomplete"
  #6   Spotlight this post!  
Unread 09-10-2015, 19:40
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using a different button to e-stop the robot instead of the space key

The driver station intentionally does not allow for a different key to be used for estop.

If each team or each computer used a different key, it would be unclear how to stop a runaway FRC robot. Similarly, other keys are not allowed to be remapped either.

The DS will not estop a disabled robot, only an enabled one.

If you are changing code while the robot runs, it is even more important that you have a reliable estop. And it is important that others around the robot know how to stop it -- in case the robot has you pinned against a wall or something.

So it is somewhat inconvenient to have an estop button that is easy to press. Safety mechanisms are almost always at odds with convenience and efficiency, but fingers don't grow back, FIRST doesn't give awards for best robot scars, etc. If you do use an alternate DS, be sure you can trust its estop and make sure it is well known to those operating the robot.

My suggestion is to use a dedicated laptop for the DS and a second, programming laptop, both networked to the robot.

Greg McKaskle
  #7   Spotlight this post!  
Unread 10-10-2015, 02:54
CptAmerica1776's Avatar
CptAmerica1776 CptAmerica1776 is offline
Registered User
AKA: Andrew Stout
no team
Team Role: Alumni
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Laguna Hills, CA
Posts: 5
CptAmerica1776 is an unknown quantity at this point
Re: Using a different button to e-stop the robot instead of the space key

It may not be the best solution, but you can copy and paste a space every time you need it.
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


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

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