-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Currently WorkoutSummary data is implemented as an object full of futures, which is a bit hacky and a little messy to look at in the code.
Ideally It would be nice to have a data structure that can:
- be able to represent all the various data available from an erg (even though this comes in sort of piecemeal due to bluetooth packet size limits, and may not be present at all)
- be able to be fetched in such a way that allows the same data to come from multiple sources (i.e. the individual characteristics or the multiplexed data when trying to avoid size limits)
Specifically for WorkoutSummaries:
- be associated with the
Workoutobject used to start the workout or be used to construct aWorkoutif one is not present - be able to represent a workout that may be recorded in memory differently from the one that the piece was started with (in the event that a workout is stopped partway via the buttons on the erg or some other method)
ideally this should also be something thats able to extend to the other types of data (which are also spread across multiple characteristics)