|
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)
|