Go to Post Coming up next on Pimp My Ride.....Yo man, here is the real deal. A two-oh-oh-six Segway I-one-eighty, with stock rims, stock fenders, and two 3 horse motors that red-line at twelve point five miles per hour. Get ready, because I'm going pimp this ride! - artdutra04 [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 01-03-2016, 11:54
Chief Hedgehog's Avatar
Chief Hedgehog Chief Hedgehog is offline
Mentor
FRC #4607 (C.I.S.)
Team Role: Coach
 
Join Date: May 2013
Rookie Year: 2012
Location: Becker, Minnesota
Posts: 545
Chief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond reputeChief Hedgehog has a reputation beyond repute
Need help reading gyro values on dashboard

Our programmers are struggling with how to show their gyro values on the LabView Dashboard. To be more clear, this is the gyro and accelerometer pair that we received in the KOP. They took the example gyro code and they aren't sure if that works either, but the next step to figuring out if it works is getting a value on the dashboard.

After that problem is sorted out, they would like to know how to prevent gyro drift and how to have a button be able to reset the gyro value to zero (when our shooter arm is all the way down).

Thanks for your time and help.

Ps. They would've made this post themselves if they didn't lock themselves out of Chief Delphi by entering in too many wrong passwords.
__________________

"An error does not become a mistake until you refuse to correct it" ~JFK
Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2016, 14:06
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 584
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Need help reading gyro values on dashboard

Quote:
Originally Posted by Chief Hedgehog View Post
Our programmers are struggling with how to show their gyro values on the LabView Dashboard. To be more clear, this is the gyro and accelerometer pair that we received in the KOP. They took the example gyro code and they aren't sure if that works either, but the next step to figuring out if it works is getting a value on the dashboard.

After that problem is sorted out, they would like to know how to prevent gyro drift and how to have a button be able to reset the gyro value to zero (when our shooter arm is all the way down).

Thanks for your time and help.

Ps. They would've made this post themselves if they didn't lock themselves out of Chief Delphi by entering in too many wrong passwords.
They should be able to set any data to the gyro dial on the Dashboard by wiring the value to the indicator "Gyro" in the lock diagram. To get the gyro from the robot to the dashboard, send the value over Network Tables in the robot code then access it in the Dashboard and wire it to the Gyro indicator.

Lowering gyro drift is a much harder problem. Some drift can be caused from badly calibrating the gyros (make sure the robot is sitting still for the first few seconds after you start it up). It can also be caused by electronic interference in the wires (keep them away from motors, power wires, and things that make static). Also just getting a higher quality gyro will help.

To reset the gyro with a button, just wire that button to the Gyro reset VI.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2016, 13:55
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 83
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Need help reading gyro values on dashboard

To build on what Ari423 said - you have to send the value from your Get Angle vi to a NT Write Number vi and name the NT Write Number. In the dashboard main vi (in your dashboard project), use a NT Read Number vi with the same name and wire it to the gyro double (it's orange). If you can't find it, go to the dashboard main front panel, right click on the gyro dial, and click Find Terminal.

I just did something similar and it seems to work. I only have a screen shot of the NT Write side of the code though - http://www.chiefdelphi.com/forums/at...0&d=1456882548
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2016, 09:31
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 136
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Need help reading gyro values on dashboard

From the Tutorials tab of the LabVIEW Getting Started window, you might take a look at:
Tutorial 6: Creating a Custom Dashboard

Followed by:
Tutorial 7: Integrating Examples into Robot Code
Part 2 of this tutorial shows how to send gyro data from the robot to the dashboard followed by how to edit the dashboard to show the gyro data.
__________________
Doug Norman
National Instruments
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 09:07.

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