Go to Post Let's leave the football uniforms at home though, teams. ... The last thing I want to see is Baker in Brett Favre yellow spandex... *shudder* - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2016, 17:54
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Navx Mxp no longer working

Last year our team got a Navx MXP to use as our gyro, it worked fine with labview and we could read values when running through robot main. However, this year we aren't able to read anything from it. We have it connected to the roborio through the MXP port and it appears electrically it's working(It has lights lit up). We updated the firmware to the newest download and are using th e latest library(v2). But no matter how we initialize the gyro or what VIs we use to read data from it, it just reads out zeros. If anyone has encountered something similar or has any ideas, we'd be very grateful!
  #2   Spotlight this post!  
Unread 01-02-2016, 18:16
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Seattle, WA
Posts: 72
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Re: Navx Mxp no longer working

Quote:
Originally Posted by brubakbd View Post
Last year our team got a Navx MXP to use as our gyro, it worked fine with LabVIEW and we could read values when running through robot main. However, this year we aren't able to read anything from it. We have it connected to the roborio through the MXP port and it appears electrically it's working(It has lights lit up). We updated the firmware to the newest download and are using the latest library(v2). But no matter how we initialize the gyro or what VIs we use to read data from it, it just reads out zeros. If anyone has encountered something similar or has any ideas, we'd be very grateful!
Have you tried the Example VI? (Examples/Functions/navX Example v2.vi)
How are you initializing the navX?
Are there any errors reported by the VIs? by the processing loop (navX Library v2/IO/Internal/Z900_navX_Internal_Error.vi)?
__________________
navX Labview Library

"Robots are aluminum shavings, held together by zip-ties."

myManga
  #3   Spotlight this post!  
Unread 01-02-2016, 18:32
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

We have tried using the example vi. Both through copying how it initializes and reads from it and by just running the project. It just read 0s both ways. We've tried initializing with ic2, spi, and serial to see if any work and we haven't had any luck. And would errors pop up or are they stored somewhere?
  #4   Spotlight this post!  
Unread 01-02-2016, 21:20
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Seattle, WA
Posts: 72
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Re: Navx Mxp no longer working

Quote:
Originally Posted by brubakbd View Post
We have tried using the example vi. Both through copying how it initializes and reads from it and by just running the project. It just read 0s both ways. We've tried initializing with ic2, spi, and serial to see if any work and we haven't had any luck. And would errors pop up or are they stored somewhere?
You would need to use navX Library v2/IO/Internal/Z900_navX_Internal_Error.vi to see if the internal loop is reporting errors. Is the Connected boolean true or false with the report of 0s? Are you able to use the desktop apps that come with the navX repo by kauailabs to read the values?
__________________
navX Labview Library

"Robots are aluminum shavings, held together by zip-ties."

myManga
  #5   Spotlight this post!  
Unread 01-02-2016, 21:36
Peyton Yeung's Avatar
Peyton Yeung Peyton Yeung is offline
45 Alumni
AKA: Peyton Yeung
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Kokomo, IN
Posts: 827
Peyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond repute
Re: Navx Mxp no longer working

We had an issue with the NavX we purchased over the summer. It would run for a few seconds and then read all zeroes. It would only work again if we power cycled our robot. We sent it in and they are sending us back a new one. Your mileage may vary.
__________________
461 Westside Boiler Invasion
2016 Tippy Quarter finalist, Warren Finalist, IN State Semi Finalist,B^3 Double Finalist
2015 Indy Semi finalist, Purdue Quarter Finalist, IN State Quarter Finalist, CORI QF, R2OC Finalist, RAGE Winner
2014 Boilermaker Semi finalist, Crossroads Quarter Finalist, & CAGE Quarter Finalist
45 Technokats
2013 Boilermaker Quarter finalist
2012 CAGE Semi finalist & Queen City Champion
2011 CAGE Quarter finalist & Midwest Semi finalist
2010 CAGE Quarter finalist, Boilermaker Champion, & Washington DC Quarter Finalist
  #6   Spotlight this post!  
Unread 01-02-2016, 23:32
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 355
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Navx Mxp no longer working

Quote:
Originally Posted by brubakbd View Post
Last year our team got a Navx MXP to use as our gyro, it worked fine with labview and we could read values when running through robot main. However, this year we aren't able to read anything from it. We have it connected to the roborio through the MXP port and it appears electrically it's working(It has lights lit up). We updated the firmware to the newest download and are using th e latest library(v2). But no matter how we initialize the gyro or what VIs we use to read data from it, it just reads out zeros. If anyone has encountered something similar or has any ideas, we'd be very grateful!
Can you pin down what changed to make it stop working?

Also, here are some specific things to try:

A) If you think the problem happened after updating the firmware, it's remotely possible something went wrong during that process - in which case you might try re-downloading and installing the latest build, and re-updating the firmware.

B) Also, when the board is first powered on, all 4 leds turn on for a second, then all but the red power led are on as the board begins initialization; then after it initializes, the green S1 and S2 leds should come on. Do both of these LEDs come on and _stay on_?

