Introduction
Imagine trying to steer a toy car by changing how fast its wheels spin. Controlling a drone's movement works similarly by adjusting the speed of its motors. Understanding this helps you see how drones move up, down, and turn in the air.
Think of a person on a skateboard pushing off the ground with one foot. Pushing harder with one foot makes the skateboard turn or move in that direction. Similarly, a drone changes motor speeds to push air differently and move or turn.
↑ Lift
│
┌────┴────┐
│ Drone │
└─┬────┬─┬┘
│ │ │
M1│ │M2│
│ │ │
──┴────┴─┴──→ Forward
M1 and M2 motors spin at different speeds to tilt drone forward.setMotorSpeeds(120, 100, 120, 100);
setMotorSpeeds(110, 110, 90, 90);
setMotorSpeeds(95, 95, 105, 105);
Pass the test and this pattern moves unknown