Posts

Post not yet marked as solved
2 Replies
378 Views
Hello,I am working on a personal project and have gotten the following (pertinent) variables from my Apple watch:totalAccelerationXrotationWhat I want to implement is the following:If totalAcceleration > acceleration_THRESHOLD: Wait 3 seconds total_Xrotation = 0 For the next 5 seconds: total_Xrotation += Xrotation If total_Xrotation > rotation_THRESHOLD: Activate watch vibrationI am mainly unsure how to implement the timing rules.I come from a mainly non OOP background (Python mainly), so any assistance is much appreciated!
Posted Last updated
.
Post not yet marked as solved
7 Replies
1.2k Views
How would I get the vertical position of the watch?For instance, if the user were touching their hair, I would want to know that.I have been thinking that things like accelerometer, attitude, rotation, etc. don't really help.This is for a simple project so I want to be able to use some simple cut.Basically:IF "value" is measured to be greater than threshold:THEN do somethingSo I need to figure out what that "value" is I am going to measure and be fairly accurate. Something ideal would be.....If the watch is at a vertical position higher than 2 feet from its average position for the last 3 minutes, then do whateverI am a beginner so please be gentle!Thanks!
Posted Last updated
.