Go to Post if you want to repay us for the omni-wheels, use the money to help out a few rookie teams next year. Buy them batteries or help build them bumpers, anything you see fit will be much better than cash back to us. - AllenGregoryIV [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-02-2013, 22:17
Fadedlite's Avatar
Fadedlite Fadedlite is offline
Programming Mentor
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Huntington Beach, CA
Posts: 1
Fadedlite is on a distinguished road
Help! Robot Throwing Exceptions

Our robot is throwing exceptions. Please Help!
Here's a picture of the output.
  #2   Spotlight this post!  
Unread 09-02-2013, 22:25
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,673
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Help! Robot Throwing Exceptions

As usual with this problem, you're not planning properly and bracketing your robot with a try-catch structure. Luckily, the official playing arena provides a robust try-catch structure for all robots on the field. I predict that you'll see many fewer uncaught exceptions once you get your robot onto the field.

EDIT:In the mean time, I would suggest applying a more dynamic approach to catching your exceptions. Look around a bit and you should be able to find a good method for catching exceptions in a wide variety of situations.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 09-02-2013 at 22:38.
  #3   Spotlight this post!  
Unread 10-02-2013, 16:52
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: Help! Robot Throwing Exceptions

I think Kevin is suggesting enabling the watchdog.
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 02:12.

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