New to ignition and wanting to use the accelerometer feature to change to a different perspective view upon the phone being shook by the user. Can get values to be displayed using the example given from inductive automation, however im now stuck on trying to get it to change views when any of the readings are above 12/13. Would appreciate any pointers or ideas.
You are turning those x,y,z values into a string. They need to stay numeric.
2 Likes
You could "simplify“ using x^2
as well instead of x * x
1 Like
Yeah cool ill change that and see if it does anything
I see a nesting issue. This:
Should be this:
...or perhaps just this:
I don't understand this line of code because it's just a list with a string and compared to an integer :
Perhaps it should be this?