Рет қаралды 1,855
In this tutorial, we will create a flight menu so the user can select different commands for the drone to follow.
We will display an options menu for the drone pilot to select from and then the drone will execute the command until the pilot instructs the drone to land.
Using nested decision structures (if then else) and a pre-test while loop the user can give the drone multiple instructions. We also ensure the drone lands if the user puts in any wrong instructions.