Go to Post You wake up at 2:54 am and aren't even mad bc robots - fargus111111111 [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 06-02-2011, 12:26
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Current angle from gyro

Hey, I was wondering if anyone knows how to use the "Gyro Get Angle" block in labview. I wired it up and put an indicator on it, but it seems to just keep increasing in angle infinitely or decreasing in angle infinitely.

Am I doing something wrong with this? Or is the subvi just bad?

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2011, 13:47
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,113
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: Current angle from gyro

Did you open a gyro reference in Begin and use the same name for its reference in Teleop?

Do you actually have a yaw rate sensor "gyro" connected on Analog Input 1 or 2?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2011, 14:18
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Current angle from gyro

Quote:
Originally Posted by Alan Anderson View Post
Did you open a gyro reference in Begin and use the same name for its reference in Teleop?

Do you actually have a yaw rate sensor "gyro" connected on Analog Input 1 or 2?
Analog 1 and it is referenced in begin and uses the same name.

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2011, 14:30
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,113
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: Current angle from gyro

There's nothing wrong with the LabVIEW functions.

If your Get Angle continuously increments or decrements, one of three things is likely. First, you might have a faulty gyro. Second, you might have misconnected to its Temperature output instead of its Rate output. Third, your robot might have been jostled during the brief time the gyro code was being initialized and measuring the sensor's offset.

Check your wiring first.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2011, 14:36
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Current angle from gyro

Does it work with the gyro example program?
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2011, 14:55
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Current angle from gyro

The wiring is good. The angle per second was working fine. So are you saying next time i start it up if it is still it will work?

What is the example gyro code?
Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2011, 16:28
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Current angle from gyro

From the getting started window in LabVIEW, select the "Find FRC examples" in the lower right hand corner. It will give you examples for many different sensors actuators, and other things. The examples show the required wiring and minimal code to get it working.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2011, 18:08
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Current angle from gyro

I didn't have set gain in there. Could that be it? (I won't be able to test till tomorrow)

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #9   Spotlight this post!  
Unread 07-02-2011, 22:01
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Current angle from gyro

I figured it out, it was a stupid error. I made a typo in the reference string.

Thanks for your help!
Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
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 20: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