Compare commits
42 Commits
crawler-so
...
0734206570
| Author | SHA1 | Date | |
|---|---|---|---|
| 0734206570 | |||
| 40162a4c19 | |||
| 69990a4fbf | |||
| bb8ffcc983 | |||
| aa47771265 | |||
| 2569782b38 | |||
| 8ebbd31d14 | |||
| 5f9a30013d | |||
| 81c1148b49 | |||
| 608af373e6 | |||
| 282f929d70 | |||
| 3403d3e494 | |||
| ec174ae445 | |||
| 05015113f9 | |||
| 000385da79 | |||
| 76837ded9b | |||
| ea5978f4e4 | |||
| 942809c95a | |||
| c2695e1971 | |||
| af4c8f978b | |||
| 046c1f7846 | |||
| 03564ed485 | |||
| 19acde6d43 | |||
| d2f85f6aad | |||
| 779127ff73 | |||
| 9e58b2b1af | |||
| b902f8a500 | |||
| f38f1ab8ba | |||
| e092a570d1 | |||
| db52dbff47 | |||
| 9f0fb82831 | |||
| 049b1a7c5c | |||
| d12c7b64ed | |||
| f1696dd006 | |||
| 6fd0c249a0 | |||
| 66dfa763d2 | |||
| 218626d316 | |||
| f9a47e8891 | |||
| e414f63425 | |||
| 513fe74228 | |||
| 1e98970dc3 | |||
| d13b74ed47 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ __pycache__
|
||||
*.png
|
||||
*.jpg
|
||||
*.wav
|
||||
*.pdf
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
CAD/lewis_crawler/components/digi-adapter/Digi Case Base.FCStd
Normal file
BIN
CAD/lewis_crawler/components/digi-adapter/Digi Case Base.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/components/digi-adapter/Digi Case Lid.FCStd
Normal file
BIN
CAD/lewis_crawler/components/digi-adapter/Digi Case Lid.FCStd
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
CAD/lewis_crawler/frame/Frame.FCStd
Normal file
BIN
CAD/lewis_crawler/frame/Frame.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/lewis-crawler.FCStd
Normal file
BIN
CAD/lewis_crawler/lewis-crawler.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/mast/9gServo.FCStd
Normal file
BIN
CAD/lewis_crawler/mast/9gServo.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/mast/MastCamFace.FCStd
Normal file
BIN
CAD/lewis_crawler/mast/MastCamFace.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/mast/MastCamMount.FCStd
Normal file
BIN
CAD/lewis_crawler/mast/MastCamMount.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/mast/MastCamRear.FCStd
Normal file
BIN
CAD/lewis_crawler/mast/MastCamRear.FCStd
Normal file
Binary file not shown.
BIN
CAD/lewis_crawler/mast/Window Wiper.FCStd
Normal file
BIN
CAD/lewis_crawler/mast/Window Wiper.FCStd
Normal file
Binary file not shown.
4824
CAD/resources/Kitsune Robotics Template.svg
Normal file
4824
CAD/resources/Kitsune Robotics Template.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 313 KiB |
BIN
CAD/resources/Kitsune Scientific.kra
Normal file
BIN
CAD/resources/Kitsune Scientific.kra
Normal file
Binary file not shown.
@@ -5,3 +5,11 @@ git clone <url>
|
||||
cd lewis-crawler/crawler_software/raspberry_pi
|
||||
make install?
|
||||
```
|
||||
|
||||
# Getting started with the CAD
|
||||
|
||||
```
|
||||
git clone https://kitsunehosting.net/gitea/Kenwood/lewis-crawler
|
||||
git checkout crawler-cad
|
||||
```
|
||||
find cad under `lewis-crawler/crawler-cad`
|
||||
|
||||
23
companion_software/BasicBot.py
Normal file
23
companion_software/BasicBot.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from discord_webhook import DiscordWebhook
|
||||
from picamera import PiCamera
|
||||
from time import sleep
|
||||
|
||||
|
||||
def get_uptime():
|
||||
with open('/proc/uptime', 'r') as f:
|
||||
uptime_seconds = float(f.readline().split()[0])
|
||||
|
||||
return uptime_seconds
|
||||
|
||||
webhookURL = "https://discord.com/api/webhooks/856609966404534272/TR9tnLq2sIGZoOeADNswmGRNlzBcqM5aKihfU6snVTP9WhSSoVVvi7nT6i-ZfZS7Hcqm"
|
||||
|
||||
webhook = DiscordWebhook(url=webhookURL, content="Uptime: " + str( round( ((get_uptime() / 60) / 60 ), 2 )) + " hours")
|
||||
|
||||
camera = PiCamera()
|
||||
sleep(3) # let iso settle out
|
||||
camera.capture('still.jpg')
|
||||
|
||||
with open("still.jpg", "rb") as f:
|
||||
webhook.add_file(file=f.read(), filename='still.jpg')
|
||||
response = webhook.execute() # Hit send
|
||||
|
||||
70
crawler_software/arduino/crawler_slave/Makefile
Normal file
70
crawler_software/arduino/crawler_slave/Makefile
Normal file
@@ -0,0 +1,70 @@
|
||||
### DISCLAIMER
|
||||
### This is an example Makefile and it MUST be configured to suit your needs.
|
||||
### For detailed explanations about all the available options,
|
||||
### please refer to https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
|
||||
|
||||
### PROJECT_DIR
|
||||
### This is the path to where you have created/cloned your project
|
||||
PROJECT_DIR = $(shell dirname $(shell pwd))
|
||||
|
||||
### ARDMK_DIR
|
||||
### Path to the Arduino-Makefile directory.
|
||||
ARDMK_DIR = $(PROJECT_DIR)/Arduino-Makefile
|
||||
|
||||
### ARDUINO_DIR
|
||||
### Path to the Arduino application and resources directory.
|
||||
ARDUINO_DIR = /usr/share/arduino
|
||||
|
||||
### USER_LIB_PATH
|
||||
### Path to where the your project's libraries are stored.
|
||||
USER_LIB_PATH := $(realpath $(PROJECT_DIR)/lib)
|
||||
|
||||
### BOARD_TAG & BOARD_SUB
|
||||
### For Arduino IDE 1.0.x
|
||||
### Only BOARD_TAG is needed. It must be set to the board you are currently using. (i.e uno, mega2560, etc.)
|
||||
# BOARD_TAG = mega2560
|
||||
### For Arduino IDE 1.6.x
|
||||
### Both BOARD_TAG and BOARD_SUB are needed. They must be set to the board you are currently using. (i.e BOARD_TAG = uno, mega, etc. & BOARD_SUB = atmega2560, etc.)
|
||||
### Note: for the Arduino Uno, only BOARD_TAG is mandatory and BOARD_SUB can be equal to anything
|
||||
BOARD_TAG = mega
|
||||
BOARD_SUB = atmega2560
|
||||
|
||||
### MONITOR_PORT
|
||||
### The port your board is connected to. Using an '*' tries all the ports and finds the right one. Choose one of the two.
|
||||
MONITOR_PORT = /dev/ttyUSB*
|
||||
# MONITOR_PORT = /dev/ttyACM*
|
||||
|
||||
### MONITOR_BAUDRATE
|
||||
### It must be set to Serial baudrate value you are using.
|
||||
MONITOR_BAUDRATE = 115200
|
||||
|
||||
### AVR_TOOLS_DIR
|
||||
### Path to the AVR tools directory such as avr-gcc, avr-g++, etc.
|
||||
AVR_TOOLS_DIR = /usr
|
||||
|
||||
### AVRDUDE
|
||||
### Path to avrdude directory.
|
||||
AVRDUDE = /usr/bin/avrdude
|
||||
|
||||
### CFLAGS_STD
|
||||
CFLAGS_STD = -std=gnu11
|
||||
|
||||
### CXXFLAGS_STD
|
||||
### You can choose wich ever you like
|
||||
# CXXFLAGS_STD = -std=gnu++11
|
||||
CXXFLAGS_STD = -std=gnu++17
|
||||
|
||||
|
||||
### CPPFLAGS
|
||||
### Flags you might want to set for debugging purpose. Comment to stop.
|
||||
CXXFLAGS += -pedantic -Wall -Wextra
|
||||
LDFLAGS += -fdiagnostics-color
|
||||
|
||||
### OBJDIR
|
||||
### Don't touch this!
|
||||
### This is were you put the binaries you just compile using 'make'
|
||||
CURRENT_DIR = $(shell basename $(CURDIR))
|
||||
OBJDIR = $(PROJECT_DIR)/build/$(CURRENT_DIR)/$(BOARD_TAG)
|
||||
|
||||
### path to Arduino.mk, inside the ARDMK_DIR, don't touch.
|
||||
include $(ARDMK_DIR)/Arduino.mk
|
||||
Reference in New Issue
Block a user