threshold = # (how much the force needs to change before it is considered voluntary)vals = readSensorinit_x = vals[xforce]init_y = vals[yforce]init_z = valz[zforce]vals = readSensorx = vals[xforce]y = vals[yforce]z = valz[zforce]diff_x = x-init_xdiff_y = y-init_ydiff_z = z-init_zif(diff_x>threshold): #Moved rightif(dir_x<threshold*-1): #Moved leftif(dir_y>threshold): dir = #Moved upif(dir_y<threshold*-1): #Moved downif(dir_z>threshold): #Moved forwardif(dir_z<threshold*-1): #Moved back
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16