Installation
This section demonstrates how to install various development tools using Solo CLI. You must first connect to the Internet, as shown in the previous section.
Install smart repositories
smart is the Solo package manager (see the Installing Packages section for more information). To install the list of repositories needed by smart, run:
solo install-smart
Install runit
To add the runit script daemon (used to create new services):
solo install-runit
Install pip
To install pip directly on Solo:
solo install-pip
Deploying/running DroneKit scripts on Solo
Use the solo script pack command to package a folder containing DroneKit-Python scripts and any dependencies into an archive for deployment to Solo. The host computer must be connected to the Internet, and the folder must contain a requirements.txt file listing the (PyPi) dependencies:
solo script pack
If successful, the command will create an archive in the solo-script.tar.gz in the current directory.
Deploy this archive to Solo and run a specified script using the solo script run command. The host computer must be connected to the Solo wifi network, and Solo must also be connected to the Internet.
For example, to deploy and run the helloworld example:
solo script run helloworld.py
Downloading Logs
To download logs to your host computer:
solo logs download
Logs are downloaded from both solo and the controller, and copied into subdirectories ./drone and ./controller (respectively).