Introduction
Keeping a drone steady in the air is tricky because it must balance forces perfectly. The main challenge is to stop the drone from rising or falling by matching the force pushing it up with the force pulling it down.
Imagine holding a balloon filled with air. If you push it up with your hand just enough to cancel out its weight, the balloon stays still in the air. Push too hard, it rises; push too little, it falls.
↑
┌─────┐
│ │
│Drone│
│ │
└─────┘
↓
Weight (gravity)
Thrust (propellers) ↑ balances Weight ↓thrust == weight mean for a drone?== checks if two values are equal, while = assigns a value.if thrust == weight: which compares thrust and weight.thrust = 10
weight = 10
if thrust == weight:
print('Hovering')
else:
print('Not hovering')thrust == weight is True.if thrust = weight:
print('Hovering')= which assigns value, not compares values.= with == to properly check if thrust equals weight.thrust = 15 weight = 15 # Your code here
== to check if thrust equals weight.Pass the test and this pattern moves unknown