Go to Post In other words, don't worry about the results but strive for excellence in the way you live your life and everything you do. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 47 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 21-12-2015, 20:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Got Gyro drift? Try Sensor Fusion !

The Rock Robotics library is designed to work with the hardware used by FIRST Robotics Competition teams, and the special FPGA image that goes along with it. If you don't have a RoboRIO or FRC-cRIO system, you won't be able to use them. And even if you do have that hardware, you will need the special Driver Station program running on a network-connected Windows laptop in order to enable the hardware outputs.

While some of us here are able to give general advice, you're not likely to get the specific help you're looking for in this forum.
Reply With Quote
  #47   Spotlight this post!  
Unread 22-12-2015, 03:36
tetris tetris is offline
Registered User
no team
 
Join Date: Dec 2015
Location: Switzerland
Posts: 7
tetris is an unknown quantity at this point
Re: Got Gyro drift? Try Sensor Fusion !

Thank you for your answers.

Is it possible to make 3 screenshots of the "context help" in Labview for these 3 Icons?: "WPI_I2COpen"; "WPI_I2CRead"; WPI_I2CWrite"

I need the name and descriptions of inputs and outputs of each icon (example with picture attached).

Thanks a lot, sorry to bother you

Regards
Attached Thumbnails
Click image for larger version

Name:	TOTO.JPG
Views:	26
Size:	32.0 KB
ID:	19597  
Reply With Quote
  #48   Spotlight this post!  
Unread 22-12-2015, 12:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Got Gyro drift? Try Sensor Fusion !

Quote:
Originally Posted by tetris View Post
Is it possible to make 3 screenshots of the "context help" in Labview for these 3 Icons?: "WPI_I2COpen"; "WPI_I2CRead"; WPI_I2CWrite"

I need the name and descriptions of inputs and outputs of each icon (example with picture attached).
I think you are still not understanding what you are asking for. The WPI library functions (in the Rock Robotics directory) work with the FIRST-specific FPGA image on a RoboRIO device, which you don't have, and which you almost certainly do not want.

Can we take a few steps back and get a more general view of what you're trying to do? If you're using the NI USB-8451, nothing you read here is applicable.
Reply With Quote
  #49   Spotlight this post!  
Unread 23-12-2015, 03:31
tetris tetris is offline
Registered User
no team
 
Join Date: Dec 2015
Location: Switzerland
Posts: 7
tetris is an unknown quantity at this point
Re: Got Gyro drift? Try Sensor Fusion !

Hello thank you for your answers....
It is for a school project (engineering master).
I need the screenshot: i have installed labview 2014 and FIRST ( because I have student licence of my school).

Best regards
and Mery christmas
Reply With Quote
  #50   Spotlight this post!  
Unread 23-12-2015, 05:16
tetris tetris is offline
Registered User
no team
 
Join Date: Dec 2015
Location: Switzerland
Posts: 7
tetris is an unknown quantity at this point
Re: Got Gyro drift? Try Sensor Fusion !

Hello
yes exactly I need the WPI library functions (in the Rock Robotics directory)
Can you send it to me ? Where can I find it? I need to understand the blockdiagramms in order to
adapt the programm with my USB 8451 device.

regards
Reply With Quote
  #51   Spotlight this post!  
Unread 24-12-2015, 14:06
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Got Gyro drift? Try Sensor Fusion !

Quote:
Originally Posted by tetris View Post
Hello
yes exactly I need the WPI library functions (in the Rock Robotics directory)
Can you send it to me ? Where can I find it? I need to understand the blockdiagramms in order to
adapt the programm with my USB 8451 device.

regards
If you actually installed the FRC update then you would have these VIs. You could then use those VIs to understand the API that FRC uses so that you can port to the other USB I2C API.

I would recommend installing the "FRC Update".
Reply With Quote
  #52   Spotlight this post!  
Unread 26-12-2015, 05:34
tetris tetris is offline
Registered User
no team
 
Join Date: Dec 2015
Location: Switzerland
Posts: 7
tetris is an unknown quantity at this point
Re: Got Gyro drift? Try Sensor Fusion !

Thanks a lot yes I did it and it works.
Nice that you help people and thanks a lot jhersh..... because other user on this forum was very unhelpful and not friendly with me!

Happy new year Jhersh and all the best in the new year 2016!!!!
Denis from GENEVA
Reply With Quote
  #53   Spotlight this post!  
Unread 07-02-2016, 00:45
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 105
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: Got Gyro drift? Try Sensor Fusion !

