View Single Post
  #2   Spotlight this post!  
Unread 01-05-2014, 07:03
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
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,722
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: Setting custom disable behaviors

Quote:
Originally Posted by gappleto97 View Post
Tried the following snippet on DisabledInit() and DisabledPeriodic(). Neôther worked.

@Override
Public void DisabledInit()
{
Super.DisabledInit();
LED.disable();
}

It didn't like the override. I may have typed it in wrong, as I'm going off of 2-month old memory, but still.

How do I get this to work?
Should be

Code:
public void disabledInit()
{
    super.disabledInit();
    LED.disable();
}
Unfortunately annotations are not supported in the version of java that runs on the cRIO.

Last edited by notmattlythgoe : 01-05-2014 at 09:41.
Reply With Quote