I recently got the Razor 9DOF freedom sensor running with the AHRS firmware. The guide I followed is here (https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/wiki/Tutorial)
As is shown in the image above the output is a text string containing angles for roll pitch and yaw.
I am reading these into my UNO but I need a method to extract the angles and convert them to numbers.
I have previously done this using the substring and toInt commands. However, here the length of the string changes dynamically depending on the value of the angle so substring wont work for me. If the angle goes from 10 to 100 for example then incorrect values will be read in through substring.
I'm hoping someone here can show me another method whereby I can convert each of the roll pitch and yaw value to numbers and store them. Thanks