Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Movement in Autonomous using Timing (http://www.chiefdelphi.com/forums/showthread.php?t=118403)

ArzaanK 12-08-2013 11:40

Movement in Autonomous using Timing
 
1 Attachment(s)
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.

AGPapa 12-08-2013 12:03

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.

GuyM142 12-08-2013 16:38

Re: Movement in Autonomous using Timing
 
You better take a look at this:
https://decibel.ni.com/content/docs/DOC-26295


All times are GMT -5. The time now is 09:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi