Skip to content

Fix Array support for Vss models #11

@wba2hi

Description

@wba2hi

Describe the bug
All generated Vss models with an array data type are not properly supported currently. The .toString() does not return a proper string which can be parsed to a Datapoint.

To Reproduce
Steps to reproduce the behavior:

  1. Select Vss Model SeatPosCount in the TestApp (Vss mode)
  2. Input "2,4" without (")

Expected behavior

  • The VssModel is correctly updated
  • "ANDROID_AUTO, APPLE_CARPLAY" (with a space after the comma) should also work

Screenshot
Screenshot 2024-03-22 at 16 43 55

Additional context
A good solution could be to generate a "stringValue" method for all VssSignals. Because we have to know the exact array type e.g. IntArray / Doublearray / Array for the correct cast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions