<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Rate of Change calculations? - English Chat				            </title>
            <link>https://www.simhubdash.com/community-2/english-chat/rate-of-change-calculations/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 14 Oct 2026 19:54:59 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Rate of Change calculations?</title>
                        <link>https://www.simhubdash.com/community-2/english-chat/rate-of-change-calculations/#post-9927</link>
                        <pubDate>Wed, 01 Jan 2025 17:01:11 +0000</pubDate>
                        <description><![CDATA[(Apologies if this has been asked and answered or if it is common knowledge, but I can&#039;t find what I am looking for)
What I would like to do is know the rate of change for pedals / steering...]]></description>
                        <content:encoded><![CDATA[<p>(Apologies if this has been asked and answered or if it is common knowledge, but I can't find what I am looking for)</p>
<p>What I would like to do is know the rate of change for pedals / steering wheel input on a dashboard and display a status. I would like to see when I am pressing the throttle too hard or releasing the brake too quickly or turning the steering wheel too fast.<br /><br /><br />The general formula for this would be:<br /><br />(CurrentInputState - PreviousInputState) / Elapsed Time = Result<br /><br /><br />With a general validation of:<br /><br /><br />If Result &gt; MaximumInputChange Then DisplayBadStatusNotifier<br /><br /><br />Where I am falling down (and I admit it's likely because I am very new to SimHub) is that I don't seem to be able to reset the value for 'PreviousInputState'. Normally, I would:<br /><br />code a variable for PreviousInputState and set its initial value<br /><br />(loop start) <br />  Gather CurrentInputState in realtime<br />  Run the formula<br />  Validate the Result<br />  Assign CurrentInputState value to PreviousInputState<br />(repeat loop)<br /><br />It appears that I can assign a variable and initial value to PreviousInputState with an ini file in the NCalcScripts folder (ref:  <span style="color:#aaa">removed link</span> ) and I can run the formula and evaluate the result in the binding engine (ref:  <span style="color:#aaa">removed link</span> ---Introduction), but then I fall down on the PreviousInputState reassignment... How does one assign a new value to a  variable in NCalc / SimHub? Any help would be appreciated!</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/english-chat/">English Chat</category>                        <dc:creator>JLefort</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/english-chat/rate-of-change-calculations/#post-9927</guid>
                    </item>
							        </channel>
        </rss>
		