Generate raw signal getters and setters - #193
Conversation
|
wouldn't this be really hard to update for the users? E.g. if they are using _raw now, would the meaning of that change? |
Users currently calling Though perhaps slightly painful, I think this resolves a big inconsistency in the function naming. |
|
right, but my point is that if we can make it backwards compat, perhas we should try to? A modification A->B + new A with the same signature is usually a path for foot-gun |
|
I'm happy to avoid the renaming if you prefer. We can keep the existing |
|
TBH I don't know what's better - I am not as much of a domain expert as others here, rather I focus on Rust itself. I am totally OK to rename things, as long as the old code fails to compile - thus helping users update it. If the meaning changes, but fn signature stays the same, we get a lot of non-obvious errors. |
|
This could be safe and not surprising anyone while moving towards correct naming?
Suffix |
<signal>_rawgetters and setters for every signal. These directly extract/pack the raw message payload bytes without any scaling or range checking.<signal>_rawgetters to<signal>_phys, representing the physical (scaled) signal value. This fixes the previously confusing function name but is a breaking API change.