<?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>
									SimHub JavaScript newby - repetition of calcs - or is there a better way? - Simhub General				            </title>
            <link>https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 14 Jul 2026 04:16:02 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: SimHub JavaScript newby - repetition of calcs - or is there a better way?</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4625</link>
                        <pubDate>Tue, 01 Feb 2022 23:26:21 +0000</pubDate>
                        <description><![CDATA[@mileseven thanks for the feedback! Let see if this post catches the attention of the developer and he can share its view on this!
I think it would absolutely make sense to enable such capa...]]></description>
                        <content:encoded><![CDATA[<p>@mileseven thanks for the feedback! Let see if this post catches the attention of the developer and he can share its view on this!</p>
<p>I think it would absolutely make sense to enable such capability, if it is not open already… it would certainly make SimHub even more applealing, I guess.</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>gaelibus</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4625</guid>
                    </item>
				                    <item>
                        <title>RE: SimHub JavaScript newby - repetition of calcs - or is there a better way?</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4624</link>
                        <pubDate>Tue, 01 Feb 2022 20:21:24 +0000</pubDate>
                        <description><![CDATA[@gaelibus - not really. In the end, I’ve not experienced a meaningful overhead and so didn’t try to optimise it once I’d got the basics working. I’m still interested in a solution though as ...]]></description>
                        <content:encoded><![CDATA[<p>@gaelibus - not really. In the end, I’ve not experienced a meaningful overhead and so didn’t try to optimise it once I’d got the basics working. I’m still interested in a solution though as I’m thinking about further projects and they’re only ever likely to be increasingly complicated….</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>MileSeven</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4624</guid>
                    </item>
				                    <item>
                        <title>RE: SimHub JavaScript newby - repetition of calcs - or is there a better way?</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4623</link>
                        <pubDate>Tue, 01 Feb 2022 17:57:02 +0000</pubDate>
                        <description><![CDATA[Hi, did you solve this issue?
It also looks to me that there should be a way to insert javascript functions in the javascript loop to support better coding and rendering efficiency. Possibl...]]></description>
                        <content:encoded><![CDATA[<p>Hi, did you solve this issue?</p>
<p>It also looks to me that there should be a way to insert javascript functions in the javascript loop to support better coding and rendering efficiency. Possibly at overlay and/or dashboard levels...</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>gaelibus</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-4623</guid>
                    </item>
				                    <item>
                        <title>SimHub JavaScript newby - repetition of calcs - or is there a better way?</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-2450</link>
                        <pubDate>Fri, 12 Mar 2021 08:19:58 +0000</pubDate>
                        <description><![CDATA[I’m charging ahead with my first SimHub project to build a dash that analyses and presents tyre slip data under acceleration and braking in rf2.
I’ve adopted JavaScript for my calculations ...]]></description>
                        <content:encoded><![CDATA[<p>I’m charging ahead with my first SimHub project to build a dash that analyses and presents tyre slip data under acceleration and braking in rf2.</p>
<p>I’ve adopted JavaScript for my calculations as I used to write VBA in a previous life.</p>
<p>Everything is working fine but I’m finding that I’m duplicating calculations and gamedata calls quite a lot - e.g. to drive a dial gauge to show tyre slip - but also using essentially the same calculations to drive a couple of calculated-colour overlays used as dial backgrounds. And then there are optional gauges/displays that compare left/right and front/back relative slip...</p>
<p>Soon adds up. I’m guessing the processing overhead is not too horrific compared to some complicated dashes - but for maintenance reasons alone, is there a way of creating/sharing functions (or calculated values) across multiple items in the same dash?</p>
<p>I noted the mention of variables in the GitHub simhub JS page but wasn’t sure if it addressed what I’m looking for....?</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>MileSeven</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/simhub-javascript-newby-repetition-of-calcs-or-is-there-a-better-way/#post-2450</guid>
                    </item>
							        </channel>
        </rss>
		