Go to Post If they need a place where they can get a chance to learn interpersonal skills (like a team), it might just help them to become well-adjusted adults, as opposed to pathologically antisocial engineers (who got good grades). - Tristan Lall [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-03-2016, 20:37
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 75
apm4242 will become famous soon enoughapm4242 will become famous soon enough
Using a Gyro without Encoders

Hello. This is the first year we have attempted using gyros, PID, and while loops to navigate in autonomous. I think I have it right and the code does seem to work properly (I'm using a test bed as the robot is currently bagged) but I could use a second opinion to tell me if I'm doing anything wrong.

The routine is supposed to drive straight for a certain time, turn 60 degrees towards the low goal, drive straight for a certain time, and shoot the boulder. It uses a flat sequence structure with while loops in the frames that require iterative functions.

1. Resetting the gyro - Does this require some time or is it instantaneous? Where is the best place to reset this?
2. Reading gyro data - Does gyro data need to be read in each separate while loop?
3. Using wait.vi and loop iterations to keep time - I set the loop to iterate every 10 ms and to terminate when it reaches 500 iterations. I assume this will be 5 seconds. Is there any reason this would not be 5 seconds? Is there a better way to do this?

Any help is appreciated!
Attached Thumbnails
Click image for larger version

Name:	4242_Auto_Gyro_2016.png
Views:	78
Size:	89.4 KB
ID:	20240  
Reply With Quote
 


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:43.

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