So I am wondering if there is a way to limit a text gauge to just the first 2 characters. I’m using the “gear” from CAN and most of the outputs are 1 or 2 characters… for example
L outputs “L1”
2 outputs “L2”
3 outputs “3D”
the weird one is 4… it outputs “4096” which doesnt fit well in the needle gauge I have the text gauge sitting inside. Is there a way to limit the text gauge to 2 characters or do some sort of gauge math to give me an output of just 4 or something? I would assume the gauge math wouldnt work for this type of pid… There doesn’t seem to be anything in text formatting options that would limit the characters shown to only 2.
I mean, hmmm, have you checked the min and max of the text gauge? See if the min/max match 4096. If they match, increase your min and max to see if the value changes after.
If it doesn’t, closest thing you can do is change the warning/critical and make it display a static text when it hits it.
For example set critical to 4000, and then go to the settings of the text gauge, change it to adjusting for critical at the bottom left, and set the text to static and you could put D simply.
Also, idk if this changes anything but you have the gear ratios setup in the garage?
No… none of this applies. The text gauge for the gear selected gets its info directly from CAN. So the car can be off, with just ignition on and I can select each gear and it will show up on the gauge. My problem is… for 4th gear, the data is 4 characters instead of 1 or 2 characters like it is for all the other selections. There doesn’t seem to be any option to limit the number of characters (Letters or Numbers) for a text gauge.
I will probably have to make some complicated trigger set up to display each gear with dummies if I want it to show 4 instead of 4096. Or 4D. I would think it would be easy to implement a character limit on a gauge, but I’m not a programmer.
No. I am using the built in Realdash CAN configuration list. There is a list of vehicles and I am using the Toyota Corolla one that is in the list. I have a 2009 Camry and it seems to work. Not everything works but what does work I’m using for indicator lights:
Body Control—
Cruise Control active: on/off
Seat Belt: on/off
Driver Door Ajar: on/off
Trunk Open: on/off
Parking Brake: on/off
It seems like there isn’t a value for 4th gear. I have no idea how to find out what it is… so any insight would be most appreciated.
EDIT: so this should work, right??
I was curious what is the difference between <frame canId= > and <frame id=?
I’m basically scouring through the FJ can to see if there is anything I can copy from there to paste into the Corolla file. My 2009 Camry does share a lot with the Corolla.
I read some of the Realdash Tutorial on CAN files but I can’t figure out how to desipher actually what Hex is for what function other than the Target ID.
Thank you for uploading the Toyota CAN files. One last question… how did those files get created. Was it some form of exporting?