C) The other test is, as Caboose mentioned: can you use the navXUI on a PC to display the sensor data?

So after you perform A), let us know if C) is successful and if B) shows both S1 and S2 leds on.

P.S. Can you please also indicate the version of RoboRIO firmware you have installed?
  #7   Spotlight this post!  
Unread 02-02-2016, 07:55
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

I'll try these suggestions this afternoon when I have access to the electronics. We have already tried redownloading and reupdating the firmware with no results. I'm positive that both green lights stay on, although if I remember correctly, there was also a red light staying on. I'll have to check later. I'll be sure to check the internal error as well. And the connected boolean was also false, I forgot that we had tried that.
  #8   Spotlight this post!  
Unread 02-02-2016, 17:34
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

We are able to read using NavXUI. All lights light up as they should, and we're using v19 of roborio firmware. We found an error outputting in driver station, it's giving "ERROR -44007 FRC: The RefNum you are trying to Get does not exist in this RefNum Registry. navX Library v2.lvlib:Z900_navX_RefNum_Get.vi" So it appears that for some reason the refnum isn't ever actually getting set in begin?

Edit:
We also just tested it over usb by plugging it into the roborio usb port. No luck with that either.

Last edited by brubakbd : 02-02-2016 at 18:21.
  #9   Spotlight this post!  
Unread 03-02-2016, 18:29
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 355
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Navx Mxp no longer working

Quote:
Originally Posted by brubakbd View Post
We are able to read using NavXUI. All lights light up as they should, and we're using v19 of roborio firmware. We found an error outputting in driver station, it's giving "ERROR -44007 FRC: The RefNum you are trying to Get does not exist in this RefNum Registry. navX Library v2.lvlib:Z900_navX_RefNum_Get.vi" So it appears that for some reason the refnum isn't ever actually getting set in begin?

Edit:
We also just tested it over usb by plugging it into the roborio usb port. No luck with that either.
I'm not sure why you're getting this error connecting to the sensor using LabVIEW.

However, we can send another board and have you return the one you've got - if you'd like to do that, please contact support@kauailabs.com with a reference to this chiefdelphi post and we'll get you started on that. I'm a bit concerned that since the board is passing all of our usual "is it ok" tests - and thus that even after replacing the board you'll still see the issue you're seeing now accessing it from LabVIEW - but am happy to process the swap for you.
  #10   Spotlight this post!  
Unread 03-02-2016, 19:44
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

While that would be great if it would fix it, I'm not sure it would. We have two boards (1 for a practice bot), and neither are working. It must be something with software. Maybe we'll try the example code with another computer.
  #11   Spotlight this post!  
Unread 03-02-2016, 22:39
Camilo86's Avatar
Camilo86 Camilo86 is offline
Registered User
AKA: camilo
FRC #0125 (Nutrons)
Team Role: Programmer
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Boston
Posts: 21
Camilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of light
Re: Navx Mxp no longer working

Did you disable your console out? You can do this through the roborio website. I remember having issues reading values from the navx due to "console out" being on (using navx through USB port)
__________________
Hopper finalist 2015
Dean's List winner 2015
  #12   Spotlight this post!  
Unread 03-02-2016, 22:40
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

I'll definitely check that tomorrow.
  #13   Spotlight this post!  
Unread 04-02-2016, 00:24
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 141
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Navx Mxp no longer working

I sent Kauailabs an email and got this response:

Quote:
Once the RoboRIO firmware got updated to the 2016 firmware version, the USB connectivity to the navX-MXP stopped working. We still don't have any word on a resolution to this issue, and unfortunately I've been informed that this isn't a high priority issue from the WPI/National Instruments perspective (since the serial over USB support is not 'official').

For that reason, we're encouraging teams to use the SPI interface, or if that isn't feasible to use the I2C or TTL UART interfaces.

We do still recommend that the USB cable between the RoboRIO and the navX-MXP be left connected, because this will ensure that the navX-MXP power is maintained even if a RoboRIO stage 2 brownout occurs. More info on that is discussed in item #2 in the navX-MXP Best Practices page.

- scott
__________________
  #14   Spotlight this post!  
Unread 04-02-2016, 23:45
brubakbd brubakbd is offline
Registered User
FRC #5188
 
Join Date: Jan 2016
Location: Terre Haute, Indiana
Posts: 8
brubakbd is an unknown quantity at this point
Re: Navx Mxp no longer working

Alright, we got it working. Turns out it was something stupid we did. We were using a setref vi in begin and get ref where we wanted to use it. Turns out you should just alter begin and where you want to use it and make the output of the open vi an output of begin and an input of the vi you want to use it in.
  #15   Spotlight this post!  
Unread 08-02-2016, 08:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Navx Mxp no longer working

Modifying the project framework (e.g. by adding an output to Begin) is usually a bad idea. Using the Refnum Set/Get functions is preferred.

The -44007 error you were getting suggests that you had spelled the name of your NavX reference differently in the two places.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi