Go to Post 20,000 students 900 teams robots Gracious professionalism = FIRST - Bcahn836 [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
  #196   Spotlight this post!  
Unread 03-04-2015, 07:38 AM
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,346
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

We had to remove ours in the finals because our robot would sometimes just become impossible to drive when connected to the FMS. It would jump turn and move without driver input things it never did in practice.

I didn't see any brownout problems in the logs and until we unbag it for practice next week we do not have access to them.

At this point I doubt if we put it back on. BTW we are programming in Java.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #197   Spotlight this post!  
Unread 03-04-2015, 01:43 PM
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,572
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

So I'm vaguely thinking about getting one of these as an upgrade for our bot, but I'm obviously a little concerned about Thad and Sam's bugs. Might I suggest a separate thread with a poll or roll call of NavX MXP users, their programming environment, and their success/failure with the product? If problems are restricted to <5% of users, then I'd probably grab one and try my luck. If >25% of users are having problems, then I'll probably wait until things are more stable.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #198   Spotlight this post!  
Unread 03-04-2015, 01:51 PM
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: 337
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 IndySam View Post
We had to remove ours in the finals because our robot would sometimes just become impossible to drive when connected to the FMS. It would jump turn and move without driver input things it never did in practice.

I didn't see any brownout problems in the logs and until we unbag it for practice next week we do not have access to them.

At this point I doubt if we put it back on. BTW we are programming in Java.
Typically, in a field-oriented drive (or auto-rotate-to-zero) application, the robot's drive train Z-axis rotation is impacted by gyro data; in other words, a gyro anomaly should impact only rotational motion. So while unexpected turning (e.g., spinning in circles) could point to a gyro issue, a robot that unexpectedly "jumps" and "moves" may be a sign of other control-path issues (Joystick->DriverStation->Network->RoboRio).

Please send along any information you can, it's not clear what's different about robots that are FMS-connected, other than the communication path between the Driver Station and the Robot software. The on-field log data for lost packets between DS and RoboRio, CPU time and communication latency might provide valuable info that might help other teams.
Reply With Quote
  #199   Spotlight this post!  
Unread 03-04-2015, 02:40 PM
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,572
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by slibert View Post
Typically, in a field-oriented drive (or auto-rotate-to-zero) application, the robot's drive train Z-axis rotation is impacted by gyro data; in other words, a gyro anomaly should impact only rotational motion. So while unexpected turning (e.g., spinning in circles) could point to a gyro issue, a robot that unexpectedly "jumps" and "moves" may be a sign of other control-path issues (Joystick->DriverStation->Network->RoboRio).

Please send along any information you can, it's not clear what's different about robots that are FMS-connected, other than the communication path between the Driver Station and the Robot software. The on-field log data for lost packets between DS and RoboRio, CPU time and communication latency might provide valuable info that might help other teams.
This thread is tracking an issue with Timers in Java acting differently immediately after a cold boot vs. after a warm boot. It's not directly FMS related, but it's something. The issue seems to be related to the Java Timer class depending on the RoboRIO system datetime, and the datetime initializing to 1970-something on cold start, and getting sync'd to the DS datetime on connection. The problem might just seem related to FMS connection because teams are using a different workflow during match vs. in the pit or practicing.

Also note the post in that thread about SmartDashboard logging buffering during long delays on the field and bogging things down after connection to the robot. There's definitely differences in the order and timing of control system events on the field vs. in the pits.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #200   Spotlight this post!  
Unread 03-04-2015, 03:19 PM
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,112
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by Kevin Sevcik View Post
There's definitely differences in the order and timing of control system events on the field vs. in the pits.
The one obvious and mostly reliable difference is the robot being turned on and probably running user code for a while before the Driver Station is on the network. That's what brings out the timer bug, and the buffered data flood, and perhaps other things that are currently mysterious (e.g. Network Tables glitches). The workaround of restarting the robot program from the Driver Station seems to get past such problems.
Reply With Quote
  #201   Spotlight this post!  
Unread 03-04-2015, 03:31 PM
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,572
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by Alan Anderson View Post
The one obvious and mostly reliable difference is the robot being turned on and probably running user code for a while before the Driver Station is on the network. That's what brings out the timer bug, and the buffered data flood, and perhaps other things that are currently mysterious (e.g. Network Tables glitches). The workaround of restarting the robot program from the Driver Station seems to get past such problems.
Off topic at this point, but when's the generally accepted best time to hit that reboot robot button prior to a match?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #202   Spotlight this post!  
Unread 03-04-2015, 03:33 PM
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by Kevin Sevcik View Post
Off topic at this point, but when's the generally accepted best time to hit that reboot robot button prior to a match?
I hit it when our robot connects to the field and we're connected to the driver station. In case I don't have time, I also tether while in line and restart robot code.
Reply With Quote
  #203   Spotlight this post!  
Unread 03-04-2015, 03:37 PM
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,070
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

We did notice that rebooting the robot code only fixed the issue a few times. Most times it actually did not fix the issues, and the gyro still wouldn't return anything. Even resetting the gyro, then resetting the robot code did not help.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #204   Spotlight this post!  
Unread 03-04-2015, 03:46 PM
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,112
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: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by Kevin Sevcik View Post
Off topic at this point, but when's the generally accepted best time to hit that reboot robot button prior to a match?
Restart the code as soon as possible. In general, that will mean within a couple of seconds of the Driver Station establishing communication with the Robot.

But don't reboot the robot. That takes longer than you want, and could delay the match start. Worse, though, is that it also fails to ensure that the real-time glitch won't happen again.

Last edited by Alan Anderson : 03-04-2015 at 03:50 PM.
Reply With Quote
  #205   Spotlight this post!  
Unread 03-05-2015, 03:09 AM
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: 337
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 Thad House View Post
We did notice that rebooting the robot code only fixed the issue a few times. Most times it actually did not fix the issues, and the gyro still wouldn't return anything. Even resetting the gyro, then resetting the robot code did not help.
We are now able to repeatedly reproduce a condition in the lab when there's a RoboRio Stage 2 brownout for ~30ms (shorter than that, or longer than that does not cause the problem). In this condition, the Invensense chip on the navx MXP gets reset, but the navX MXP microcontroller doesn't - and at that point, the sensor no longer returns gyro values. This condition affects I2C, SPI and TTL UART. This condition doesn't occur for shorter brownout periods (since the navX MXP onboard capacitor provides enough capacity to ride it over). And it doesn't occur for longer brownout periods (since the navX MXP microcontroller gets reset). Your info about 20ms brownouts provided the clue needed to find this.

When this case occurs, the S1 and S2 LEDs on the navX MXP will not be lit, even though the red 3.3V LED will be lit. This is the tell-tale sign.

Once this happens, the navX MXP microcontroller needs to be reset - by pressing the navX MXP reset button, or rebooting the RoboRio.

This should be fixable via a navX MXP firmware update, we should have something in a week or so (the team is traveling to Central Valley Regional this weekend).

In our testing, this case does NOT occur when a secondary 5VDC power source is provided to the navX MXP via the USB connector, since in this case all circuitry onboard the navX MXP stays completely powered through the brownout event.

Based upon this, we reiterate the recommendation to provide a backup power source (via USB connection to the VRM) if Stage 2 brownouts are expected, and will also update this thread once a firmware update is available.

[Please note this does NOT appear related to the errors reported by a few teams during Week 1 events when connected to the FMS. Until we have more information the recommendation is, as previously stated by Alan Anderson, to restart the robot code immediately after first connecting to the robot on the field.]
Reply With Quote
  #206   Spotlight this post!  
Unread 03-06-2015, 02:28 PM
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: 337
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

Joe Hershberger of National Instruments has indicated that the USB ports on the Roborio are powered by a separate regulator with boost capability. The Roborio USB port remains powered all the way down to ~4 volts of VIN from the robot battery.

This is welcome news, as it means that to provide uninterrupted power to the NavX MXP even under brownout conditions, a standard unmodified USB cable connecting the NavX MXP to the Roborio is sufficient. In other words, it is not required to connect the NavX MXP USB port to the VRM in order to provide this backup power source.
Reply With Quote
  #207   Spotlight this post!  
Unread 03-07-2015, 03:05 PM
pluto7443 pluto7443 is offline
Registered User
FRC #4917
 
Join Date: Mar 2014
Location: Canada
Posts: 17
pluto7443 is an unknown quantity at this point
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

We just got this board, and we are using it via USB. To get it to show up in the web interface, we have to unplug and replug in our usb camera. It seems that the only way to update the usb ports is a different device; this board will not cause an update to what usb devices are connected.

Also, once the roboRio refreshes and recognizes the navX the IsConnected() value we are printing to the dashboard continues to display false.

Any ideas would be helpful
thanks!
Reply With Quote
  #208   Spotlight this post!  
Unread 03-07-2015, 04:23 PM
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

We threw ours on as soon as we got the robot out of the bag and it worked perfectly for all of our matches. We were using Java and the NavX was powered through USB.
__________________
Any post that I make expresses only my opinions. I do not represent the opinions of my team or of any entity affiliated with my team.

As a Mentor:
2016 - Engineering Inspiration at Greater Pittsburgh Regional

As a Driver:
2014 - Winner of Greater Pittsburgh Regional
Reply With Quote
  #209   Spotlight this post!  
Unread 03-07-2015, 04:37 PM
pluto7443 pluto7443 is offline
Registered User
FRC #4917
 
Join Date: Mar 2014
Location: Canada
Posts: 17
pluto7443 is an unknown quantity at this point
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by pluto7443 View Post
We just got this board, and we are using it via USB. To get it to show up in the web interface, we have to unplug and replug in our usb camera. It seems that the only way to update the usb ports is a different device; this board will not cause an update to what usb devices are connected.

Also, once the roboRio refreshes and recognizes the navX the IsConnected() value we are printing to the dashboard continues to display false.

Any ideas would be helpful
thanks!
Just to clarify, we are using C++ and still no luck. Any teams running this board via usb/C++ successfully? If so, any insight for us?
Reply With Quote
  #210   Spotlight this post!  
Unread 03-07-2015, 05:56 PM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor

Quote:
Originally Posted by slibert View Post
Joe Hershberger of National Instruments has indicated that the USB ports on the Roborio are powered by a separate regulator with boost capability. The Roborio USB port remains powered all the way down to ~4 volts of VIN from the robot battery.

This is welcome news, as it means that to provide uninterrupted power to the NavX MXP even under brownout conditions

Are you doing testing to confirm?
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 08:09 PM.

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