Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Robot drive... Output not updated enough. (http://www.chiefdelphi.com/forums/showthread.php?t=100883)

ProgrammerMatt 22-01-2012 13:34

Robot drive... Output not updated enough.
 
Im triying to call a digital in from the driverstation and when i enable the robot i get spammed with this line, any ideas thanks

carrillo694 23-01-2012 22:19

Re: Robot drive... Output not updated enough.
 
This is affecting our team as well. Were you using the SmartDashboard at the time by any chance? We think it might have to do with that.

kgabbott 24-01-2012 12:40

Re: Robot drive... Output not updated enough.
 
Our team was also having problems with this, but we found that it has to do with the RobotDrive object in your code. As long as it does not have access to the specified jaguars or there is no joystick, it will be unable to perform the task RobotDrive.arcadeDrive(), or whatever method you are using to drive. For testing purposes, just comment out everything having to do with RobotDrive and you should be fine.

loafdog 24-01-2012 15:14

Re: Robot drive... Output not updated enough.
 
Another thing you can do is call the RobotDrive method: setSafetyEnabled(false)

-Maciej

carrillo694 25-01-2012 00:28

Re: Robot drive... Output not updated enough.
 
Quote:

Originally Posted by loafdog (Post 1112705)
Another thing you can do is call the RobotDrive method: setSafetyEnabled(false)

-Maciej

That did the trick! Thanks. :)

NS_Radication 13-02-2012 17:52

Re: Robot drive... Output not updated enough.
 
Our program, test, was working on SimpleRobot and we switched to Iterative, but now the error for updating Robot Drive appear. I tried setSafetyEnabled(false) but that only stopped the error. Nothing moves and I don't know what to do

Any advice or comment would be helpful right now. Thank you in advanced!

NS_Radication 13-02-2012 18:17

Re: Robot drive... Output not updated enough.
 
UPDATE: just after my post, the robot drive train moved. After a few minutes, it disconnected because a CRIO wire came loose. Then the autonomous made one motor move really slowly, which was not supposed to HAPPEN! Now it doesn't move again.

Any comments, advice, or anything else will be greatly appreciated1

Patrick Chiang 13-02-2012 18:58

Re: Robot drive... Output not updated enough.
 
Quote:

Originally Posted by NS_Radication (Post 1125914)
UPDATE: just after my post, the robot drive train moved. After a few minutes, it disconnected because a CRIO wire came loose. Then the autonomous made one motor move really slowly, which was not supposed to HAPPEN! Now it doesn't move again.

Any comments, advice, or anything else will be greatly appreciated1

Code?

joelg236 14-02-2012 17:06

Re: Robot drive... Output not updated enough.
 
Our team has encountered this error a lot. It mostly has to do with either the Timer.delay() method or the robotDrive.setSafetyEnabled() method. Check to see also if your code contains
Code:

while(isEnabled() && isOperatorControl()) {
}


sebflippers 21-02-2012 18:54

Re: Robot drive... Output not updated enough.
 
Restart the driver station.

sebflippers 21-02-2012 21:12

Re: Robot drive... Output not updated enough.
 
Scratch that. It only fixed it for a second. After inverting one side of the wheels (only one line of code), everything stopped working again. This happened even after I stripped the code of everything except joysticks and robotdrive. Help!!!

CompSciGeek 27-02-2012 17:50

Re: Robot drive... Output not updated enough.
 
Our team also had this problem, forgot how we solved it, BUT we did not use RobotDrive. Our robot is swerve Drive, so we had to code our own Drive class for swerve algorithms.

So it's not robot drive alone it seems.

ProgrammerMatt 28-02-2012 11:18

Re: Robot drive... Output not updated enough.
 
I just forgot to use the .getInstance();

Ian McShane 28-02-2012 18:50

Re: Robot drive... Output not updated enough.
 
We had the same problem and i somewhat forget what the problem was but i think restarting the computer helps. we also found out that we were calling for the same PWM port for 2 different objects i think.

AlexD744 28-02-2012 23:24

Re: Robot drive... Output not updated enough.
 
This error message is a frustrating one because it would seem that this error would originate from the RobotDrive class, however, the real problem could be in any part of your code. This displays whenever your code is running too slowly, and will subsequently disable your drive functions (and probably everything else, not sure though, I haven't spent too much time trying the different functions when this has popped up). Anyway, this message appears a lot if you are doing image processing on the cRio because that takes longer than the 20mS loop time. Other (more likely culprits) include infinite loops (or any loop that lasts longer than 20mS), methods that call themselves without end (I had a setMotorSpeed(speed) method that called setMotorSpeed(speed) at the end of it instead of motor.set(speed)), and anything else that potentially stops or slows the code.

It may be helpful to add your own output messages throughout your code, then you will see what is getting called before the RobotDrive message, and it will probably point to the area of code that is causing the stop.

ProjectZero 02-03-2012 16:38

Re: Robot drive... Output not updated enough.
 
Did anyone ever get a definitive solution to this? We are at the regional and cannot figure this out!!

sebflippers 02-03-2012 17:48

Re: Robot drive... Output not updated enough.
 
Quote:

Originally Posted by AlexD744 (Post 1136566)
It may be helpful to add your own output messages throughout your code, then you will see what is getting called before the RobotDrive message, and it will probably point to the area of code that is causing the stop.

I did exactly that, and realized that it never even got to the first method (it obviously created the robotdrive object, though). I just switched away from the iterativerobot template and now it works. I found the other templates didn't do what I wanted, so I created the templateOfDoom! No more problems now. If anybody wants, I could try to find some way to share it.


All times are GMT -5. The time now is 11:20.

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