Go to Post FIRST robots definitely meet many commonly agreed upon definitions of robots. Some will disagree. Good for them. In my opinion, it's not worth arguing over. - Mikell Taylor [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 18-03-2003, 14:17
Dan's Avatar
Dan Dan is offline
Registered User
#0267 (Demolition Squad)
 
Join Date: Feb 2002
Location: Boca Raton, Fl
Posts: 7
Dan is an unknown quantity at this point
Send a message via Yahoo to Dan
Robot Reset Under Program Control?

Is there a way to reset the robot controller under program control? (Analogous to the robot reset button)
  #2   Spotlight this post!  
Unread 18-03-2003, 15:41
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Roll your own...

The only way I know of is to roll your own reset. Essentially, you can trash all your variables (set to zero) by hand, including Scratch Pad Ram if you use it and then using a goto label or a run 0 command.

This could work for you if you really need to.

If you REALLY need to have a robot reset under program control, you may just wire up a bunch of motors to stall eachother, then pull the battery down low enough to reset stuff.

I don't know what voltage the controller kicks out, but the radios die at 8 volts.

Hope this helps.


Joe J.
  #3   Spotlight this post!  
Unread 18-03-2003, 15:59
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
if your software gets so lost/ messed up, that you think you need to reset the controller

then what makes you think you can get that part of the sw right?

isnt that like asking a crazy person if he is OK?!
  #4   Spotlight this post!  
Unread 06-04-2003, 18:21
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
double reset at power on?

I am using our EduBot to do some learning while our "big" robot is in quarantine. So I don't know for sure if this issue applies to the full size RC.

I notice that when I power up, and also when I return to bank 0 by "RUN 0" after executing in another bank, I go through the top initialization section of the bank 0 program twice. Evidently, something that gets executed in the I/O setup causes a processor reset. It also zeros out the scratchpad, so what I have put there to communicate a bank 1 result back to bank 0 has been lost.

Can someone clarify this for me, or point me to a source of information?

Thanks
Bill
  #5   Spotlight this post!  
Unread 07-04-2003, 01:16
dlavery's Avatar
dlavery dlavery is offline
Curmudgeon
FRC #0116 (Epsilon Delta)
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Herndon, VA
Posts: 3,176
dlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond repute
Mount a small (3/4" diameter by 1/2" stroke) pneumatic piston over the "Reset" button on the RC. Connect it to a single solenoid valve, which is plumbed to the piston so the piston rod is retracted when the solenoid is not powered (off). When you need to reset the controller (I am assuming that for some reason you want to reset the RC while you still can command it - see KenWittlief post above!), energize the solenoid, which fires the piston, which punches the Rest button, which resets the controller, which drops power, which cuts power to the solenoid, which retracts the piston rod away from the Reset button, which allows the RC to reset (... and the knee bone's connected to the ankle bone, and the ankle bone's connected to the ... la la la de da...).

A kludge, but it should work.

-dave
  #6   Spotlight this post!  
Unread 29-04-2003, 19:49
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
A less kludgie kludge?

You can do the same thing with a servo

#1 mount a servo such that 127 PWM value puts the arm just above the reset button on the RC with XXX PWM value pushing the reset button

#2 spring load the arm so that it returns to to the position of 127 when power is cut

#3 when you wish to reset the RC, command XXX to the corresponding PWM output

This has the benefit of not needed a valve, spike and a pneumantic cylinder. It also does not require the associated pumps, etc. The final benefit is that you don't have to worry about an air cylinder punching your RC to death. The servos are load limited by design.

As to why you want to do this, I can think of one possible idea.

Suppose you need to have a completely different set of variables given to your Pbasic program during to different operating modes (for example, autonomous and drive controlled?). If you needed more than 26 different variables (total) you are in trouble.

But... with this robot reset via program control you could set a bit in EEPROM prior to requesting a reset. Upon reset, before executing the command that tells the Master CPU which variables you want, you could read the EEPROM value and then request the right set of data from the Master CPU.

I have never actually run into this problem, but if I did, this method would be a way around the limitation of the current system.

Joe J.
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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
Robot reset on OI doesn't work Carl Owenby General Forum 1 07-02-2003 07:23
RoboCon 1.01 (control robot from PC) rbayer Programming 20 06-11-2002 21:30
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
robot control emulator for default or other program CharlieWilken Programming 26 24-02-2002 02:36


All times are GMT -5. The time now is 23:17.

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