How to Display Amou...
 
Notifications
Clear all

How to Display Amount of Value Change?

3 Posts
2 Users
0 Reactions
1,602 Views
(@shmokie)
New Member
Joined: 4 years ago
Posts: 3
Topic starter  

I would like to display how much a value has changed, not just if it changed.

In ACC sudden tire pressure loss can be a big problem, and I would like to have an overlay that changes color based on the amount the tire pressure value has changed. Tire pressure changes all the time, so just showing that there was a change isn't enough.

In the video link, you can see the left rear tire pressure drop from 27.27 to 27.15 as I hit a big curb.

https://streamable.com/nfhp8b

 

Thanks!

This topic was modified 4 years ago by Shmokie

   
Quote
(@romainrob)
Honorable Member
Joined: 5 years ago
Posts: 530
 

Hi,
You can use the maximum function in this case:

(maximum(delay, value) - value) > threshold

Will return true if the value drops by more than the threshold over the given delay (in ms).


   
ReplyQuote
(@shmokie)
New Member
Joined: 4 years ago
Posts: 3
Topic starter  

Thank you Romainrob, that worked!


   
ReplyQuote
Share: