Compare commits

..

No commits in common. "cadc2b0c6ae0779f7f66217378e6065e0384e93a" and "61d77870a07461fa3ace1b6fa7abe6be34d4207d" have entirely different histories.

3 changed files with 7 additions and 32 deletions

View File

@ -1,14 +1,7 @@
# To install on robot # To install on robot
``` ```
git clone https://kitsunehosting.net/gitea/Kenwood/lewis-crawler /srv/crawler git clone <url>
cd /srv/crawler/crawler_software/raspberry_pi cd lewis-crawler/crawler_software/raspberry_pi
make install make install?
```
# Updating
```
cd /srv/crawler
git pull
``` ```

View File

@ -5,7 +5,7 @@
# What board to build for and its core # What board to build for and its core
CORE ?= arduino:avr CORE ?= arduino:avr
FQBN ?= arduino:avr:nano:cpu=atmega328old FQBN ?= arduino:avr:nano
# What port to build on # What port to build on
ifndef SERIAL_DEV ifndef SERIAL_DEV
@ -20,13 +20,13 @@ endif
all: requirements build upload all: requirements build upload
build: requirements crawler_slave.ino build: crawler_slave.ino
arduino-cli core install $(CORE) arduino-cli core install $(CORE)
arduino-cli compile -b $(FQBN) crawler_slave arduino-cli compile -b $(FQBN) crawler_slave
upload: requirements crawler_slave.ino upload:
arduino-cli upload -b $(FQBN) crawler_slave -p $(SERIAL_DEV) echo "Would install to $(SERIAL_DEV)"
requirements: requirements:
@if [ -e requirements.txt ]; \ @if [ -e requirements.txt ]; \

View File

@ -1,18 +0,0 @@
# A makefile for installing the robot's python
# software and setting it up.
#
# Requires sudo
#
# Kitsune Scientific 2021
all: install
upload: crawler.service
sudo cp crawler.service /etc/systemd/system/crawler.service
sudo systemctl daemon-reload
sudo systemctl enable crawler.service
sudo systemctl start crawler.service
sudo systemctl status crawler