i have a problem with my project and i need your help.
the problem is about data type conversion.
i use an app to send gravity_sensor data via UDP on my phone.
This is a desription of the app i use.
The data is stored within the app as a float array. See the format below.
Format: [ X Acceleration, Y Acceleration, Z Acceleration, X Gravity, Y Gravity, Z Gravity, X Rotation Rate, Y Rotation Rate, Z Rotation Rate, X Orientation (Azimuth), Y Orientation (Pitch), Z Orientation (Roll), deprecated, deprecated, Ambient Light, Proximity, Keyboard Buttons 1 - 8 ]
and, i wrote these lines and get result in MATLAB.
this is the problem. what i wanted was floating point data like (-0.001). but, the result data type looked like ASCII code type.
so here are my question.
1) Is there any method to extract floating point data from a float array in UDP ?
2) if not, how can i convert ascii data to floating point?
i will wait your reply soon