Commit Graph

95 Commits

Author SHA1 Message Date
Jaap van Ekris 0e6de1636b
Improvement of flywheel velocity and acceleration algorithm
Improvement of the algorithm used for the flywheel speed and acceleration, which makes it less errorprone  and more smooth.
2024-01-09 21:11:13 +01:00
Jaap van Ekris e0aabf4431
Code cleanup and improvement
Added the option to do quadratic analysis of two datapoints
2024-01-09 21:06:53 +01:00
Jaap van Ekris 85a716ccf0
Fixed a lint error 2024-01-09 20:55:52 +01:00
Jaap van Ekris ca436e2dc4
Improvement of the calculation of the intercept
Improved the calculation of the intercept, to bring it in line with the original Theil-Sen algorithm
2024-01-09 20:53:18 +01:00
Jaap van Ekris ba2ab13316
Creation of a Weighed series 2024-01-09 20:48:00 +01:00
Jaap van Ekris 5ea6de180b
Update FullTSQuadraticSeries.js 2024-01-08 12:12:55 +01:00
Jaap van Ekris 6a6c195db1
Fixed typo in addition assignment 2024-01-08 12:12:29 +01:00
Jaap van Ekris 8fb3668df2
Implemented the Goodness of Fit indicator 2024-01-08 12:05:46 +01:00
Jaap van Ekris db7d88b1fd
implemented the Goodness of Fit indicator 2024-01-08 12:02:56 +01:00
Jaap van Ekris 6a9ec9a64e
Performance improvement
Further performance improvement
2023-12-04 11:03:50 +01:00
Jaap van Ekris 605887198a
Fix testing errors 2023-12-03 22:51:04 +01:00
Jaap van Ekris 88259a61e0
Fix of testing errors 2023-12-03 22:48:48 +01:00
Jaap van Ekris f6c898f702
Fix testing errors
Fixed testing errors
2023-12-03 21:40:58 +01:00
Jaap van Ekris 8999539616
Modification to reflect better FullTSQ algorithm
Modification to reflect better FullTSQ algorithm
2023-12-03 21:13:55 +01:00
Jaap van Ekris d8b547f040
Update to handle increased FullTS accuracy
Update to handle the increased FullTS accuracy: the FullTSQuadratic functions have increased accuracy and react quicker to changes, thus stroke detection has to be improved.
2023-12-03 21:12:56 +01:00
Jaap van Ekris 8769a19090
Update to accomodate FullTS improvements
Update to accomodate FullTS improvements
2023-12-03 20:48:22 +01:00
Jaap van Ekris a557bef4bc
Update Flywheel.js 2023-12-03 20:47:02 +01:00
Jaap van Ekris 6eab88b62a
Update to adapt to improvements of FullTSQuadraticSeries
Update to accomodate efficiency and accuracy improvements of FullTSQuadraticSeries
2023-12-03 20:41:44 +01:00
Jaap van Ekris feac8c946b
Addition of MinimumX, MinimumY, MaximumX and MaximumY functions
Addition of MinimumX, MinimumY, MaximumX and MaximumY functions
2023-12-03 20:37:40 +01:00
Jaap van Ekris 9dc6f37564
Addition of minimum and maximum functions
Addition of minimum and maximum functions
2023-12-03 20:35:47 +01:00
Jaap van Ekris c1d365ac4b
Adaptation to performance and accuracy improvements
Improvement of the FullTS performance and accuracy
2023-12-03 20:34:03 +01:00
Jaap van Ekris 57cde02953
Improvement of the FullTS performance
Improvement of the Full Theil-Sen performance by using a Binary Search Tree for the Median Calculation, which is much more efficient for larger values of maxSeriesLength
2023-12-03 20:32:29 +01:00
Jaap van Ekris f6573cb0d6
Improvement of the FullTS performance
Improvement of the Full Theil-Sen performance by using a Binary Search Tree for the Median Calculation, which is much more efficient for larger values of maxSeriesLength
2023-12-03 20:30:27 +01:00
Jaap van Ekris 6681cfcc5e
Create BinarySearchTree.test.js
Added Binary Search Tree to improve the perfomance of the Median calculation
2023-12-03 20:26:05 +01:00
Jaap van Ekris f342e6691e
Create BinarySearchTree.js
Added the Binary Search Tree to greatly improve the performance of the Median calculation
2023-12-03 20:24:28 +01:00
Jaap van Ekris 26d41b8dd5
Removed unneeded command 2023-07-05 00:06:51 +02:00
Jaap van Ekris 43f337c6ce
Fix a reset bug
Fixes a reset bug
2023-07-04 23:57:50 +02:00
Jaap van Ekris 31fdb87eab
Fixes reset bug
Fixes a bug where a reset will not clear the timer
2023-07-04 23:56:31 +02:00
Jaap van Ekris 43d7e45aee
Fix a state machine bug
Fixed a bug where allowMovement() would be called at the start of the first drive, which would force it back to a paused state, causing all kind of weird metrics.
2023-04-28 20:22:14 +02:00
Jaap van Ekris a72fe3f017
Added interval number to RowingData
Added the interval number to the RowingData, allowing RowingData to recognize the intervals.
2023-04-24 13:26:02 +02:00
Jaap van Ekris b5e439cd50
Fixed typo's 2023-04-24 10:26:39 +02:00
Jaap van Ekris 41cee87b6b
Fix for HRR data
Fixed the wrong definition of HRR data
2023-04-23 22:12:56 +02:00
Jaap van Ekris 597ec7c765
Adoption to RowsAndAll timestamp spec change
Adoption to RowsAndAll timestamp spec change for the ElapsedTime
2023-04-22 20:34:43 +02:00
Jaap van Ekris 87a22795e4
Adoption to RowsAndAll timestamp spec change
RowsAndAll changed the specification of the timestamp, which caused the total rowing time to be inaccurate.
2023-04-21 19:27:32 +02:00
Abász dfc2881f36 Make changes to GUI to better support intervals
Change distance, timer and calories tile to change behaviour when
current workout is an interval session (i.e. not JustRow).
Expose data necessary for this in RowingStatistics. Remove miles option
from formatter.
2023-04-18 23:19:53 +02:00
Abász 918c9b53fa Remove formatting logic from RowingStatistics
Remove logic of formatting metrics in RowingStatistics and move these to
the consuming end (e.g. client).
2023-03-25 21:00:33 +01:00
Abász a1068cf77f Fix type conversion in the curveMetrics
Fix the string conversion of the curveMetrics and push the formatting
logic to the consumer that require this (eg. WorkoutRecorder). This
enables other consumers of curveMetrics to use non-rounded, "raw" data
instead of preformatted as well as avoid potential future bugs from the
type conversion.
2023-03-25 21:00:33 +01:00
Abász e7c40873cd Fix HR battery level not showing (fixes: #132)
Fix the HR battery level not showing on the HR metric tile (ANT and BLE)
For ANT handle case when BatteryLevel is not present only BatteryStatus.
BLE devices do not necessarily send battery level with all HR broadcast so
read the battery level on connect.
2023-03-25 21:00:33 +01:00
Jaap van Ekris bd97723f8b
Cut/copy/paste error in log message 2023-03-09 10:55:45 +01:00
Jaap van Ekris 97c1da96d6
Dealt with an edge case
Dealt with an edge case where there are no strokes detected, but a number of impulses is recorded (Typically during first calibration).
2023-03-02 11:25:20 +01:00
Jaap van Ekris 3e3cd7b838
Added ANT+ functionality and BLE improvements
Extend ANT+ peripherals and redesign inner structure of the peripheral management
2023-02-15 14:28:39 +01:00
Abász 7ef338d856 Refactor heart rate peripherals
Refactor ANT manager to be a central class managing the ANT stick state.
This state could be used for future implementation of other ANT profiles
and the peripheralManager should be responsible for creating once needed
2023-02-12 22:40:16 +01:00
Jaap van Ekris 6eed136caf
Move functionality to the Finite State Machine
On hindsight, the approach of letting the FSM handle all state transitions explicitly is much clearer
2023-01-16 12:18:46 +01:00
Jaap van Ekris e5696378b0
Fixed a Lint error 2023-01-15 17:34:25 +01:00
Jaap van Ekris 37edd0290b
Update to facilitate more complex workouts
Update to facilitate more complex workouts. RowingStatistics will now manage the intervals completely independently and alert server.js only when the session has ended.
2023-01-15 17:29:58 +01:00
Jaap van Ekris 3364ef38a8
Centralising parameter check
Removed sanity checks in RowingStatistics, as the configmanager centralises the parameter check
2023-01-11 23:30:11 +01:00
Jaap van Ekris ce9294dfb8
Centralising parameter check
Removed sanity checks in RowingStatistics, as the configmanager centralises the parameter check
2023-01-11 23:29:52 +01:00
Jaap van Ekris 11ff22eca1
Fixed a missing bracket 2023-01-11 10:15:48 +01:00
Jaap van Ekris b4e8f16b3c
Improvement of code quality
Replaced the horrible ested If...then....else with a much more readable case statement to implement the Concept 2 table
2023-01-11 10:12:54 +01:00
Jaap van Ekris 35ff3489a5
Fixed a typo in function name
To add insult to injury: by a typo in the error logging function, the app would crash if there was a recoverable error
2023-01-10 11:44:37 +01:00