Go to Post Anyway, it's a global program and a global world. - Christopher149 [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 23-01-2017, 16:22
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 254
BitTwiddler is on a distinguished road
Re: Class ADXRS450_Gyro output angles?

Quote:
Originally Posted by wt200999 View Post
The angle is continuous, there is no code to wrap in the ADXRS library (so 360 to 361, or on the other hand, 0 to -1 etc). I attached the portion of code that does the actual accumulation which shows this is the case.
Is this the code that runs on the FPGA? If so, it never occurred to me that it would be written in LabView. I can see that all it really does is integrate the rate info over time. No real magic to it.
Thanks, this explains a lot.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2017, 18:05
wt200999's Avatar
wt200999 wt200999 is online now
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Class ADXRS450_Gyro output angles?

Quote:
Originally Posted by BitTwiddler View Post
Is this the code that runs on the FPGA? If so, it never occurred to me that it would be written in LabView. I can see that all it really does is integrate the rate info over time. No real magic to it.
Thanks, this explains a lot.
The gyro code above runs in the background on the RIO itself (would be nice if it was on the FPGA, but doesn't happen in this case). You can find that code snippet if you look in the Gyro Open VI.

However I believe the FPGA implementation is also all done in LabVIEW using LabVIEW FPGA. Due to the parallel nature of LabVIEW it actually lends itself quite well to being compiled onto the FPGA.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -

Last edited by wt200999 : 23-01-2017 at 18:08.
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 15:29.

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