|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Load file quicker
How much difference are you seeing? Are we talking about a small rounding error that accumulates, or something else?
Greg McKaskle |
|
#2
|
|||
|
|||
|
Re: Load file quicker
like its running twice as fast or so.
|
|
#3
|
|||||
|
|||||
|
Re: Load file quicker
Could be your Teleop loop is slower than the 50Hz packet rate.
You might be dropping every other DS packet and your playback rate would appear half speed. Check the timing of the Teleop loop with Greg's Elapsed Times.vi under Support Code in your Project Explorer window. Drop one copy in Teleop and another in Autonomous to compare the speeds. View the Elapsed Times front panel while running the code from your PC. Then match the Autonomous loop to the times you're getting from Teleop. I'd suggest using Wait Until Multiple to get the times. A simple Wait will lag just a tiny bit every loop. Last edited by Mark McLeod : 09-03-2011 at 08:05. |
|
#4
|
|||
|
|||
|
Re: Load file quicker
I tried everything I could to make it run the same speed but I couldn't get it. In the end I made it so that autonomous enabled would run the same case as teleop enabled and start playback right away.
Thanks for all the help guys, it worked even better than I thought it would ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|