Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuel in liters is not displayed #12

Open
maltsevvv opened this issue Aug 21, 2024 · 3 comments
Open

Fuel in liters is not displayed #12

maltsevvv opened this issue Aug 21, 2024 · 3 comments

Comments

@maltsevvv
Copy link

Hello, cool project. Thank you. Can you tell me the fuel in liters is not displayed,
oil temperature.

20240821_191555
20240821_184208

log1
log2
log3

And how to correctly set a constant temperature, speed, time

Now I did this

		case "mfd_temperature_unit":
		{
			let map =
			{
				// "FAHRENHEIT": "set_units_deg_fahrenheit",
				"CELSIUS": "set_units_deg_celsius"
			};

		case "mfd_distance_unit":
		{
			let map =
			{
				//"MILES_YARDS": "set_units_mph",
				"KILOMETRES_METRES": "set_units_km_h"
			};
			
		case "mfd_time_unit":
		{
			let map =
			{
				"24_H": "set_units_24h",
				//"12_H": "set_units_12h"
			};
@0xCAFEDECAF
Copy link
Owner

Hi, I'm afraid I do not understand the issue nor the solution you are proposing. Please read: https://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question .

@maltsevvv
Copy link
Author

My data changes spontaneously,
while driving:
From Celsius to Fahrenheit and back
km to mil back.

I'm asking what should I change so that the data is always displayed
in Celsius and km?

@0xCAFEDECAF
Copy link
Owner

Ah ok. I think your issue is that you have too many packets with CRC errors (74.309% see log2). Then some packets are interpreted incorrectly. Unfortunately, I cannot reproduce this issue myself. You may want to tinker with the bit timing values in the VanBus driver, inside function nBitsTakingIntoAccountJitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants