mirror of https://github.com/espruino/BangleApps
cscsensor 0.13: Fix total distance calculation
parent
fd7ea9a587
commit
d4d4fb944e
|
@ -11,3 +11,4 @@
|
|||
0.10: Fix cscsensor when using coospoo sensor that supports crank *and* wheel
|
||||
0.11: Update to use blecsc library
|
||||
0.12: Fix regression reporting cadence (reported per second when should be per minute) (fix #3434)
|
||||
0.13: Fix total distance calculation
|
|
@ -68,7 +68,7 @@ class CSCSensor {
|
|||
}
|
||||
|
||||
updateScreenRevs() {
|
||||
var dist = this.distFactor*(this.lastRevs-this.lastRevsStart)*csc.settings.circum/63360.0;
|
||||
var dist = this.distFactor*(this.lastRevs-this.lastRevsStart) * csc.settings.circum/*mm*/ / 1000000;
|
||||
var ddist = Math.round(100*dist)/100;
|
||||
var tdist = Math.round(this.distFactor*this.totaldist*10)/10;
|
||||
var dspeed = Math.round(10*this.distFactor*this.speed)/10;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "cscsensor",
|
||||
"name": "Cycling speed sensor",
|
||||
"shortName": "CSCSensor",
|
||||
"version": "0.12",
|
||||
"version": "0.13",
|
||||
"description": "Read BLE enabled cycling speed and cadence sensor and display readings on watch",
|
||||
"icon": "icons8-cycling-48.png",
|
||||
"tags": "outdoors,exercise,ble,bluetooth,bike,cycle,bicycle",
|
||||
|
|
Loading…
Reference in New Issue