Thanks very much, It's very useful!
@cvp I find the method you provided useful, but I think I need to spend some time validating it. I want to get both the original acceleration value and the gyroscope value. This way I can implement a lot of algorithm verification and testing with them.
@ccc Thank you for your replay. But I can't find any port to get gyro data in pythonista in this link. On the other hand , I usually to get eular angle by fusion accl and gyro with mahony or kalman filter.
But I can't get gyro data in motion. (Motion module privide angle x, y ,z ).
I want to get the acceleration values and angular velocity values of the device via Pythonista. Through the motion module, I can get the acceleration. But how do I get the value of the angular speed (gyroscope value)?
And I post the documentation of
motion — Motion Sensor Data on iOS The motion module allows you to access your iOS device’s motion sensor data (accelerometer, gyroscope, magnetometer). Functions in the motion module: motion.start_updates() Start monitoring the device’s motion sensors. You should balance this with a stop_updates() call to improve battery life. All the get... functions require that you call start_updates() first, otherwise, no meaningful data will be returned. motion.stop_updates() Stop monitoring the device’s motion sensors. motion.get_gravity() Return the gravity vector (x, y, z). motion.get_user_acceleration() Return the acceleration the user is giving to the device. The total acceleration is equal to the gravity vector returned from get_gravity() plus the user acceleration. motion.get_attitude() Return the attitude of the device (roll, pitch, yaw). motion.get_magnetic_field() Return the magnetic field vector with respect to the device (x, y, z, accuracy).