Skip to content

Commit

Permalink
1.4.7 Fix stroke distance value (for ble)
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenvangulik committed Mar 2, 2024
1 parent 02b6146 commit 89676a0
Show file tree
Hide file tree
Showing 27 changed files with 1,825 additions and 1,335 deletions.
251 changes: 131 additions & 120 deletions api/lib/ergometer.d.ts

Large diffs are not rendered by default.

135 changes: 71 additions & 64 deletions api/lib/ergometer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/lib/ergometer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/lib/ergometer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions api/typescript/ergometer/performancemonitorBle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
driveLength: data.getUint8(ble.PM_Stroke_Data_BLE_Payload.DRIVE_LENGTH) / 100, //meters
driveTime: data.getUint8(ble.PM_Stroke_Data_BLE_Payload.DRIVE_TIME) * 10, //ms
strokeRecoveryTime: (data.getUint8(ble.PM_Stroke_Data_BLE_Payload.STROKE_RECOVERY_TIME_LO) + data.getUint8(ble.PM_Stroke_Data_BLE_Payload.STROKE_RECOVERY_TIME_HI)*256) * 10, //ms
strokeDistance: data.getUint16(ble.PM_Stroke_Data_BLE_Payload.STROKE_DISTANCE_LO) / 100,//meter
strokeDistance: (data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_DISTANCE_LO)+data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_DISTANCE_HI)*256) / 100,//meter
peakDriveForce: data.getUint16(ble.PM_Stroke_Data_BLE_Payload.PEAK_DRIVE_FORCE_LO) / 10, //lbs
averageDriveForce: data.getUint16(ble.PM_Stroke_Data_BLE_Payload.AVG_DRIVE_FORCE_LO) / 10, //lbs
workPerStroke: data.getUint16(ble.PM_Stroke_Data_BLE_Payload.WORK_PER_STROKE_LO) / 10, //jouls
Expand All @@ -1202,7 +1202,7 @@
driveLength: data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.DRIVE_LENGTH) / 100, //meters
driveTime: data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.DRIVE_TIME) * 10, //ms
strokeRecoveryTime: data.getUint16(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_RECOVERY_TIME_LO) * 10, //ms
strokeDistance: data.getUint16(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_DISTANCE_LO) / 100,//meter
strokeDistance: (data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_DISTANCE_LO)+data.getUint8(ble.PM_Mux_Stroke_Data_BLE_Payload.STROKE_DISTANCE_HI)*256) / 100,//meter
peakDriveForce: data.getUint16(ble.PM_Mux_Stroke_Data_BLE_Payload.PEAK_DRIVE_FORCE_LO) / 10, //lbs
averageDriveForce: data.getUint16(ble.PM_Mux_Stroke_Data_BLE_Payload.AVG_DRIVE_FORCE_LO) / 10, //lbs
workPerStroke: null,
Expand Down
Loading

0 comments on commit 89676a0

Please sign in to comment.