|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
BugFix for CANJaguar code.
I could not find a way to submit a patch on the FIRST Forge tracker.
So, I am posting this here, and emailing it to the maintainers listed on FIRST Forge. [edit]I'll also cross-post to the USFIRST forums once I get the email reminding me what my password is. The system isn't liking me, so if anyone wants to cross-post for me, that's fine.[/edit] I have created a modified version of the CANJaguar code for Java, that fixes Bug artf1172, which causes to the JVM to throw an exception and stop on any IO error on the CAN bus. Several of you have commented on this in the WPILIB feedback thread. To do this I basically threw IOExceptions instead of runtime exceptions. This shoves error handling closer to the user, breaking source compatibility. Since the user must now handle exceptions themselves, breaking source-compatibility. For this reason, I have also created the class SafeCANJaguar, which handles all exceptions for the user, preserving source compatibility. Since I feel that I do not have authority to publish to edu.wpi.first.addons, and to avoid confusion do to incompatible changes, I have moved the files to `org.mckenzierobotics.CAN'. http://lukeshu.ath.cx/CANJaguar for ...7.11.01.44.zip Last edited by LukeS : 11-07-2010 at 02:11. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CANJaguar code with synchronization | taichichuan | CAN | 5 | 06-05-2010 13:23 |
| CANJaguar vi's | RoboGuy | Programming | 15 | 18-04-2010 02:23 |
| Potential Issue with the C++ CANJaguar Implementation | mattbutts | C/C++ | 2 | 19-02-2010 13:26 |
| CANJaguar for C++: Missing mode init messages? | Abrakadabra | CAN | 2 | 14-02-2010 01:18 |
| CANJaguar + BlackJagBridge plugin errors | Shinigami2057 | CAN | 1 | 06-02-2010 11:20 |