|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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 |
|
|