Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Show distance

Rank

Total Posts: 5

Joined 2011-01-27

PM

We want to show the distance covered by a runner.
We have managed to get the distance from ANT+ (array values messageContents[4] and messageContents[5] as provided in the demo)
We have found that the distance readings set 0 after reaching to 256. We have found that 256 is the rollover value. How we could avoid this rolling of distance after 256. Can we get the distance directly from ANT+ or we need to calculate it C#?

Can you please suggest ?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Any fields that are expressed as accumulated values (e.g. distance, stride count) require calculations on the receiver in order to handle the rollovers. Please refer to the "Implementation Guidelines" on the SDM Device Profile for details on this, you will find the section on "Decoding Cumulative Data Fields" quite helpful.