Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions run.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

source radio/venv/bin/activate
source $1/bin/activate

# Check for updates
if [ -z "$1" ]; then
if [ -z "$2" ]; then
concurrently "python radio/app.py" "cd gcs && yarn dev" -n "backend,frontend" -c "red,blue"
else
cd radio
Expand Down
19 changes: 19 additions & 0 deletions run_docker.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Information for first time running (cba to actually make it do all this)
echo "THIS NEEDS TO BE RAN IN SUDO"
echo "If you get errors, you'll need to clone with:"
echo "sudo docker pull kushmakkapati/ardupilot_sitl"
echo ""

# Run
sudo systemctl start docker.service
sudo docker run -it --rm -p 5760:7560 kushmakkapati/ardupilot_sitl

# Stop
sudo systemctl stop docker.service
sudo systemctl stop docker.socket

# Goodybye message
echo ""
echo "Stopped!"
Loading