Difference between revisions of "Driving a zigzag path (Lego Dance)"

From cod3v
 
Line 16: Line 16:
<math>(-1)^2 = (-1)(-1) = 1</math>
<math>(-1)^2 = (-1)(-1) = 1</math>


<math>(-1)^4 = (-1)(-1)(-1) = -1</math>
<math>(-1)^3 = (-1)(-1)(-1) = -1</math>


<youtube>xdY5dqr-MPY</youtube>
<youtube>xdY5dqr-MPY</youtube>


== Exercises ==
== Exercises ==

Latest revision as of 12:05, 13 January 2022

Introduction

The plan and planned route

Use gyroscope to drive a zigzag path

Theory

The code

Use loop and the properties of exponentation:

Exercises