![]() The example also makes use of the gobot.After() helper function that allows us to include a time delay for a command. In this example, the drone takes off at the start of the script using the drone.TakeOff() function. We also define a function called work where we define the action the drone should perform. package mainĪs you can see, the tello.NewDriver() function is used to create a new drone driver, which can then be passed to the gobot robot as a device. ![]() gobot.io/x/gobot Connecting to the Tello DroneĪfter completing the project setup, you can continue by connecting to your drone using the following code. touch main.goĪfter that, you also need to install the necessary dependencies for using the gobot library. The first step is setting up the project file structure, which is pretty easy because it only requires a single file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |