Ticket Created
over 5 years ago

WERETECH-6970

I've bumped the priority on this one.

elapsedDistance always returns 0.0 in the simulator

In recent versions of the simulator Activity.Info.elapsedDistance always contains 0.0 whether I playback a FIT file or simulate data.

This happens with SDK 3.0.10, 3.0.11 and 3.1.0.beta2. It seems OK with 3.0.9 and earlier.

It's very easy to demonstrate with the SimpleDataField sample app that comes with the SDK.

I'm on Windows 7 x64 & Eclipse 2019-03 (4.11.0)

Simon

  • Yes, definitely.

    Example steps: Start simulator, playback FIT file, start debug session, start timer, optionally insert breakpoint in compute() method to inspect info.
    When I insert the breakpoint I see info.elapsedDistance is non-zero in the 3.0.9 simulator and 0.0 in 3.0.11. Info.timerState is 3 (TIMER_STATE_ON) in both.

    As a workaround I've copied the 3.0.9 simulator to the 3.0.11 bin directory to launch it from the IDE but I don't know if there any unwanted side effects of doing this.

  • - I just want to ensure that you are starting the data field timer here as well. If there is no timer running, then the simulator will not display the data correctly. This is under Data Field > Timer > Start Activity in the simulator menus.

    We have a ticket for this, but want to ensure that you are doing this as we're not able to reproduce it currently with the steps provided.