Go to Post Isn't that what we do here? It seems like no 'controversial' thread is complete until everyone gets a say. - kjohnson [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 07-10-2015, 19:00
April McShorty April McShorty is offline
Most Senior Member (Grandmama)
AKA: April Tobergte
FRC #0240 (Tempest)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Michigan
Posts: 16
April McShorty is an unknown quantity at this point
Issue with getting gyro to work with mecanums.

We are having trouble with gyro. We have the code set up in begin, teleop, and autonomous. From other code examples it looks correct, but not getting any gyro angle going to driver station.

We also not sure whether not gyro is not working in autonomous or teleop. We appreciate some examples for labview that will help point us in the right direction.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-10-2015, 19:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Issue with getting gyro to work with mecanums.

Have you tried running the gyro example that comes with LabVIEW?

From the Getting Starting window that first pops up when LabVIEW is started, choose Support and FRC Examples, then look under sensors for gyro.
Support -> Find FRC Examples... -> FRC Robotics -> roboRIO -> Sensors -> Gyro

The example runs as is over the USB connection to the roboRIO and includes a wiring diagram to double check your wiring.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 07-10-2015 at 19:38.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-10-2015, 18:16
April McShorty April McShorty is offline
Most Senior Member (Grandmama)
AKA: April Tobergte
FRC #0240 (Tempest)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Michigan
Posts: 16
April McShorty is an unknown quantity at this point
Re: Issue with getting gyro to work with mecanums.

We tried that but nothing is working.
We are thinking there is a problem with the dashboard but we are not sure.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-10-2015, 20:08
sraque's Avatar
sraque sraque is offline
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 83
sraque is on a distinguished road
Re: Issue with getting gyro to work with mecanums.

Could you be more specific about what is not working with the example. The example doesn't use the dashboard, so your answer is a bit confusing.

You should find the example as per the first screenshot attached.

The second screenshot attached is the gyro example itself. Wire as shown and run.
Attached Thumbnails
Click image for larger version

Name:	Examples.PNG
Views:	21
Size:	78.7 KB
ID:	19356  Click image for larger version

Name:	Gyro Example.PNG
Views:	21
Size:	161.8 KB
ID:	19357  
Reply With Quote
  #5   Spotlight this post!  
Unread 20-10-2015, 12:33
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 123
aeastet is an unknown quantity at this point
Re: Issue with getting gyro to work with mecanums.

What gyro are you using? You may need to download the drivers for that gyro.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-10-2015, 17:23
Jonathan L. Jonathan L. is offline
Programmer alumnus, mentor, and CSA
FRC #1094 (Channel Cats)
 
Join Date: Jan 2013
Rookie Year: 2011
Location: St. Louis MO
Posts: 78
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: Issue with getting gyro to work with mecanums.

When you run the example make sure you select the correct analog input BEFORE you run the program. Remember they start at 0 this year.

Last edited by Jonathan L. : 25-10-2015 at 17:28.
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 21:24.

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