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

added engineLoad + AdblueLevel #5141

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

eisenkoch
Copy link

register(113, fmbXXX, (p, b) -> p.set(Position.KEY_BATTERY_LEVEL, b.readUnsignedByte()));
register(114, fmbXXX, (p, b) -> p.set("engineLoad", b.readUnsignedByte()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we already have a standard parameter for engine load?

@@ -245,7 +245,9 @@ private static void register(int id, Set<String> models, BiConsumer<Position, By
register(89, fmbXXX, (p, b) -> p.set("fuelLevelPercentage", b.readUnsignedByte()));
register(90, null, (p, b) -> p.set(Position.KEY_DOOR, b.readUnsignedShort()));
register(110, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_CONSUMPTION, b.readUnsignedShort() * 0.1));
register(111, fmbXXX, (p, b) -> p.set("AdblueLevel", b.readUnsignedByte()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key should be lower camel case, so something like adBlueLevel or adblueLevel.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I noticed that the length is not correct. It's not a byte, according to the documentation. Make sure you include a unit test.

fixed typo, changed "KEY_ENGINE_LOAD"
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

Successfully merging this pull request may close these issues.

None yet

2 participants