Go to Post Was it supposed to go all sparkly and smokey like that? - dlavery [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 12-08-2013, 11:40
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Movement in Autonomous using Timing

To make our robot more appealing during presentations, demonstrations and etc, we have decided to incorporate some movement in autonomous, however, we are having some problems with this. We do not have encoders on our wheels, meaning that all autonomous movement is controlled with timing.

I have tested out various different methods of moving the robot during autonomous, but for some reason none of them worked.

Please have a look at the attached screenshot of the code. In blocks 1 and 2, the robot will keep going forward, and not stop until the autonomous period is over. In block 3, the robot will lurch forward and then stop immediately.

The "SIX MOTOR TELEOP" is the custom VI in which all of the drive motors are controlled in. This VI works just fine in Teleop.

Any help would be greatly appreciated.
Attached Thumbnails
Click image for larger version

Name:	code problems.JPG
Views:	52
Size:	54.6 KB
ID:	15138  
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
Reply With Quote
  #2   Spotlight this post!  
Unread 12-08-2013, 12:03
AGPapa's Avatar
AGPapa AGPapa is offline
Registered User
AKA: Antonio Papa
FRC #5895
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Robbinsville, NJ
Posts: 323
AGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond repute
Re: Movement in Autonomous using Timing

In blocks 1 & 2 the elapsed time is outside of the loop, so it will only calculate once in the beginning.

In block 3 the safety VIs kick in and tell the motors to stop because you're not updating their state often enough.

Try a for loop with a wait of 20ms inside that executes 100 times.
__________________
Team 2590 Student [2011-2014]
Team 5684 Mentor [2015]
Team 5895 Mentor [2016-]

Last edited by AGPapa : 12-08-2013 at 12:15.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-08-2013, 16:38
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 156
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Re: Movement in Autonomous using Timing

You better take a look at this:
https://decibel.ni.com/content/docs/DOC-26295
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 04:30.

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