Maximum speed reset
 
Notifications
Clear all

Maximum speed reset

3 Posts
2 Users
2 Likes
1,543 Views
(@robert)
New Member
Joined: 2 years ago
Posts: 2
Topic starter  

Hi!

 

I'm working on a Nextion lap timer and i would like to have a page that show maximum speed. I want it to show the speed and when the speed begin to decrease i want to hold the highest value for a period of time before it start to show live speed again. Is there a code i could use to enable this using for example "GameData.SpeedLocal" property. I tried to search for this function but could not find anything that worked for me.

Thanks in advance!

//Robert


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

Hi,
The maximum function will help you do that
maximum(delay, value)

For example
maximum(5000, [SpeedLocal])
returns the max value of [SpeedLocal] over the last 5 sec.


   
Robert reacted
ReplyQuote
(@robert)
New Member
Joined: 2 years ago
Posts: 2
Topic starter  

@romainrob Thank you so much for your help! It work like a champ 🙂


   
Romainrob reacted
ReplyQuote
Share: