View Single Post
  #3   Spotlight this post!  
Unread 06-02-2010, 12:27
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: overriding *Continuous methods

The code is very simple:

void DisabledContinuous(void)
{
}

TeleopContinuous is similar.

Here is what I get from trying to run code with these methods in it.

task 0x1347df0 (FRC_DriverStation) deleted: errno=0 (0) status=0 (0)

If TeleopContinuous is the only one enabled, the code runs.

If both TeleopContinuous and DisabledContinuous are enabled, here is what I get. Note that the task stopped is not the robot task; our robot task still runs.

instruction access
Exception next instruction address: 0x6f744260
Machine Status Register: 0x4000b032
Condition Register: 0x20000844
Task: 0xe40e58 "FRC_RobotTask"
0xe40e58 (FRC_RobotTask): task 0xe40e58 has had a failure and has been stopped.
0xe40e58 (FRC_RobotTask): fatal kernel task-level exception!
task 0xe40e58 (FRC_RobotTask) deleted: errno=0 (0) status=0 (0)
task 0x1d5fe28 (t7) deleted: errno=0 (0) status=0 (0)
task 0x1314a50 (t8) deleted: errno=0 (0) status=0 (0)
WPILib was compiled from SVN revision 2069
task 0x1e13f20 (tFRC_UserProgram_StartupLibraryInit) deleted: errno=196709 (0x30065)
status=0 (0)


Here is what I get when DisabledContinuous is the only one enabled:

task 0x1314870 (FRC_DriverStation) deleted: errno=0 (0) status=0 (0)
task 0xe40e58 (FRC_RobotTask) deleted: errno=0 (0) status=0 (0)
task 0x1d60e60 (t9) deleted: errno=0 (0) status=45106 (0xb032)
task 0x1314a50 (t10) deleted: errno=0 (0) status=0 (0)
WPILib was compiled from SVN revision 2069
task 0x1e13f00 (tFRC_UserProgram_StartupLibraryInit) deleted: errno=196709 (0x30065)
status=0 (0)