mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Bangle.js:actTrck change stride unit to only meter
This commit is contained in:
parent
2429f64412
commit
cba2cf38f6
@ -1016,9 +1016,9 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
summaryData = addSummaryData(summaryData, "averageStride",
|
summaryData = addSummaryData(summaryData, "averageStride",
|
||||||
(float) (analyticsObject.getJSONArray("Total Distance").getDouble(logLength - 1) /
|
(float) (analyticsObject.getJSONArray("Total Distance").getDouble(logLength - 1) /
|
||||||
(0.5 * sumOfJSONArray(storedLogObject.getJSONArray("Steps")))),
|
(0.5 * sumOfJSONArray(storedLogObject.getJSONArray("Steps")))),
|
||||||
"m/stride"); // FIXME: Is this meant to be stride length as I've assumed?
|
"m"); // FIXME: Is this meant to be stride length as I've assumed?
|
||||||
summaryData = addSummaryData(summaryData, "maxStride", maxOfJSONArray(analyticsObject.getJSONArray("Stride")), "m/stride");
|
summaryData = addSummaryData(summaryData, "maxStride", maxOfJSONArray(analyticsObject.getJSONArray("Stride")), "m");
|
||||||
summaryData = addSummaryData(summaryData, "minStride", minOfJSONArray(analyticsObject.getJSONArray("Stride")), "m/stride");
|
summaryData = addSummaryData(summaryData, "minStride", minOfJSONArray(analyticsObject.getJSONArray("Stride")), "m");
|
||||||
}
|
}
|
||||||
|
|
||||||
// put("Speed", Arrays.asList(
|
// put("Speed", Arrays.asList(
|
||||||
|
Loading…
Reference in New Issue
Block a user