I was trying to get a general “shake” measurement and wrote this: (abs(gyroRawX())+abs(gyroRawY()))
but it fails when for instance all those one works: (abs(gyroRawX())+abs(5.5)) (abs(5.5)+abs(gyroRawY())) (abs(gyroRawX())+gyroRawY())
so my first guess is that there is a limit of 3 expression calls, but I’d like to check.
Eeeeek . Welcome @monyosc.tareas . You Jump in at the deep end . I never got any useful readings from the gyro . I use acceleromterRawX() and Y . Gives 0 to 10 for 0 to 90 degrees .
.
.
Try this .
. (abs((gyroRawX())+(gyroRawX())))
Thanks Russell!
the problem with abs(gyroX() + gyroY()) is when X and Y components have different sign they will be cancelling one each other. That’s why I wanted to add abs(x) + abs(y).
In any case there’s a workaround squaring and rooting values like sqrt(gyroRawX()**2+gyroRawY()**2)
Thanks!