|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
1-2 sec delay when entering new modes
Hi all,
During the Wisconsin Regional our drivers told us that they had a 1-2 sec delay when teleoperated mode started before the robot would do anything. They (and my eyes) confirmed that other robots were indeed moving during this time. We dismissed it as we decided it wasn't a big deal. However, when we put an autonomous mode in we didn't think of this fact (and it almost cost us going backward over the center line). It seems that for 1-2 seconds when entering a new mode (teleoperated, autonomous, etc), the motors do not receive any signals. However, the code is definitely running, as the timers in our autonomous mode did things at the correct actual times. This 1-2 mystery seconds doesn't seem to happen when we are tethered on the practice field or in the pits. For now, we wait for 2 seconds at the start of autonomous, but I'd like to gain those 2 seconds back. This leads me to believe that it has something to do with the mystical FMS, but as a programmer I know that something else can always be the problem. We don't have any watchdog errors or anything, and we don't do anything particularly intensive in the ___Init() calls. We are working off an IterativeRobot design in C++. We don't use the camera. Any advice or thoughts is/are appreciated! |
|
#2
|
||||
|
||||
|
Re: 1-2 sec delay when entering new modes
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: 1-2 sec delay when entering new modes
Quote:
Your description does sound like there is something in your init code which is causing the delay of 1 to 2 seconds. Have you tried running your driver station in the simulated match mode to see if you have the delay in that circumstance? I would suggest using the Driver Station to match the actual sequence that is encountered on the field. (Set the DS to Autonomous Disabled, then power up the robot. Wait for the connection to the robot, then enable the robot.) |
|
#4
|
||||||
|
||||||
|
Re: 1-2 sec delay when entering new modes
Quote:
|
|
#5
|
|||
|
|||
|
Re: 1-2 sec delay when entering new modes
Thanks for the replies. I'll definitely try it when we get the cRIO back connected to the benchtop. The only thing we do in AutonomousInit is call a couple printf()s and a Timer Reset(). Nothing is called except maybe a printf in TeleopInit.
|
|
#6
|
|||
|
|||
|
Re: 1-2 sec delay when entering new modes
I tried "running a match" once we got our cRIO re-hooked to the benchtop. There seemed to be zero delay on starting Autonomous and about a .3sec delay on starting Teleoperated (Not like what the drivers experienced).
|
|
#7
|
|||||
|
|||||
|
Re: 1-2 sec delay when entering new modes
Quote:
-Danny |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|