Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FMSControlData field data missing in DataLog capture #7885

Open
jwbonner opened this issue Mar 28, 2025 · 1 comment
Open

FMSControlData field data missing in DataLog capture #7885

jwbonner opened this issue Mar 28, 2025 · 1 comment
Labels
type: bug Something isn't working.

Comments

@jwbonner
Copy link
Member

jwbonner commented Mar 28, 2025

We've had multiple bug reports on AdvantageScope (Mechanical-Advantage/AdvantageScope#365 and Mechanical-Advantage/AdvantageScope#346) which are triggered by logs where the FMSControlData field never updates while the DS:enabled field is valid (example below). AdvantageScope currently assumes that all fields containing the enabled state are equivalent, so this causes significant issues by making it look like the robot was never enabled (of course, the temporary workaround is for AdvantageScope to simply prioritize the DS:enabled field when available).

Log files with this behavior are attached to the issues linked above. It's unclear whether the FMSControlData topic is being updated on NT in the first place, or if this is specifically an issue with capturing the updates to DataLog.

Image
@jwbonner
Copy link
Member Author

Per this comment, it seems like the issue occurs when starting DataLogManager before disabling NT logging. The WPILOG includes the start and finish records appropriately, which is technically correct but causes the unintuitive behavior of making the NT topics appear as valid fields in both AdvantageScope and the DataLog tool (since they existed very briefly).

Theoretically it would be possible to detect these kinds of meaningless fields when parsing the log (a finish record that appears very soon after a start record), but it also seems like this behavior from DataLogManager is less than ideal given the common use case of configuring and starting the logger at program startup (potentially in the "wrong" order). Maybe one potential solution would be to wait to start NT capture until after the Robot constructor exits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant