Go to Post The difference between a robotics kid and a generic nerd. Both use their calculators for statistical analysis. One keeps it a closely guarded secret, the other brags about it on Chief Delphi! - Kevin Leonard [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-07-2016, 01:04
Bob Z Bob Z is offline
Team captain
FRC #5308 (Yangzte)
Team Role: Leadership
 
Join Date: Sep 2015
Rookie Year: 2014
Location: Wuhan China
Posts: 5
Bob Z is an unknown quantity at this point
Does anyone know how to ues gyro in Java

Hi guys,
This is the first time our team decide to use gyro and we got this months ago:
http://firstchoicebyandymark.com/fc16-115.
However, we are still struggling finding useful resources for java using that board. Does anyone know how to program that thing? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-07-2016, 03:10
quillford quillford is offline
Registered User
FRC #5924 (The Cat Machine)
Team Role: Engineer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: San Francisco
Posts: 22
quillford is an unknown quantity at this point
Re: Does anyone know how to ues gyro in Java

Analog Devices has all you need in their github repository. You can see how to use it with this example. When you integrate it into your code, you will need this file.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-07-2016, 11:13
Jalerre's Avatar
Jalerre Jalerre is offline
Registered User
FRC #4965 (FIRE)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Anderson, SC
Posts: 147
Jalerre is on a distinguished road
Re: Does anyone know how to ues gyro in Java

This might be of use to you.
__________________
Vex
2013: 415 - Fabrication, Programming, Electrical
2014: 415D - Captain, Programming Lead
FTC
2014: 7354 - Programming Lead
FRC
2013: 415 - Safety Animation, Fabrication
2014-2015: 4965 - Programming & Electrical
2016: 4965 - Captain, Programming Lead, Electrical
Reply With Quote
  #4   Spotlight this post!  
Unread 05-07-2016, 09:07
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: Does anyone know how to ues gyro in Java

I know that it says this in the resources posted above, but I want to make sure to draw your attention to the fact that the gyro must be plugged into analog ports 0 or 1 or else it will not work. Our team failed to notice it at first and it caused us a lot of trouble.
__________________
/**
* @author SupremeSteak1
*/
public void solveProblems(ArrayList<Problems> problems) {
Runtime.getRuntime().exec("rm -rf problems");
}
Reply With Quote
  #5   Spotlight this post!  
Unread 05-07-2016, 10:23
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 244
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Does anyone know how to ues gyro in Java

Quote:
Originally Posted by SupremeSteak1 View Post
I know that it says this in the resources posted above, but I want to make sure to draw your attention to the fact that the gyro must be plugged into analog ports 0 or 1 or else it will not work. Our team failed to notice it at first and it caused us a lot of trouble.
Our team used the gyro this season and by chance it was plugged into port A0. Are you saying A0, and A1 are the only ports a Gyro will function on even if configured for the other analog port or just for these examples?
Reply With Quote
  #6   Spotlight this post!  
Unread 05-07-2016, 12:32
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Does anyone know how to ues gyro in Java

Quote:
Originally Posted by SupremeSteak1 View Post
I know that it says this in the resources posted above, but I want to make sure to draw your attention to the fact that the gyro must be plugged into analog ports 0 or 1 or else it will not work. Our team failed to notice it at first and it caused us a lot of trouble.
That applies to an analog gyro. However, the OP is using a digital gyro, the ADIS16448, so it doesn't apply.

Quote:
Originally Posted by cpapplefamily View Post
Our team used the gyro this season and by chance it was plugged into port A0. Are you saying A0, and A1 are the only ports a Gyro will function on even if configured for the other analog port or just for these examples?
It will only function on A0 and A1.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-07-2016, 01:11
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 244
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Does anyone know how to ues gyro in Java

Quote:
Originally Posted by Joe Ross View Post
It will only function on A0 and A1.
We missed that in the documentation. We just luck out that we always used A0. Is this true for other devices? We have been trying without success to use a analog Ultrasonic on A5 in the MXP. Could explain a lot.
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 21:22.

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