My lab is asking me to create a while loop that will display the magnitude of an Esplora board.
The magnitude is only in correspondence to the Vertical Z. (moving the board up and down in the vertical while the code runs)
When the code is running and the Esplora board accelerates up or down rapidly, the program should print speeding up. If it slows down, it should print slowing down, else if none of the two above are true, it should print Constant Acceleration.
I'm new to coding and haven't taken much physics, so could someone please help me with the loop?