You will need:
pi-image
Also useful:
root
pi
- This is what you should usually use.beeeeees
, bees with 6 e
’s.pi@raspberrypi
, this can be used to issue commands to the system.If you start the code using the start button, you will notice that no output is logged to the screen. This is because the debug logs are sent to the systemd
log by default.
journalctl -u <module>
.
journalctl -fu <module>
runusb
- This service runs the code on the USBrobotd
- This service abstracts the hardware of the robot.It can be useful to run code directly, rather than under the runusb
service. This will run the code as the user that you are logged in as, and outside of the systemd-nspawn
container that runusb
executes them in.
runusb
service. This stops multiple versions of the code executing simultaneously.sudo systemctl stop runusb
usbmount
as /media/usb0
, /media/usb1
, /media/usb2
, etc.python3 main.py
wait_for_start_button=False
, in this case, the code will start executing immediately.Sometimes when running code directly, you may find it helpful to restart robotd
: sudo systemctl restart robotd
When releasing updates, it is important to ensure that new versions of the libraries behave as expected.
We can install an updated version of the library using a .deb
package. The instructions for this can vary by module, but most only require a couple of commands:
debuild -uc -us
sudo dpkg -i file.deb