...
The simulator should exit after the drone lands, which takes occurs about 100 seconds for this taskafter start. Ctrl-c to stop the simulator early. If the simulator exits early or has some error, then you should go through your task 1 code again and make sure there aren't any bugs. You are encouraged to use the debugger and/or print statements in conjunction with the simulator, as long as you do not breakpoint or step into modules/private/
.
...
In addition, the drone report also contains its position and global destination (if applicable).
The report’s destination is the same as the report’s position for Halted and Landed.
There are 4 types of commands:
Null: Default. Does nothing but required to advance the simulator.
Set relative destination: Move distance relative to current position of the drone. Requires drone to be halted. The destination must also be within the flight boundary.
The flight boundary is a square from (-60.0, -60.0) to (60.0, 60.0). The drone’s initial position is (0, 0).
The drone halts when it reaches the destination.
Halt: Makes the drone stop immediately at its current position.
Land: Lands the drone at the current position and ends the simulation. Requires drone to be halted.
...
Once your code is implemented, the simulator should exit after the drone lands, which should take less than occur within 60 seconds of start. The difference between the coordinates of the drone position and waypoint under the text file in log/
should be less than 0.1 . You can also confirm with the screenshot.
Note |
---|
Hints:
|
Note |
---|
Bonus:
|
Task 4: Putting it all together
...
Your task is to implement the code in __init__()
and run()
to travel to the designated waypoint, calculate which landing pad is closest (L-2 norm for the math nerds), and land at that landing pad. You can remove or comment out the NotImplementedError
line.
Once your code is implemented, the simulator should exit after the drone lands, which should take less than occur within 60 seconds of start. The difference between the coordinates of the drone position and the landing pad under the text file in log/
should be less than 0.1 . You can also confirm with the screenshot.
Note |
---|
Hints:
|
Note |
---|
Bonus:
|