Compare commits

..

3 Commits

Author SHA1 Message Date
Kenwood cadc2b0c6a Add updating notes 2021-07-14 20:11:46 -04:00
Kenwood a234275422 Create makefile for moving and setting up service file 2021-07-14 20:11:02 -04:00
Kenwood c67bcdc484 Complete arduino makefile 2021-07-14 20:04:20 -04:00
3 changed files with 32 additions and 7 deletions

View File

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

View File

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

View File

@ -0,0 +1,18 @@
# 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