OpenTracks icon indicating copy to clipboard operation
OpenTracks copied to clipboard

Speed and cadence sensors display values >0 when idle detection detected a stop

Open lsuhrbier opened this issue 1 year ago • 4 comments

After having stopped the idle detection, non-zero values are displayed from speed and cadence sensors. It appears, the last measured values are shown and not reset to zero or not read again from the sensor after idle detection detected a stop.

lsuhrbier avatar Oct 10 '24 16:10 lsuhrbier

Code looks like this is a valid complaint. Relevant code:

  • TrackPointCreator.reset() [called by idle]
  • SensorDataSet.reset()

Later on used by:

  • TrackRecordingManager.getDataForUI()

Culprit may be children of Aggregator and the implementation of Aggregator.reset(). If I understood the code (I wrote), only accumulated values (like distance) are reset, but not the actual measurements (like speed, cadence, power). So, the problem seems to be happening during the idle situation.

dennisguse avatar Oct 14 '24 16:10 dennisguse

PS/ you may be idle while a cadence sensor reports values - HR will do this as well :D

dennisguse avatar Oct 14 '24 16:10 dennisguse

Likely related: #1925

dennisguse avatar Dec 05 '24 16:12 dennisguse

The fix is broken... See #2043.

dennisguse avatar Jan 20 '25 06:01 dennisguse