scriptId = '' scriptTitle = "Get Position of Band" scriptDetailsUrl = "" -- We don't have this until it's submitted to the Myo Market ------------------------------------------------------------------------------------------------------------+ --opsys = package.config:sub(1,1) | -- | --function onPoseEdge(pose, edge) | -- myo.debug("onPoseEdge: " .. pose .. ", " .. edge) | --end | ------------------------------------------------------------------------------------------------------------+ local function getCoordinates() x,y,z = myo.getOrientationWorld() myo.debug("(" .. x .. ", " .. y .. ")") end function onUnlock() --------------------------------------------------------------------------------------------------------+ --if opsys == "\\" then | -- myo.debug("The velociraptors are going to get you now. You were eaten by a gru.") | -- myos = "win" | --elseif opsys == "/" then | -- myo.debug("Its a UUUUUNIX") | -- myos = "unix" | --else | -- myo.debug("OS not recognized! Do not pass go, no not get 200 dollars.") | --end | ---------------------------------------------------------------- | --need to run CALIBRATIONS-- | --need to create filestream for motors-- | --------------------------------------------------------------------------------------------------------+ --keep myo from locking every 2 seconds myo.setLockingPolicy() --define sleep statements to keep from CPU clock stopping if platform == "Windows" then myo.debug("") function sleepTime(t) myo.debug("") end else function sleepTime(t) myo.debug("") end end --need to calibrate myo.debug("please move your arm to the farthest up and to the right you plan to go and then double tap.") --onPoseEdge end