dbc-codegen icon indicating copy to clipboard operation
dbc-codegen copied to clipboard

Generate Rust structs for messages from a dbc (CAN bus definition) file.

Results 28 dbc-codegen issues
Sort by recently updated
recently updated
newest added

So we won't need to format it manually.

I was finding problems with values that after scaling were not exact, such as 79.99999 being truncated to 79 instead of rounded to 80. I have added a test and...

@marcelbuesing I tried multiplexed signal parsing on one of the opendbc files and got some errors. Offending message: https://github.com/commaai/opendbc/blob/master/hyundai_kia_generic.dbc#L1061-L1080 There seems to be problem with floats: ``` 40322 | pub...

I think it would be great to make more use of the generated enums as I think it makes the api more compile-time safe and convenient to use. Right now...

At the moment it just says `Could not parse dbc file` and prints a lot of numbers in debug mode. No idea what is actually wrong with the file. It...

My main way of using this would be to run `dbc-codegen some.dbc crates/can-messages`. The target would probably always be a crate just for the CAN de/encode part, and I'd check...

enhancement

In addition to the "lazy" and "embedded friendly" structs with getters we have now, it would be neat to add a fully parsed representation as well. I'm imagining something like...

enhancement

We can use `#![deny(clippy::integer_arithmetic)]` to make all overflow handling explicit. - [ ] add lints to generated code - [ ] return errors on overflow or decide why not -...

Messages may contain multiplexed signals e.g. MessageA: SignalA (Plain / Normal signal) Signal multiplexorX SignalY multiplexed by multiplexorX SignalZ multiplexed by multiplexorX Basically this means here the multiplexorX indicates whether...

Hello, I discovered a problem with the code generation for messages with extended CAN IDs. The dbc format specification describes in section 8, Message Definitions, that if the most significant...