I’m using a gyroscope, which returns angular velocity in floats. I’m trying to use this data with the arduino mouse library. The move function requires a signed character. I’m not what the best way is to convert the
float data from the sensor into
In what way can I do this, losing the least in terms of precision?
I found out you can use
dtostrf to transfer floats into an array of characters, but not sure what to do following this or if it’s even the best way.
I would appreciate any guidance.