Skip to content

Struct support for swerve and field widgets #91

Closed
@jwbonner

Description

@jwbonner

I know this has been discussed before, but I think it's worth revisiting.

WPILib is planning to switch to struct publishing for Field2d (see wpilibsuite/allwpilib#6453), so we've agreed to deprecate the double array formats in AdvantageScope this year. It will display a warning when they are used, and you need to manually select the data type and units. The lack of type and unit safety on the double array means that it's very easy for users to use incorrectly, and we continue to see a significant number of support requests for AdvantageScope related to those problems (despite a modern alternative existing).

Adding struct support for these widgets in Elastic doesn't even have to mean full struct decoding (or support for struct descriptors at all). Since the data types are known ahead of time, you just need to read a raw value from NT and pulling out the components at a known offset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions