Trivial example for motion module not working
-
This simple example return a zero-vector, ie. no values for for the gravity (returns (0.0, 0.0, 0.0)). Why?
Running on iPad Pro 2019.
import motion def main(): motion.start_updates() mf = motion.get_gravity() print(mf) motion.stop_updates() if __name__ == '__main__': main()
-
Insering a sleep for a few hundred ms seems to work. Resolved!