Hi everyone! I hate to bring up an old post, but I want to post a shout-out to the RoboBees for providing the FIRST community with an elegant AHRS implementation!

As some of you may know, I've been working to improve the software libraries available for the ADIS16448 IMU. I ran across the RoboBees implementation and managed to integrate it into the main IMU code.

Once again, thank you very much for all of your hard work! If you would like to take a look at the code, you can find it on GitHub here.
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer

Last edited by juchong : 07-02-2016 at 00:52.
Reply With Quote
  #54   Spotlight this post!  
Unread 29-03-2016, 23:18
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Got Gyro drift? Try Sensor Fusion !

Has anyone tried to use this code this year. I used it last year with great success. However i started to add this into my 2016 code and it keeps asking for a FPGA_TypedefDigitalModule.ctl does anyone know where to find this
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #55   Spotlight this post!  
Unread 30-03-2016, 08:52
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 745
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Got Gyro drift? Try Sensor Fusion !

Quote:
Originally Posted by Bpk9p4 View Post
Has anyone tried to use this code this year. I used it last year with great success. However i started to add this into my 2016 code and it keeps asking for a FPGA_TypedefDigitalModule.ctl does anyone know where to find this
NI changed the VI's for several I/O devices this year. In most cases they removed the need to enter a module number, but your old code is still trying to provide one from an enumerated list. But that typedef does not exist any more.

There's probably a faster way, but if you just drill down through the VIs and locate all the ones with errors, you can just delete the "module number" constant that is giving the problem. It's not needed any more.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #56   Spotlight this post!  
Unread 31-03-2016, 20:21
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Got Gyro drift? Try Sensor Fusion !

Bpk - If I remember correctly, you can just delete the reference to the .control in the code and the rest should work ok.

See this for a much more advanced IMU with LabVIEW code The RoboBees are using this one for StrongHold - you might like it.
Reply With Quote
  #57   Spotlight this post!  
Unread 11-12-2016, 13:54
dhal_sauce dhal_sauce is offline
Registered User
no team
 
Join Date: Dec 2016
Location: Trinidad and Tobago
Posts: 1
dhal_sauce is an unknown quantity at this point
Re: Got Gyro drift? Try Sensor Fusion !

Hey good day,
I very much like the work you have done on the AHRS and I am thinking about manipulating the code to use with an Arduino. I am currently making a DIY flight controller for a quadcopter as a project for my BSc in Electrical and Computer Engineering and I am having difficulty in properly fusing my sensors. I am able to get raw data from them(I have an AltIMU 10 V5 https://www.pololu.com/product/2739) but my attempts to properly fuse the data has been futile thus far.
I wanted to know if you think it is possible to build an Arduino version of the AHRS based on your code for LabVIEW platform?

Regards.
Reply With Quote
  #58   Spotlight this post!  
Unread 11-12-2016, 22:29
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Got Gyro drift? Try Sensor Fusion !

Quote:
Originally Posted by dhal_sauce View Post
Hey good day,
I very much like the work you have done on the AHRS and I am thinking about manipulating the code to use with an Arduino. I am currently making a DIY flight controller for a quadcopter as a project for my BSc in Electrical and Computer Engineering and I am having difficulty in properly fusing my sensors. I am able to get raw data from them(I have an AltIMU 10 V5 https://www.pololu.com/product/2739) but my attempts to properly fuse the data has been futile thus far.
I wanted to know if you think it is possible to build an Arduino version of the AHRS based on your code for LabVIEW platform?

Regards.
The page you linked to has sample code on it. (https://github.com/pololu/minimu-9-ahrs-arduino) which is for an arduino. That should be easier.
Reply With Quote
  #59   Spotlight this post!  
Unread 11-12-2016, 23:03
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Got Gyro drift? Try Sensor Fusion !

To answer your question, yes, you should be able to write a simple fusion algo on the Arduino. The Complementary Filter (used here) is computationaly simple.

As Austin points out there appears to be Arduino code available
://github.com/pololu/minimu-9-ahrs-arduino/blob/master/README.textile

Couldn't tell which fusion algo they use from the read-me.

Other ideas: The IMU used in this thread is from AdaFruit ... they have interface code for the Arduino, but no fusion code if I recall.

There are other IMUs that have built-in fusion algos, and can be interfaced with the Arduino ... There's another thread, https://www.chiefdelphi.com/forums/s...d.php?t=141100
that discusses this.

If you use an IMU with built-in fusion it will likely out perform what you might develop and get you there faster. If you write your own, you'll learn more.
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 13:15.

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