<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Question regarding CSCS demo measurement values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68100/question-regarding-cscs-demo-measurement-values</link><description>I am currently experimenting the the nRF52 DK and the CSCS Peripheral example. 
 The provided example from the SDK creates random values for cycling speed and cadence, i.e. wheel revolutions and wheel time as well as crank revolutions and crank time.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Nov 2020 15:25:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68100/question-regarding-cscs-demo-measurement-values" /><item><title>RE: Question regarding CSCS demo measurement values</title><link>https://devzone.nordicsemi.com/thread/279546?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 15:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb1f0764-104d-4c0e-8c55-b938e478f8b3</guid><dc:creator>daubsi</dc:creator><description>&lt;p&gt;Thanks &lt;span&gt;J&amp;oslash;rgen&lt;/span&gt;!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question regarding CSCS demo measurement values</title><link>https://devzone.nordicsemi.com/thread/279507?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 14:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e572ea-664d-4ebb-a3d7-44da2686f599</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As far as I can understand the&amp;nbsp;last_wheel_event_time delta is the time spent for increasing the cumulative wheel revs. The example only adds full revolutions to the&amp;nbsp;cumulative_wheel_revs parameter, while the remainder is saved for next measurement. If the remainder is&amp;nbsp;close to a full revolution, it may cause the next measurement to increase multiple revolutions (like you see happens on line 3 and 5), but parts of the revolutions may have happened in different measurement intervals. If you average the delta over many measurements, it should get close to 1024 if I&amp;#39;m not mistaken.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not exactly sure what is causing the crank time of 119, but it could be that if the remainder of the crank_rev_degrees modulo operation is larger than the&amp;nbsp;degrees_per_sec will give a negative increase in&amp;nbsp;event_time, which may cause some strange behavior. I do not think that the simulator values should be taken as a reference, the accuracy of this may not be very high. It simply generates increasing/decreasing values, and there are performed some calculations on these to give pseudo-random numbers for the service.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>