View Single Post
  #2   Spotlight this post!  
Unread 24-11-2012, 20:31
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Enhanced I/O through Cypress

Most of the ways that EnhancedIOException gets thrown is because the enhanced IO module isn't plugged in to the driver station computer. You should think about what you want the code to do in that case and put that in the catch block. You probably want to turn the relay off, but you may want to do something else like send status back to the driver station.

If you're not familiar with exceptions, there is a java tutorial about them. http://docs.oracle.com/javase/tutori...al/exceptions/

Last edited by Joe Ross : 24-11-2012 at 23:19.
Reply With Quote