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
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
|
|
|
@ -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 ]; \
|
||||
|
|
|
@ -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