|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: FMS enabling sequence?
Quote:
|
|
#2
|
|||||
|
|||||
|
Re: FMS enabling sequence?
Please elaborate?
|
|
#3
|
||||
|
||||
|
Re: FMS enabling sequence?
In LV I know that it runs disabled for 1 extra loop after it receives an enabled packet. Then it will run auto on the next enabled packet.
Based on the last time I looked in the Java code, it will run auto init, then the next packet run auto periodic. So unless you are starting your sequence in auto init, it wont run motors until it gets a second enabled packet. Note that the whole time this is happening, the fpga is enabled, so it will run 20ms with the values it last receives. This is why there are times the robot jumps between disabled and enabled. |
|
#4
|
|||||
|
|||||
|
Re: FMS enabling sequence?
I do not think this is currently the case in Java (for IterativeRobot at least). It does check for the new data flag (via nextPeriodReady()), but this flag is not cleared after calling autonomousInit(), so autonomousPeriodic() should be invoked on the first packet
|
|
#5
|
||||
|
||||
|
Re: FMS enabling sequence?
Quote:
However, LV still does do this, and runs disabled one last time, and still has to wait for another packet to be sent before actually enabling auto. so auto in LV will have a delay of one packet before actually running auto code. |
|
#6
|
||||
|
||||
|
Re: FMS enabling sequence?
Here's a frame by frame of the Dallas Q39 (118 and 3310 in same match).
118 is going for their 3 tote auto, 3310 is going for containers, and a team 932 (middle of field red side) is driving forward at a high speed in auto mode. Frame 1 - Yellow lights on field illuminate Frame 2 - Red/Blue DS stack lights illuminate Frame 3 - Nothing Frame 4 - 932 tips back and begins movement Frame 5 - 932 continues to move Frame 6 - 3310 begins to drop arms Another frame by frame on Dallas F1 (118 grabbing from step, 148 auto) Frame 1 - Yellow lights Frame 2 - stack lights Frame 3 - Nothing Frame 4 - 148's arm moves Frame 5 - 118 drops arms From watching a few other matches, there is usually a different number of frames between lights and robot movement for teams like 118 and 3310. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|