Ok this doesnt work. My bad lolView attachment 222833
I just found out that the matrix syncs with this parameter for the leds!
Ok this doesnt work. My bad lolView attachment 222833
I just found out that the matrix syncs with this parameter for the leds!
thanks for your help but im a doctor and it s not possible to understand this form eHi ! It's possible for sure, you have to modify the template,
You can find the nextion basics here
https://github.com/zegreatclan/AssettoCorsaTools/wiki/Nextion-Display
You can test all the formulas used in the mapping live directly in simhub :
https://github.com/zegreatclan/AssettoCorsaTools/wiki/NCalc-scripting---Introduction
For all the language bacics it's here :
https://github.com/zegreatclan/AssettoCorsaTools/wiki/NCalc-scripting
Really strange, I can assure you that there is not a single line of code changed on the codemasters readers.isnull([DataCorePlugin.GameRawData.LapDistance /1000], 0.00)
Today I've noticed that this code is no longer showing the travelled distance in Dirt Rally. It was working before. Could it be a problem with the updated version of Simhub?
Apart from this, a question: how to define a visibility condition for an element not to be visible when other element of the hub is.
I've checked the game specific properties and the data is read, so I've taken a look at the code for the element and I've found that isnull([DataCorePlugin.GameRawData.LapDistance], 0.00) /1000
with Result format as 0.0 (I want km not m) is displaying it again. Strange, since I don't remember having changed this code...
One issue I have lately is that I have to run Simhub twice. The first time I run it after starting my PC, the dashboards are not displayed when I run them. Also, when I edit something with Dash Studio, the image is completelly black. If I close Simhub and run it again, the dashboars are displayed on my monitor without problems and the editor works normally too.
Hi ! Could you give a me bit more details ? What kind of device ?hello, I have a problem with automobilista, after a few minutes I have a device that disconnects (wheel HUB),
the device was still in the list but the buttons no longer work.
can you help me please ?
Hi,
I have noticed a small issue with Simhub with the setup I am running. I use an Arduino Uno with 2 TM1638 modules connected, mainly when playing Assetto Corsa. On module number 2, I have a number of different screens set up to show lap time, best lap, tire temps, pressures and fuel info.
To switch between the different screens I use button presses from my DIY buttonbox (actually I turn an encoder left/right which is set up to emulate a pair of buttons of a gamepad). So I have the button presses set up with "SerialDashPlugin.NextScreen" and "SerialDashPlugin.PreviousScreen" in Simhub. The problem is, it doesn't work consistently. Sometimes all is fine and I can quickly scroll through the different displays when rapidly pressing the buttons, but sometimes I have to do several tries just to switch to the next screen and it may take a couple of seconds before I succeed. On rare occasions, it can get stuck completely so I cannot switch screens at all for a while.
In order to eliminate the buttonbox as the source of the issue, I tried mapping the same buttons to the TC+/- function in Assetto Corsa. It seems that Assetto Corsa always react to the button presses (so I know the buttonbox is not malfunctioning), but Simhub does not respond consistently.
Is this an issue you have seen before?
Side note:
On the other buttons (again, encoders emulating pairs of buttons) of the buttonbox I have brake balance and ERS/engine brake settings mapped in Assetto Corsa. On each of these buttons, I have also mapped "SerialDashPlugin.DisplayScreenFor1s_xxx" in Simhub for the corresponding car parameter. I have never experienced a problem with these actions, they work as expected. It is only the NextScreen and PreviousScreen which are giving me issues.
Hi ! it depends on how is implemented your buttonbox, Simhub uses a timer to poll the controllers, it, checks the controls approximately every 15ms, i've not pushed more since we are not in the race for ultimate no delay. I just try to keep footprint light on system.
It means that if your controller is toggling between the two polls simhub won't see it.
Could you say in a way or another the duration of a toggle ?
I could reduce my poll delay, but I really want to keep the foot print as light as possible.
Hi,
I have a problem trying to set up my E36 instrument cluster attached to an Arduino mega 2560. There is also a 7 segment MAX7219 display attached to the same arduino.
Case 1: I have multiple usb unchecked in 'my hardware' tab, the rpm tacho works nicely as "aftermarket tacho" and the 7 segment display on the MAX7219 works as well. The speedo is not working.
Case 2: I checked in multiple usb, added custom protocol format([DataCorePlugin.GameData.NewData.SpeedKmh],'0') as stated in the end of the .ino and uncommented all the neccessary parts in CustomProtocolExample3_E36Speedo();
Speedo is still dead, and now the 7 segment display is also dark.
Is there a way to read the FlowSerialDebugPrintLn("Message received : " + String(e36speed)); somehow?
Thank you.
15ms should be fast enough. In the buttonbox code there is a loop which checks the state of all the buttons and sends a report to the PC. If the loop detects that a button is toggled, the loop pauses for 50ms after sending the report.
Definitely important to keep a light footprint for SimHub, I hope polling 15 times faster doesn't take more CPU as we need it for the games...!I've checked, 50ms is perfectly in the acceptable range. And you have real push buttons working correctly (not using a delay) ? I would guess that the timer is not consistent enough to regularly and read your input. I've just switched for a high priority thread reading every 1ms, it should reduce this problem
I've checked, 50ms is perfectly in the acceptable range. And you have real push buttons working correctly (not using a delay) ? I would guess that the timer is not consistent enough to regularly and read your input. I've just switched for a high priority thread reading every 1ms, it should reduce this problem
I'm will make performance measurements , SimHub is already capable of refreshing some screens like nextion up to 500hz with no troubles : . I will try to calibrate it to reach something between 100 and 200hz, which should keep an unnoticeable change on the footprint.Definitely important to keep a light footprint for SimHub, I hope polling 15 times faster doesn't take more CPU as we need it for the games...!