diff --git a/afsk/main.c b/afsk/main.c index 71c76e08..54280c1d 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -90,8 +90,6 @@ int testCount = 0; short int buffer[2336400]; // max size for 10 frames count of BPSK #define S_RATE (48000) // (44100) - - #define FSK 0 #define BPSK 1 #define AFSK 2 diff --git a/groundstation/README.md b/groundstation/README.md index 941a15cf..9d757a08 100644 --- a/groundstation/README.md +++ b/groundstation/README.md @@ -1,4 +1,4 @@ -These files relate to the optional Raspberry Pi Ground Station. +The files relate to the optional Raspberry Pi Ground Station. The Ground Station can be installed on any Windows or Linux PC or laptop, but it does require drivers to be installed (RTL-SDR) and virtual audio cable (for sound) to be installed. This requires administrator privileges on the computer. diff --git a/systemd/README.md b/systemd/README.md index 3b324b68..248f7683 100644 --- a/systemd/README.md +++ b/systemd/README.md @@ -1,19 +1,16 @@ -To make the CubeSat Simulator transmit automatically on boot, follow these steps, which were derived from https://www.mauras.ch/systemd-run-it-last.html +To make the CubeSat Simulator transmit automatically on boot, follow these steps, which were derived from https://www.raspberrypi.org/documentation/linux/usage/systemd.md -On the Pi, if you are not already in this directory: -cd ~/CubeSatSim/systemd +Log into the Pi and type: -sudo cp custom.target /etc/systemd/system/custom.target +sudo cp ~/CubeSatSim/cubesatsim.service /etc/systemd/system/cubesatsim.service -sudo mkdir /etc/systemd/system/custom.target.wants +sudo systemctl enable cubesatsim -sudo cp cubesatsim.service /etc/systemd/system/custom.target.wants/cubesatsim.service +Reboot to start the autoboot service: -sudo systemctl isolate custom.target +sudo reboot now -sudo ln -sf /etc/systemd/system/custom.target /etc/systemd/system/default.target - -Now after a reboot (sudo reboot now), the demo.sh script will run automatically, and the console will log to ~/CubeSatSim/log.txt To see it: +Now after the Pi starts up, the demo.sh script will run automatically, and the console will log to ~/CubeSatSim/log.txt To see it: tail ~/CubeSatSim/log.txt diff --git a/systemd/cubesatsim.service b/systemd/cubesatsim.service index 8152fa71..3da1a46e 100644 --- a/systemd/cubesatsim.service +++ b/systemd/cubesatsim.service @@ -1,10 +1,13 @@ [Unit] -Description=My last command -After=multi-user.target +Description=My service [Service] -Type=simple ExecStart=/home/pi/CubeSatSim/demo.sh > /home/pi/CubeSatSim/log.txt 2>&1 - +WorkingDirectory=/home/pi/CubeSatSim +StandardOutput=inherit +StandardError=inherit +Restart=always +User=root + [Install] WantedBy=default.target diff --git a/systemd/custom.target b/systemd/custom.target deleted file mode 100644 index 05b22684..00000000 --- a/systemd/custom.target +++ /dev/null @@ -1,5 +0,0 @@ -[Unit] -Description=Custom Target -Requires=multi-user.target -After=multi-user.target -AllowIsolate=yes diff --git a/systemd/new.service b/systemd/new.service deleted file mode 100644 index 7f12e2c8..00000000 --- a/systemd/new.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=My last command -After=multi-user.target - -[Service] -Type=simple -ExecStart=/home/pi/CubeSatSim/demo.sh - -[Install] -WantedBy=custom.target