|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Error: a timeout has been exceeded
it repeats over and over in the diagnostics messages box. it funtions in autonomous but not in teleop
|
|
#2
|
|||
|
|||
|
Re: Error: a timeout has been exceeded
Saw your code after I posted. You shouldn't have a semicolon after your while statement in teleop, your code is looping doing nothing.
|
|
#3
|
|||
|
|||
|
Re: Error: a timeout has been exceeded
The above code looks fine to me...the brackets all balance and I do not see an out of place semicolon.
I am having the exact same problem, but only with the old CRIO. The new CRIO works fine. No idea what is causing it yet. Even happens with just the raw, unmodified, SimpleRobot template. |
|
#4
|
|||
|
|||
|
Re: Error: a timeout has been exceeded
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Re: Error: a timeout has been exceeded
You're right, didn't see the semi before the bracket.
Nonetheless, the problem seems to come from not turning off the robot safety. Worked for me. |
|
#6
|
|||
|
|||
|
Re: Error: a timeout has been exceeded
Cody, your issue might be that the expiration time has not been set.
Use the motorsafty member GetExpiration() to see what the time is set too and the member SetExpiration(float timeout) to set a time. See if this helps. -pete |
|
#7
|
||||
|
||||
|
Yes, the error suggests the code was run even with the semicolon problem, but it expired during that command. Starting to wonder if the command based stuff is that much better.
|
|
#8
|
||||
|
||||
|
Re: Error: a timeout has been exceeded
My team had this problem last night - we declared a robotdrive, but only used it some of the time. If the trigger was down, we drove the drive motor Jaguar instances directly by calling Jaguar::Set. We assume that the RobotDrive instance didn't like that IT wasn't getting called for a period of time, even though we were in fact updating the motors.
We fixed it by adjusting our direct-set code to run through RobotDrive instead. It looks like this isn't the same as your problem since (aside from the semicolon after the while loop) your code always calling the RobotDrive functions. Suggestion: Maybe try RobotDrive::TankDrive or RobotDrive::ArcadeDrive just to rule out it being a problem with the RobotDrive::MecanumDrive_Cartesian function? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|