OCCRA
Go to Post WE might have a different plan than being overweight, but thats just my guess - pakrat [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-17-2018, 11:18 AM
jinggeorge jinggeorge is offline
Registered User
FRC #0128
 
Join Date: Jan 2016
Location: Columbus, OH
Posts: 30
jinggeorge is an unknown quantity at this point
gyro not found

We have the gyro from 2017 KOP (am 3555), it is plugged into the SPI port on the roboRIO as instructed by andymark. When we try to get the angle from the gyro and put it on the Smartdashboard, we get an error in the driver station that says "error 1: ADXRS450 Gyro not found" and the only value that we are getting on the dashboard is 0.0. We tried the gyro on an old robot last night and it worked fine, but it's not working on our new robot. The programming for the gyro is here:

https://gist.github.com/anonymous/90...ff9b9997fc3d52

pleae help us find the issue if you can! thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 02-17-2018, 11:30 AM
Peter Johnson Peter Johnson is offline
Volunteer WPILib Developer, CSA
no team (WPILib)
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 536
Peter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond repute
Re: gyro not found

Take a look at this thread: https://www.chiefdelphi.com/forums/s...d.php?t=162415

In particular, are the gyro LEDs lit?
__________________
WPILib Developer, 2014-Present:
  • Author of cscore - WPILib CameraServer for 2017+
  • Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC
Mentor, Team 294, 2008-2018 (World Champions FRC 2010 & FTC 2008)
Reply With Quote
  #3   Spotlight this post!  
Unread 02-17-2018, 01:13 PM
jinggeorge jinggeorge is offline
Registered User
FRC #0128
 
Join Date: Jan 2016
Location: Columbus, OH
Posts: 30
jinggeorge is an unknown quantity at this point
Re: gyro not found

The LED on the sensor is lit, I have copied the exact code that I used for the robot on which it works, and I have cleaned out all of the ports on the RIO. Still does not work, still not found.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-17-2018, 04:52 PM
jinggeorge jinggeorge is offline
Registered User
FRC #0128
 
Join Date: Jan 2016
Location: Columbus, OH
Posts: 30
jinggeorge is an unknown quantity at this point
Re: gyro not found

update: still not found even after switching roboRIOs
Reply With Quote
  #5   Spotlight this post!  
Unread 02-18-2018, 12:40 AM
Peter Johnson Peter Johnson is offline
Volunteer WPILib Developer, CSA
no team (WPILib)
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 536
Peter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond reputePeter Johnson has a reputation beyond repute
Re: gyro not found

Is the snippet you posted the entirety of code running when you are testing this?
__________________
WPILib Developer, 2014-Present:
  • Author of cscore - WPILib CameraServer for 2017+
  • Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC
Mentor, Team 294, 2008-2018 (World Champions FRC 2010 & FTC 2008)
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 07:04 PM.

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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi