For a Project with CAN Bus I need to convert an incoming float32 number to an signed int16 number. The value of 0.1 - 200 should be converted to the value 1 - 2000 and -0.1 - -200 to -1 - -2000.
Does anybody know how this can be done in a simple way?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum