i have a sensor
The datasheet says you can divide the data from the sensor by 100 to get the data you want. And for example, 0xff97 is -1.05km/h
How does 0xff97 become -1.05 km/h?
CodePudding user response:
0xFF97
is -105
in 16-bit two's complement integer representation.
If you divide that number by 100
, then you get -1.05 km/h
.