Go to Post "Everything is possible. Just depends on how much it costs and how much physics you have to apply..." - Kimmeh [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 14-01-2012, 07:28
mikemascot's Avatar
mikemascot mikemascot is offline
SIR MASCOT
AKA: Mike handte
FRC #0316 (LuNaTeCs)
Team Role: Mascot
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Alloway New Jersey
Posts: 24
mikemascot is an unknown quantity at this point
bridge balancing

hey any one trying to get the end game. Team 316 is we are using labveiw 2011. Any tips?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2012, 09:23
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
use an accelerometer to auto balance
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2012, 15:53
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Thumbs up Re: bridge balancing

we have the robot automatically balancing. teaser coming soon
__________________
2015 MAR District Champions




Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2012, 14:12
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: bridge balancing

you would use the gyros for balancing more than you would use the accelerometers, as you would want the gyros to be at a 0 degree angle of rotation or within a certain range, instead of the feedback from the robots current rate of motion

also, as a side note, please post that teaser soon, i am also trying to figure out this in Labview and im stuck!
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2012, 14:22
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: bridge balancing

Quote:
Originally Posted by mike1010100 View Post
you would use the gyros for balancing...
But what about gyro drift? How do you handle that and get a foolproof angle? Don't worry - it's not too hard - we've got it figured out already, and we just need some fine tuning on our bridge balancing. I'm sure you can figure it without too much trouble.

Google is your friend.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2012, 15:10
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: bridge balancing

we have two gyros on the robot, one in front and one in the back, and I have taken the absolute values of each of them then taken the difference, put them into an in range and coerce function ect. but I can only either get the robot to try and level itself by either moving backwards or forwards, but not both backwards and forwards until its level, its only going in one direction to do that
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2012, 22:19
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: bridge balancing

How accurate is this combination? Remember that gyros generally give better rate information (as in, a better angular rate while your robot is in motion) and accelerometers give better absolute angles while stationary.

A couple days ago, I set up both a gyro and an accelerometer with LabVIEW front panel graphs and just watched the readings - you should do this too (or your C++/Java debug method of choice). You'll learn something: gyros drift over time. Sometimes it's a really big amount, and sometimes it's only a little. But it's always there. You'll have to find a good way to compensate for it in software and get a really precise angle out of it. I know a few ways to do it, but I'm not going to say. You'll learn it better if you figure it out for yourself.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2012, 22:26
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: bridge balancing

I'm not a programmer, but if this was my problems to solve, I wouldn't care about absolute gyro angle, just changes. That is, I'd have my driver press a button to "auto balance", and start the process from there.

Oh, wait: If the robot isn't on a bridge, then it might think that level = tilted.

OK, self-calibrate every 5 seconds, and take the average of the last 10 values or something.

Or just tell the driver to press 'calibrate' when the bot is level, within 20-30 seconds of getting onto the ramp.

Programmers: Am I close?
__________________

I am N2IRZ - What's your callsign?
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:31.

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