![]() |
robot drive isn't running fast enough...
we are getting an error that "the loop that contains robotdrive is not running fast enough." we program in labview and this error even occured when we made a fresh project with only the drive code we still get this error. could it be the two year old jaguars we are using?? plz help
|
Re: robot drive isn't running fast enough...
The error messages you are seeing are not related to the actual 'speed' of your drive. They refer to how often new data is sent to the motor controllers.
This can be the result of running the robot on a congested network, clicking the run button rather than permanently deploying the code, or having time consuming loops in your teleop. If you are developing on your driverstation computer, it can be a result of having 2 accounts running at the same time (driver station and developer), or having too many programs open. |
Re: robot drive isn't running fast enough...
1 Attachment(s)
Quote:
|
Re: robot drive isn't running fast enough...
Neither case structures nor the loop have much overhead. But if you add code that delays teleop you will see this. If this happens using a loop, it isn't actually the loop that is the problem.
In this case, the issue is that the Mecanum is only called when button 1 is pressed. I can't see the code in the other case, but assume it is not calling the Mecanum Update. If you call teleop but it doesn't call Update for 100ms, that will still result in the safety mechanism halting the motors. Greg McKaskle |
Re: robot drive isn't running fast enough...
Quote:
|
Re: robot drive isn't running fast enough...
Quote:
|
Re: robot drive isn't running fast enough...
I'm pretty sure that is correct. The various drive options just do a bit of math and update the motor group. The RobotDrive refnum returned from the Open is the thing that has the timer associated with it. So, update the drive every 100ms or turn off the safety feature or you will receive a message and the robot motors will be zeroed in the timeout case.
Greg McKakle |
| All times are GMT -5. The time now is 00:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi