Log in

View Full Version : NavX Error


protectvariable
10-02-2016, 15:16
Our team has recently been using a NavX-MXP Robotics Navigation Sensor by kauai labs. After using it for a bit we noticed that instantiating the sensor and reseting yaw, (see below picture) then using the reference in periodic tasks yielded an error like, "This SPI port is already in use", in the driverStation console. When we removed the yaw reset it worked fine. Any reasons to why this may be?

Caboose
10-02-2016, 23:58
Our team has recently been using a NavX-MXP Robotics Navigation Sensor by kauai labs. After using it for a bit we noticed that instantiating the sensor and reseting yaw, (see below picture) then using the reference in periodic tasks yielded an error like, "This SPI port is already in use", in the driverStation console. When we removed the yaw reset it worked fine. Any reasons to why this may be?

Hmm...this is odd. I'll look at it tomorrow.

Greg McKaskle
12-02-2016, 08:31
I made a change to Open to register the VI refnum and our crashing issue is resolved. If anyone else using LV and navX has an every-other-time crash during development, there should be a fix up shortly, and I could tell you the edit to make if need be.

Greg McKaskle

tr6scott
12-02-2016, 16:19
Greg,

can you send or post the fix, we were attributing this every other crash to mDNS... we are using the navx too.

PM here is fine. :)
Thanks.

Caboose
12-02-2016, 16:39
I will be posting a fix for this error tonight.

Caboose
12-02-2016, 17:58
Updated Library. This should fix the mentioned issue by OP and the later mentioned issue by Greg.
https://github.com/FRC900/navX-MXP-LabVIEW/releases/tag/v2.0.5.0

Greg McKaskle
12-02-2016, 23:48
We verified the fix. Thanks for pushing the update.

Greg McKaskle

Caboose
12-02-2016, 23:57
We verified the fix. Thanks for pushing the update.

Greg McKaskle

Thank you for help with the fix.

tr6scott
15-02-2016, 09:46
Thank You!
No more every other crashes yesterday... great time saver.