|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
There seems to always be a lag time in my experience.
just a question, are you using a "deadband" in your code like: Quote:
I found that it reduced our lag, though did not make it go away. To really slim down the lag, the smaller the routines the robot has to go through, the faster you will get the code to run on the NXT. The NXT isn't extremely powerful, if you overload the processing power with many routines preforming at once, the cycle rate might be reduced. Something else we found was that RobotC had the smallest lag time in the NXT, followed by LabView, and trailed by NXT-G. I'm not sure why this is, but it is one reason we stuck to the RobotC. Just try the deadband, it might atleast help with makign sure your robot comes to a stop (because often if you don't have the deadband, the robot won't come to a stop completely). |
|
#2
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
I tried to program a deadband in labview but it didn't really work, and I have yet to get the chance to fix it. But yea, my team will definitely try that.
|
|
#3
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
That's where we were headed at tomorrow's practice. What concerns me is this: We didn't have this problem with the VEX system. Doesn't the NXT system have a faster CPU than the VEX? It seems strange that we would be taxing this new system with simple drive commands.
|
|
#4
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
I doubt the system is experiencing lag. I'm sure there's something with the code.
BTW, the curiosity is killing me, but can your robot score in the center triangle? |
|
#5
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
we have similar lag in our robot and we are pretty sure that it is the programming language. one of our mentors is pretty sure that in robotC there will not be as much lag. Also Wilsonmw04 nice robot. does it score into the triangle and how well does it pick up off the ground? we had similar design at the beginning but decided not to use it because we didnt think it would pick up well and we had other ideas.
|
|
#6
|
|||
|
|||
|
Re: [FTC]: 35's Drive problem
Make sure you've updated labview. They said there was an error with the move motors vi that would cause the lag.
|
|
#7
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
I have all the updates but I'm still experiencing lag.
|
|
#8
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
Quote:
|
|
#9
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
Your best chance now would be to try and hook with someone at NI to get some help and try and figure it out.
|
|
#10
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
Quote:
http://decibel.ni.com/content/thread/1772?tstart=0 let's see what happens. |
|
#11
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
Quote:
The NXT is faster, I think the lag has as much more to do with the bluetooth. I found that it was better to incorporate FEWER interface commands, where the code looks for the joystick commands, which definately has a slowing affect. There are more factors, but the bluetooth speed is the biggest problem I think. I have had very few problems with the bluetooth interface in RobotC, but I haven't been using the FTC Control station, but the included software in RobotC. It will be interesting to see what the robots will do at scrimages with the competition setup. (the only scrimage I went to, people used personal laptops and all used RobotC) |
|
#12
|
|||||
|
|||||
|
Re: [FTC]: 35's Drive problem
Quote:
|
|
#13
|
|||
|
|||
|
Re: [FTC]: 35's Drive problem
Bluetooth is not the problem. My team used to use Labview and there was lag even when using a USB. Also, the bluetooth was not a problem at the scrimmage I attended. Redownload the last Labview update as I'm not sure if they posted a new update, they may have just edited an old one (although I'm not 100 percent positive, this is just what I remember reading is one of the links on chief delphi). Labview had a ton of lag for us and RobotC has almost none. I would suggest trying to run the sample joystick code for RobotC and seeing if you have lag.
|
|
#14
|
|||
|
|||
|
Re: [FTC]: 35's Drive problem
Quote:
|
|
#15
|
||||
|
||||
|
Re: [FTC]: 35's Drive problem
Well...we're not exactly running mouse from this. Idk, let's wait for an reply from labview.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: Problem with two controller setup in Labview | wilsonmw04 | FIRST Tech Challenge | 2 | 11-11-2008 19:58 |
| [FTC]: First problem with FTC and LabView.....? | PhilBot | FIRST Tech Challenge | 5 | 07-11-2008 10:36 |
| [FTC]: Team 35's Servo Test | wilsonmw04 | FIRST Tech Challenge | 11 | 03-11-2008 21:47 |
| [FTC]: FTC Servo-Motor Problem with Labview | dnhansen | FIRST Tech Challenge | 1 | 26-10-2008 00:43 |
| pic: FTC 35's prototype for 2007 | wilsonmw04 | Extra Discussion | 2 | 08-11-2007 18:38 |