So walkingStepLength is in mm or cm?

doc says

var walkingStepLength as Lang.Number or Null
Walking step length in millimeters (mm)

what is correct now? what can I calculate with so that it is OK?

I have 9 cm steps when I have just before a big need. anyone at garmin had a similar experience?

  • Why are posting in a thread from 2023, especially with such a glib response? You think OP has been sitting around waiting for a reply for 3 years?

    And I think you missed the point that OP set a walking length step of 0.9 m (90 cm) in the sim, but the API returned 90 (mm) for walkingStepLength.

    Not to state what should now be obvious, but 90 mm = 9 cm != 90 cm.

    it's in mm

    Yeah, I think OP could see that the API docs say it's in mm, since they literally quoted the docs. So your response doesn't even add anything to the thread. Again the point is that the value returned by the API doesn't seem to match what was set in the sim. All you did was regurgitate what the docs say and what OP already said.

    The real question isn't literally "is walkingStepLength in mm or cm", but "why is walkingStepLength documented to be in mm but it appears to be in cm when I test with the sim"?

    Anyway, I tried it out myself with SDK 8.4.0 and fr955 and I see the same thing as OP.

    The default step length in the sim is 0.9 m (I leave it unchanged). But if I print out UserProfile.walkingStepLength, the value is 90, which doesn't make any sense.

    I also tried it out on a real FR955, and the value was null. (I hadn't set up a custom step length in Connect though). I set up a custom length in Connect and the value of walkingStepLength was correct.

    i.e. in Connect app > Settings > Custom Stride Length > Walking

    Custom Stride Length: enabled

    Units: Metres

    Measured Distance: 10 m

    Total Steps: 11

    (This results in a stride length of 0.90909* metres, but the app rounds it off to 0.91 m)

    My test CIQ data field, which simply displays UserProfile.walkingStepLength, the value is 909, which is correct.

    909 mm = 90.9 cm = 0.909 metres

    TL;DR walkingStepLength is correct on watch, incorrect in sim