I have combined some "status" flags to a byte to use it on CAN Output.
To combine two status, one must be bitwise shift left.
An regular case I add a status and will shift this a specific count of positions. And then I will add the next status with his specific count of shift positions.
For example:
Status A with 0 shifts
+Status B with 2 shifts
+Status C with 5 shifts
will be: 0xuuCu uBuA b (bitwise with u= undefined)
But your Math logic will be do something different: 0x(A+B)uCu uuuu b
because you shift all data before
The Example in the picture generates a byte: 0xuuuu (but6)(but12)u(but11) b
The incrementation of operations between the plus operators is very confusing
Maybe it will be good, to have a "calculation test" inside the math window to test it.
Thanks George,
What do you think is the "normal" update ready? My car is stil in garage and needs some more work. So I don't need it today. :-) In the summer, maybe July or August is good enough. A small feature request beside this: is there a plan to add event driven CAN output? A reaction time of 2 or 3 ms will be good.