Go to Post ...these guys have taken it to a new level. (I want to be part of a team like that.) - Tetraman [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-01-2016, 20:17
crazycats crazycats is offline
Registered User
FRC #0386
 
Join Date: Jan 2016
Location: Florida
Posts: 2
crazycats is an unknown quantity at this point
Question How to use a gyro?

Newbie software mentor here.
Our team is using Java for the first time and we'd like to use a gyro. We've read through the control system and roboRIO documentation and can't seem to find anything that describes (1) what to do with the hardware and (2) what to do with the software.

The roboRIO has an accelerometer however the documentation was baffling.

Snippets of documentation we found were:
"Gyros typically in the FIRST kit of parts are provided by Analog Devices, and are actually angular rate sensors. "
and
"Note: The AnalogGyro class in WPILib uses a hardware (implemented in the FPGA) accumulator to perform the integration. This means Gyros are supported on a specific, limited, set of channels. On the roboRIO this is currently Analog Inputs 0 and 1 on the on-board headers."

So does this mean we can install a gyro made by Analog Devices in Analog inputs 0 and 1 and the sample code could be used to determine the angle? If so, what are the supported devices we can install? We do have gyros from previous years.

Also, when the Note above refers to "the FPGA", what FPGA are they talking about?

Many thanks.
Reply With Quote
 


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:41.

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