FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

1 second delays in Teleop

We have been seeing a ~1 second delay in motor response from Joystick commands.  This occurs in all our motors, even though the drive motors get their values in a vi run in parallel to the main loop.  Will a few motor vi's in the Teleop vi cause this?

We are reading all our sensors in Periodic Tasks.

0 Kudos
Message 1 of 5
(4,639 Views)

well, what is your loop delay set to? try lowering that.

and how many motors you have?

We have 9 motors. (4 cim, 4 window, 1 banebot). but our code is in a seperater vi that sits next to robot main.

Davis Catherman

0 Kudos
Message 2 of 5
(3,270 Views)

the teleop vi delay is governed by the communications with the DS...every 20 ms.  We will move our motor vi's to a separate vi.

0 Kudos
Message 3 of 5
(3,270 Views)

Since it sounds like you have a lot of parallel loops, what timing do you have in them? If you overwhelm the processor, it won't read the joysticks often enough.

Maybe you could post your project.

0 Kudos
Message 4 of 5
(3,270 Views)

20 ms in motor loops, 10 ms in sensor loops

0 Kudos
Message 5 of 5
(3,270 Views)