Animation from table of angles and time

Hi everyone! I have a data table with angles on the xyz plane and time recorded from a MPU6050 gyroscope. I was wondering if there's any way of creating an animation from this table of values to visualize the orientation of an aircraft?

Thank you!

Tagged:

Answers

  • What the heck is an "xyz plane"? You mean 3D space? Or you have an angle in the xy, yz, and xz planes?

    What code do you already have? If you have no code, attempt some, then show the attempt. An animation should be possible!

    Do you have a sample data set for us to work with? How about a mock-up images showing what you want to accomplish?

  • https://playground.arduino.cc/Main/MPU-6050

    Just to be clear, you don't want to process live serial data -- instead, this is recorded, like in a CSV file?

    1. You can use Table to load the data
    2. load a new row each frame (or after each n millisecond delay)
    3. Use rotateX, rotateY, rotateZ
    4. Draw your plane -- maybe start with a box or pyramid, then try loading a plane 3D shape file into a PShape.

    If you want a centered 3D space around the plane, you can translate before drawing, or you could use PeasyCam.

    Sample data and sample code for better feedback.

Sign In or Register to comment.