Go to Post Scrap it and use the cheesey poof's design - vladtheimpaled [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 30-12-2015, 16:47
nolani12 nolani12 is offline
Registered User
FRC #0401
 
Join Date: Dec 2015
Location: Christiansburg
Posts: 1
nolani12 is an unknown quantity at this point
How to use Gyro on AI 2/AI 3?

I'm doing some gyro sensor testing on an old bot and wanted to hook more than two up at one time. (I have 5 sensors and have to pick out the two best ones.)

The Gyro test VI only lets you choose AI 0 and 1 for the gyro. I tweaked the VI quite a bit for my usage. I was thinking, why not just modify the enum (that only lets you use 0 and 1) to allow for more ports? So I dug down to lower level VI's like Gyro Open and it appears that does nothing to restrict what ports you can use. I went in the Gyro Test VI and went ahead and edited the enum to allow all 4 AI ports 0-3.

Ran the VI with 2 selected, nothing happens. 0 and 1 work fine, but 2 and 3 do not.

Is there a reason we cannot use the other AI ports? Are they reserved for something else? We normally have pressure sensors on the other AI's (and use only 2 gyros) but for testing it would be great to use all 4. And I'm just curious why it would not let you use them.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-12-2015, 16:53
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,091
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: How to use Gyro on AI 2/AI 3?

Quote:
Originally Posted by nolani12 View Post
I'm doing some gyro sensor testing on an old bot and wanted to hook more than two up at one time. (I have 5 sensors and have to pick out the two best ones.)

The Gyro test VI only lets you choose AI 0 and 1 for the gyro. I tweaked the VI quite a bit for my usage. I was thinking, why not just modify the enum (that only lets you use 0 and 1) to allow for more ports? So I dug down to lower level VI's like Gyro Open and it appears that does nothing to restrict what ports you can use. I went in the Gyro Test VI and went ahead and edited the enum to allow all 4 AI ports 0-3.

Ran the VI with 2 selected, nothing happens. 0 and 1 work fine, but 2 and 3 do not.

Is there a reason we cannot use the other AI ports? Are they reserved for something else? We normally have pressure sensors on the other AI's (and use only 2 gyros) but for testing it would be great to use all 4. And I'm just curious why it would not let you use them.
The gyroscopes use an accumulator built into the FPGA to do the integration of gyro rate to get the gyro angle. There are only 2 of these accumulators in the FPGA, and they are assigned to Analogs 1 and 2. You could manually write your own integration accumulator to use more gyroscopes, however they would probably be less accurate as a software accumulator would run at a slower rate then the FPGA accumulator.
__________________
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
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 10:26.

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