Serial inclinometer
Posted: Wed Apr 12, 2017 12:48 pm
I have one of these inclinometer packages plugged into with its provided USB/serial adapter:
https://www.amazon.co.uk/inclinometer-v ... ter+sensor
I have succeeded in printing the raw hex input to the terminal. But how do I get from that to extracting a variable (yaw angle in this case)? I guess I need to a way of selecting the starting value of the data packet and then picking out the item I want, but I can't find a worked example. I'm also expecting to need something similar to read the analogue in from a Gertbot, but that's the next problem!
Thanks
Robin
https://www.amazon.co.uk/inclinometer-v ... ter+sensor
I have succeeded in printing the raw hex input to the terminal. But how do I get from that to extracting a variable (yaw angle in this case)? I guess I need to a way of selecting the starting value of the data packet and then picking out the item I want, but I can't find a worked example. I'm also expecting to need something similar to read the analogue in from a Gertbot, but that's the next problem!
Thanks
Robin