![]() |
Re: FMS enabling sequence?
Quote:
|
Re: FMS enabling sequence?
Quote:
Any anecdotal or video "evidence" is rather worthless in this discussion without knowing a lot more about each robot (including seeing its code). If team X's arm appears to move at 0:00:00, but team Y's wheels start spinning at 0:00:20, how do we know which team got the "start auto" signal first? It is entirely possible that team Y's code is simply slower or explicitly waits 20ms. It is also possible that there are mechanical limitations that caused team Y to start visibly moving later. It would certainly be interesting to see some hard data on when robots across a number of matches receive the signals, but I wouldn't rely on any such data being universally accurate, nor would I hope to have perfect synchronicity in robot start times. |
Re: FMS enabling sequence?
Quote:
It's well known that the FMS doesn't communicate directly with the robot; the FMS informs the DS what state the robot should be in and the DS passes it along with the joystick information. What I don't know is whether the DS syncs to send a robot packet whenever it receives an FMS packet, or if it only passes on the enable signal next time its regular loop runs. If it's the latter case, then the order and timing of robot enablement is determined presumably by when each driver station process was started and by the DS-to-robot packet interval. Ideally, the DS should send a packet to the robot as soon as it receives an FMS packet that changes its disable/enable/auto/teleop state, regardless of when it last sent a packet. Someone could probably test whether it does this or not using Wireshark. |
Re: FMS enabling sequence?
Quote:
It might seem a silly question to ask if there is a significant delay between sending red and blue side commands, but hey, that's exactly what happened last year with the hot goal lights, which were +/- 4 seconds in terms of accuracy at times. These ethernet cables run to control cases (SCC's) under the DS shelf, where they plug into an ethernet switch. This ethernet switch is connected to an Allen Bradley Stratix 8000, which has three other ethernet ports that are dedicated to 1, 2, and 3 driver stations. What goes on here is unknown, but it's not unreasonable to expect that there could be delays here. The Allen Bradley box is doing something other than being a switch because it won't work if you plug the wrong team into the wrong ethernet cable. Quote:
The FMS software and DS are written in C# (or c++, I forget), and LabVIEW, both of which easily support event driven behavior, meaning the driver station may respond to an FMS command as soon as the network buffer reads in the message. Quote:
|
Re: FMS enabling sequence?
Quote:
Quote:
Quote:
One of the questions I was taught to ask early on in Grad school is what scale of effect actually matters in a given experiment, and to focus only on those factors that have meaningful impact. If there are no systematic biases towards particular team stations, how much does a worst case 20ms delay due to polling actually affect a mechanism compared to all the other variables in play? |
Re: FMS enabling sequence?
Quote:
|
Re: FMS enabling sequence?
On a different note, I would love an update to the FMS Whitepaper that goes into much greater technical detail. Or maybe a 1 day recorded conference, where someone on FRC engineering can do a very detailed, technical walkthrough of how the field works (and maybe show some code snippets), including a Q&A.
I don't like how the field electronics are a 'black box' to most teams - I gained most of my knowledge about how the field works from volunteering and working with it regularly, something teams don't do. A greater understanding about how the competition field works will reduce the amount of anger and frustration often (mis)directed at FMS. |
Re: FMS enabling sequence?
Slow-Mo: https://docs.google.com/file/d/0B9RP...U2dXVkSEU/edit
Real Time: https://docs.google.com/file/d/0B9RP...hIWlotdEE/edit There is an interpolated clip that is a little bit slower, so if people are interested I could post the link to that one as well. |
Re: FMS enabling sequence?
Quote:
|
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. |
Re: FMS enabling sequence?
Quote:
|
Re: FMS enabling sequence?
Quote:
Now its entirely possible something else in code is delaying more, but I cant see how the FMS would take 60+ms to send enable packets. If so, we would visually see it. |
Re: FMS enabling sequence?
Quote:
I expect the FMS timing is understood by the people involved in writing the programs. It just not public information. |
Re: FMS enabling sequence?
So, since this doesn't seem resolved is there any way we can figure this out aside from FIRST publicly posting the FMS code? They only other way I can think is setting up two robots with known mechanism speeds and comparing them at each possible driver station combination. This would be pretty difficult to do though as you would need to reserve an entire field for only 2 teams for at least 30-60 mins, likely not possible with time constraints and demand for practice matches at most competitions.
|
Re: FMS enabling sequence?
I have no knowledge of the internals of the FMS software, so these observations are based completely on the whitepaper and other public sources.
1. The minimum interpacket gap for 100mbps Ethernet is 0.96 µs. 2. The FMS code could take longer than 0.96 µs to send the "auto enable" command to each DS, depending on what the logic looks like in the FMS code. For example, there could be logging being written to disk between each initiate command. 3. The protocol between the FMS and the DS isn't documented in the whitepaper. 4. The FMS whitepaper says that robot <--> DS control packets are prioritized over video packets. I read that as saying that UDP 1130 and 1140 are prioritized over the other ports available for robot <--> DS communication. The whitepaper is silent about the relative priority of FMS <--> DS packets. A reasonable guess is that FMS <--> DS packets are at the same as robot <--> DS control packets. If this guess is true, it's unlikely that robot -> DS data on the open ports (e.g. camera packets) from the robot will interfere with the "auto enable" command from the FMS. 5. It is likely that one of these two statements is true: a. The "auto enable" command is sent to each DS in the same order in every match (e.g., Red 1/2/3, Blue 1/2/3) b. The "auto enable" command is sent to each DS in a purposely randomized order in every match Why are these likely? Because a) is the easiest to code, and b) would be the logical alternative if they made a specific design decision here. 6. The FMS developers are likely to be curious about a thread on CD entitled "FMS enabling sequence." |
| All times are GMT -5. The time now is 06:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi