Go to Post All this is sounding like gobbly-de-gook but it is important to understand this gobbly-de-gook. - ebarker [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 18-02-2012, 19:38
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Help code gyro turn robot and encoder distance

Hi All

My team wants to turn robot and go X distance after turn x degrees in Autonomous. I do not have a lot of experience with this, but I am trying to help. I am using LabView, sinc eI am not a programmer and it is easy to use.

I connected Gyro and Digital Encoder on shaft for distance. I have both working in LabView Examples, cut and paste into Autonomous. I am using driver station input to determine if they go left or right, this is working.

Having trouble with code, start by turning robot using Gyro. They are using tank drive, making it more difficult to steer.

Example, start turning left until Gyro reaches 30degrees and stop... used select cases to start slowing down motor when gets close, this code is getting ugly... I looked into PID examples, having hard to to get this to apply.
Doe anyone have sample code they can send?

Alos, after reach 30%, go straight for x feet, I rset Gyro when get there to try and keep robot straigt until encoder reahes distance, not experience enough to have this code working well.. does any one have sample code to use gyro keep staright and start slowing robot when encoder getting close to desired distance.

Greatly appreciate support
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 20:59
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: Help code gyro turn robot and encoder distance

We seem to have a similar problem look at my post which you will find if you search swerve drive and see the feedback i got
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 22:10.

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