Notifications
Clear all
Topic starter
28/11/2021 8:30 pm
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
29/11/2021 12:22 am
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
Topic starter
29/11/2021 8:18 pm
@romainrob Thank you so much for your help! It work like a champ 🙂
Romainrob reacted