Go to Post If you refuse to come to any compromises with your Ultimate Ascent robot design, you risk compromising everything (including your sanity). - Jared Russell [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 29 votes, 5.00 average. Display Modes
  #271   Spotlight this post!  
Unread 31-01-2016, 22:39
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by schleprock View Post
ok, if i hook it up to CS0 on the roborio, then i assume i need to use: kOnboardCS0

ie: SPI.Port.kOnboardCS0

not sure how to specify ports on the roborio. when most people talk about the various ports, they seem to mean those available through the mxp port. if they're talking about using a port that is detached from the mxp, but available on the mxp, i've seen brokenout used... so how do you specify the SPI port connections that are separate from the mxp port?

thanks
Yes, if connecting the RoboRio onboard SPI pins to the navX-MXP's SPI breakout connector pins, you would use SPI.Port.kOnboardCS0 in your software. This also means you would connect the corresponding pins on the RoboRIO's SPI connector block (eg, the CS0 pin, the MOSI, MISO, and GND pins) to their corresponding pins on the navX-MXP's SPI breakout connector.
Reply With Quote
  #272   Spotlight this post!  
Unread 01-02-2016, 21:38
schleprock's Avatar
schleprock schleprock is offline
Code Jockey
FRC #4905 (AndromedaOne)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: massachusetts
Posts: 21
schleprock is an unknown quantity at this point
Talking Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

we successfully connected the SPI port using CS0 on the roborio to the SPI connection on the navx board. no connections via the mxp ports. we used the +5V pin on the roborio SPI port to power the navx. everything seems to work according to the DataMonitor java test.
one thing to note, in a previous post you had indicated that we needed to connect MOSI to MISO, that is NOT the case. when i tried that, no data. connecting MOSI to MOSI and MISO to MISO worked.
i know you had indicated using the USB for power, but both of our USB ports on the roborio are being used. it seems to do fine with the +5 pin from the SPI port. when does a roborio stage 2 brownout occur?

thanks for your help.
Reply With Quote
  #273   Spotlight this post!  
Unread 01-02-2016, 23:18
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by schleprock View Post
we successfully connected the SPI port using CS0 on the roborio to the SPI connection on the navx board. no connections via the mxp ports. we used the +5V pin on the roborio SPI port to power the navx. everything seems to work according to the DataMonitor java test.
one thing to note, in a previous post you had indicated that we needed to connect MOSI to MISO, that is NOT the case. when i tried that, no data. connecting MOSI to MOSI and MISO to MISO worked.
i know you had indicated using the USB for power, but both of our USB ports on the roborio are being used. it seems to do fine with the +5 pin from the SPI port. when does a roborio stage 2 brownout occur?

thanks for your help.
Please see item #2 on the navX-MXP Best Practices page for details on RoboRIO stage 2 brownouts. There's a link on this page to more details on stage 2 brownouts.

One other option is to provide 5V to the navX-MXP (via the 5V pin on the navX-MXP SPI breakout connector) from the VRM, which provides a regulated source of 5V that is not impacted by a RoboRIO stage 2 brownout.
Reply With Quote
  #274   Spotlight this post!  
Unread 03-02-2016, 21:05
TannerM TannerM is offline
Registered User
FRC #2530
 
Join Date: Feb 2016
Location: Rochester, MN
Posts: 5
TannerM is an unknown quantity at this point
Exclamation Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Hi,

When I try to compile my navX code on Eclipse using C++ it says "fatal error: AHRS.h: No such file or directory"

What can I do to fix it?

Inconceivable Programmers
Reply With Quote
  #275   Spotlight this post!  
Unread 03-02-2016, 21:13
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by TannerM View Post
Hi,

When I try to compile my navX code on Eclipse using C++ it says "fatal error: AHRS.h: No such file or directory"

What can I do to fix it?

Inconceivable Programmers
Sounds like your include paths are not set in your eclipse project.

Please see the navX-MXP RoboRio Library for C++ page and follow the instructions there. Your issue is likely addressed by following the directions in the "Configuring Eclipse Library and Include Paths" section, but there's other potentially useful information there, too.
Reply With Quote
  #276   Spotlight this post!  
Unread 22-02-2016, 22:40
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Using the NavX with LabVIEW, attempting to open the device results in the code crashing and these error messages to appear:

I downloaded the v2 library, and simply dropped the "Z900_navX_Open.vi" block into begin.vi.
I tried under serial/i2c/spi but the result is always the same error.

Upon removing the NavX block, the errors go away.
__________________
Head Programmer / Driver
Reply With Quote
  #277   Spotlight this post!  
Unread 23-02-2016, 20:31
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by cjl2625 View Post
Using the NavX with LabVIEW, attempting to open the device results in the code crashing and these error messages to appear:

I downloaded the v2 library, and simply dropped the "Z900_navX_Open.vi" block into begin.vi.
I tried under serial/i2c/spi but the result is always the same error.

Upon removing the NavX block, the errors go away.
Are you on the latest library? v2.0.5.0
__________________
navX Labview Library

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

myManga
Reply With Quote
  #278   Spotlight this post!  
Unread 23-02-2016, 20:43
jojoguy10's Avatar
jojoguy10 jojoguy10 is online now
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Corvallis, OR
Posts: 296
jojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant future
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Hey NavX people,

Would it be possible to make a block that can reset the gyro to whatever you want (instead of zero)? I was going to go into your block and make the edit, but I found that it's a built-in function in the firmware on the board itself.
__________________

2013 and 2014 - Student (FRC#2990), Programmer (LabVIEW)
2015 and 2016 - Mentor (FRC#2990), Programming (LabVIEW)
2017-Current - Mentor (FRC#997), Controls/Programming (Java)
2015-Current - A/V Volunteer at Oregon events
Reply With Quote
  #279   Spotlight this post!  
Unread 25-02-2016, 12:26
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by jojoguy10 View Post
Hey NavX people,

Would it be possible to make a block that can reset the gyro to whatever you want (instead of zero)? I was going to go into your block and make the edit, but I found that it's a built-in function in the firmware on the board itself.
As you discovered, the "zero yaw" functionality is now performed by the navX-MXP onboard firmware. There were a few reasons for this, including that other values (specifically, the quaternions which represent numerically all of the cumulative rotations from the 0,0,0 origin point) also need to be updated as well to keep them in synch w/the navX-MXP yaw angle.

However, here's a link to some Java code that implements an "offset tracker" which can be used to subtract a given offset from any of the navX-MXP angles, including the yaw. Specifically, look at the applyOffset() method. You may find this helpful as you work on your own offset adjustment. What you want to do should be pretty straightforward - basically, you are subtracting a known value from the angle provided by navX-MXP. The only part that's a little complicated is handling the wraparound (at -180/+180 degrees).
Reply With Quote
  #280   Spotlight this post!  
Unread 08-03-2016, 21:25
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

I've been having some serious trouble with reliability of the NavX.

I run it for a few minutes, and then the NavX dies and the yaw reading stops updating. Occasionally, it starts working again after some seconds, but other times it requires a reboot to work.

Here's what I checked.
- I'm using the latest version of the library.
- NavX has been fastened down to the RoboRIO and ensured a secure MXP connection
- NavX is plugged in to USB at the same time as a backup power source, perhaps
- Tried using two different NavX units
- Tried using two different RoboRIOs on two different robots
- Tried using every data source (MXP Serial, MXP SPI, MXP I2C, USB Serial)
- Code usage is simple -- opening in Begin.vi, reading in Teleop.vi with Get YPRH block

Nevertheless, the result is always the same. Our ability to aim falls apart without a gyro, so this problem has been quite bothersome.
__________________
Head Programmer / Driver
Reply With Quote
  #281   Spotlight this post!  
Unread 08-03-2016, 21:45
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by cjl2625 View Post
I've been having some serious trouble with reliability of the NavX.

I run it for a few minutes, and then the NavX dies and the yaw reading stops updating. Occasionally, it starts working again after some seconds, but other times it requires a reboot to work.

Here's what I checked.
- I'm using the latest version of the library.
- NavX has been fastened down to the RoboRIO and ensured a secure MXP connection
- NavX is plugged in to USB at the same time as a backup power source, perhaps
- Tried using two different NavX units
- Tried using two different RoboRIOs on two different robots
- Tried using every data source (MXP Serial, MXP SPI, MXP I2C, USB Serial)
- Code usage is simple -- opening in Begin.vi, reading in Teleop.vi with Get YPRH block

Nevertheless, the result is always the same. Our ability to aim falls apart without a gyro, so this problem has been quite bothersome.
Can you please let me know which version of the firmware is currently loaded onto the navX-MXP units you have? The firmware for this year has resolved all known reliability issues. You should have at least v. 2.2 of the firmware loaded on the boards.
Reply With Quote
  #282   Spotlight this post!  
Unread 08-03-2016, 22:03
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by slibert View Post
Can you please let me know which version of the firmware is currently loaded onto the navX-MXP units you have? The firmware for this year has resolved all known reliability issues. You should have at least v. 2.2 of the firmware loaded on the boards.
Ah, that's probably it -- I just plugged the NavX in and ran the code; never thought about the firmware. I'll try updating it.
__________________
Head Programmer / Driver
Reply With Quote
  #283   Spotlight this post!  
Unread 12-03-2016, 09:58
Acocagne Acocagne is offline
Registered User
FRC #5114
 
Join Date: Mar 2015
Location: Fenton, MI
Posts: 1
Acocagne is an unknown quantity at this point
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Does anyone have one of these to sell or have a supplier that has it in stock?
AndyMark and the manufacturer are both out of stock.

Thanks
Reply With Quote
  #284   Spotlight this post!  
Unread 12-03-2016, 10:31
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: 356
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by Acocagne View Post
Does anyone have one of these to sell or have a supplier that has it in stock?
AndyMark and the manufacturer are both out of stock.

Thanks
More units should be available for sale at the KauaiLabs store by 3/22, and at AndyMark by approximately 4/3.
Reply With Quote
  #285   Spotlight this post!  
Unread 18-03-2016, 16:44
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

I am trying to verify operation using the navX mxp by hooking up to a PC with a USB cable. When I connect the usb from the pc to the navX nothing happens, the lights on the navX blink and go green, but he PC does not see any com port nor any device loading message. when I open the configuration utility no com ports show up. How do I configure the drivers so the PC can talk to the navX?
__________________
David Kolberg
2014- Mentor Iron Giants 5069
2004-2010 Coach SBotz Team 1327
2000-2003 Mentor Team 135
2016 St. Joe District Event Winner
2009 WFA Boilermaker
2008 Driving Tomorrow's Technology
2005 Innovation in Control
2005 IRI Spirit of Indiana
Reply With Quote
Reply


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 23:32.

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