tilt sensor measured angle changes while no movement of technic hub #1861
-
Hello all, I wanted to create the weight overload function to my Liebherr crane and got a similar but different issue. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 24 replies
-
If you want to measure If it is reporting a decimal value of 7.5 then it sounds like you are using a different method? |
Beta Was this translation helpful? Give feedback.
-
Hi @Debenben, I cant recreate the blocks of yours. In the for position range... I cant add the position after get #. How did you do it?
Hmm, this ist actually the one point where I also struggled. In the end I just copied the block from tic-tac-toe example.
|
Beta Was this translation helpful? Give feedback.
-
@vanczakp Sorry for taking some time to answer. Did it work as expected?
@laurensvalk I guess my problem was that I tried dragging the position block when the text input was active (I guess it is only dragging text and not the block in that case). The text-selection mouse cursor when hovering over the input box is a bit misleading because you first have to click in order to select text, I think it would have helped me if it was dragging or selecting mouse cursor instead. In my opinion one could even hide the functionality to rename the iterator behind double-click or long-press since renaming is some esthetic improvement useful in nested loops while getting the value is essential. |
Beta Was this translation helpful? Give feedback.
Pitch or roll, depending on which axis you're tilting along. I'm open to a feature request to return tilt as floating point values.
This is ultimately what the
tilt()
method is doing.