|
|
|
| Honey, will you tether your soul to mine? |
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: NavX causing robot code to reboot
https://www.chiefdelphi.com/forums/s...d.php?t=154205
We are a labview team, we have also had strange issues with NAVX this year... |
|
#2
|
|||
|
|||
|
Re: NavX causing robot code to reboot
Quote:
|
|
#3
|
||||
|
||||
|
Re: NavX causing robot code to reboot
If your code is crashing when you try to initialize the NavX, it probably is not properly communicating with the roboRIO. If you try to read from it before it is booted, you will also get a Null Pointer Exception. Just check if the value you want from the NavX != null before you try to do anything with it.
Most likely from what I have read here, you are not properly communicating with the NavX on an electrical side, or it is wired properly but you are trying to communicate with the wrong protocol. |
|
#4
|
|||
|
|||
|
Re: NavX causing robot code to reboot
We found it. PEBKAC
We had an obsolete version of AHRS.h in our include path, and it was not the right size. The adjacent memory allocation and the navx were wiping each other out. Thank you for your help, it got us thinking. Tim T. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|