Compare commits
3 Commits
61d77870a0
...
cadc2b0c6a
Author | SHA1 | Date |
---|---|---|
|
cadc2b0c6a | |
|
a234275422 | |
|
c67bcdc484 |
13
README.md
13
README.md
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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 ]; \
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue