Home→Forums→MonoBrick EV3 Firmware→How to use the High Technic Tilt Sensor?
Tagged: Tilt Sensor
This topic contains 1 reply, has 2 voices, and was last updated by Anders Søborg 5 years, 3 months ago.
Hi, I have got a problem with my Tilt Sensor. I tried out
(Only a section of the program)
LcdConsole.WriteLine ("" + SensorTilt.ReadAsString ());
which just normaly gives me the coordinates of x, y and z but I do not know how to use this data in a normal program and how to request only x, y or z…
Thanks for the help
Don’t read the value as a string. From the documentation it is clear that you need to use ReadPosition () This will return a Position object which has X, Y, Z values
You must be logged in to reply to this topic.