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 # To install on robot
``` ```
git clone <url> git clone https://kitsunehosting.net/gitea/Kenwood/lewis-crawler /srv/crawler
cd lewis-crawler/crawler_software/raspberry_pi cd /srv/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 FQBN ?= arduino:avr:nano:cpu=atmega328old
# 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: crawler_slave.ino build: requirements 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: upload: requirements crawler_slave.ino
echo "Would install to $(SERIAL_DEV)" arduino-cli upload -b $(FQBN) crawler_slave -p $(SERIAL_DEV)
requirements: requirements:
@if [ -e requirements.txt ]; \ @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