Porównaj commity

...

11 Commity
0.5.4 ... main

Autor SHA1 Wiadomość Data
Guenael, VA2GKA 17502db2f3
Merge pull request #136 from krasoffski/fix_zero_padding_for_pwr
Fix whitespace padding for PWR
2024-03-01 14:35:51 -05:00
Yury Krasouski 876f6ff57c Add zero padding for pwr 2024-02-29 16:22:43 +01:00
Guenael, VA2GKA a6416c5ed6
Merge pull request #135 from krasoffski/fix_print_formatting
Aligned print spots without seconds
2024-02-28 20:29:47 -05:00
Yury Krasouski 901e3f931d Aligned print spots without seconds 2024-02-26 11:50:33 +01:00
Guenael, VA2GKA f2f316ec8b
chore: gitpod no longer used 2022-09-24 12:59:54 -04:00
Guenael, VA2GKA 748f122d22
Merge pull request #130 from dforsi/fix/frequency
Fix dial frequency for 80m
2022-01-17 18:44:24 -05:00
Daniele Forsi 3b75fb4419 Fix dial frequency for 80m
Use 3568600 Hz like WSJT-X:
https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/models/FrequencyList.cpp#l96
2022-01-17 23:21:10 +01:00
Guenael, VA2GKA 061e753db5
Merge pull request #128 from Guenael/guenael
fix(CI): help2man removed, no land, no man
2021-12-31 01:59:35 -05:00
Guenael 9734f3bf82 fix(CI): help2man removed, no land, no man 2021-12-31 01:52:32 -05:00
Guenael, VA2GKA dd8737313b
Merge pull request #127 from Guenael/guenael
chore: adding help2man in the CI & doc.
2021-12-31 01:49:16 -05:00
Guenael e35adbe200 chore: adding help2man in the CI & doc. 2021-12-31 01:48:18 -05:00
7 zmienionych plików z 11 dodań i 41 usunięć

Wyświetl plik

@ -34,8 +34,8 @@ jobs:
- name: Install dependencies and build
run: |
sudo apt-get -y update
sudo apt-get -y install build-essential cmake libfftw3-dev libusb-1.0-0-dev librtlsdr-dev libcurl4-gnutls-dev cppcheck iwyu
sudo apt-get update
sudo apt-get -y --no-install-recommends install build-essential cmake libfftw3-dev libusb-1.0-0-dev librtlsdr-dev libcurl4-gnutls-dev cppcheck
make
- name: Perform CodeQL Analysis (SAST)

2
.gitignore vendored
Wyświetl plik

@ -1,7 +1,7 @@
*.1
*.o
*.a
*.iq
*.c2
rtlsdr_wsprd
fftw_wisdom.dat
hashtable.txt

Wyświetl plik

@ -1,24 +0,0 @@
tasks:
- init: make
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: false
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: prebuilt-in-gitpod
vscode:
extensions:
- esbenp.prettier-vscode

Wyświetl plik

@ -8,7 +8,7 @@ LIBS = -lusb-1.0 -lrtlsdr -lpthread -lfftw3f -lcurl -lm
OBJS = rtlsdr_wsprd.o wsprd/wsprd.o wsprd/wsprsim_utils.o wsprd/wsprd_utils.o wsprd/tab.o wsprd/fano.o wsprd/nhash.o
TARGETS = rtlsdr_wsprd #rtlsdr_wsprd.1
TARGETS = rtlsdr_wsprd
.PHONY: all clean
@ -25,8 +25,3 @@ clean:
install:
install rtlsdr_wsprd /usr/local/bin/rtlsdr_wsprd
#install rtlsdr_wsprd.1.gz /usr/local/man/man1/rtlsdr_wsprd.1.gz
%.1: %.c | %
-help2man --no-info --output=$@ ./$|
#gzip rtlsdr_wsprd.1

Wyświetl plik

@ -16,7 +16,7 @@ To install and use your dongle on a Raspberry Pi with a Raspberry Pi OS, follow
```bash
echo "== Install dependencies"
sudo apt-get update && sudo apt-get -y install build-essential clang cmake libfftw3-dev libusb-1.0-0-dev libcurl4-gnutls-dev ntp git
sudo apt-get update && sudo apt-get -y install build-essential clang cmake libfftw3-dev libusb-1.0-0-dev libcurl4-gnutls-dev help2man ntp git
echo "== Install rtl-sdr library (on RPi, don't use your distro package)"
git clone https://github.com/osmocom/rtl-sdr
@ -64,7 +64,7 @@ This application written in C does:
3. Install dependencies & useful tools (for example, [NTP](https://en.wikipedia.org/wiki/Network_Time_Protocol) for time synchronization). Example with a Debian based OS, like Rasbian, or Raspberry Pi OS:
```bash
sudo apt-get update && sudo apt-get -y install build-essential clang cmake libfftw3-dev libusb-1.0-0-dev libcurl4-gnutls-dev ntp git
sudo apt-get update && sudo apt-get -y install build-essential clang cmake libfftw3-dev libusb-1.0-0-dev libcurl4-gnutls-dev help2man ntp git
```
4. Install `rtl-sdr` library manually. **Do not use the `librtlsdr-dev` package on Raspberry PiOS**. There is a know bug with this lib and rtlsdr_wsprd will not be able to get enough samples (don't decode anything & 100% CPU pattern).

Wyświetl plik

@ -448,13 +448,12 @@ void printSpots(uint32_t n_results) {
}
for (uint32_t i = 0; i < n_results; i++) {
printf("Spot : %04d-%02d-%02d %02d:%02d:%02d %6.2f %6.2f %10.6f %2d %7s %6s %2s\n",
printf("Spot : %04d-%02d-%02d %02d:%02dz %6.2f %6.2f %10.6f %2d %7s %6s %2s\n",
rx_state.gtm->tm_year + 1900,
rx_state.gtm->tm_mon + 1,
rx_state.gtm->tm_mday,
rx_state.gtm->tm_hour,
rx_state.gtm->tm_min,
rx_state.gtm->tm_sec,
dec_results[i].snr,
dec_results[i].dt,
dec_results[i].freq,
@ -836,7 +835,7 @@ int main(int argc, char **argv) {
initDecoder_options();
if (argc <= 1)
usage(stderr, 1);
usage(stdout, EXIT_SUCCESS);
while ((opt = getopt_long(argc, argv, short_options, long_options, &option_index)) != -1) {
switch (opt) {
@ -865,7 +864,7 @@ int main(int argc, char **argv) {
if (!rx_options.directsampling)
rx_options.directsampling = 2;
} else if (!strcasecmp(optarg, "80m")) {
rx_options.dialfreq = 3592600;
rx_options.dialfreq = 3568600;
if (!rx_options.directsampling)
rx_options.directsampling = 2;
} else if (!strcasecmp(optarg, "60m")) {
@ -1139,7 +1138,7 @@ int main(int argc, char **argv) {
uint32_t usec = sec * 1000000 + lTime.tv_usec;
uint32_t uwait = 120000000 - usec;
printf("Wait for time sync (start in %d sec)\n\n", uwait / 1000000);
printf(" Date Time(z) SNR DT Freq Dr Call Loc Pwr\n");
printf(" Date Time SNR DT Freq Dr Call Loc Pwr\n");
/* Prepare a low priority param for the decoder thread */
struct sched_param param;

Wyświetl plik

@ -263,7 +263,7 @@ int unpk_(signed char *message, char *hashtab, char *loctab, char *call_loc_pow,
if (nu == 0 || nu == 3 || nu == 7) {
ndbm = ntype;
memset(call_loc_pow, 0, sizeof(char) * 23);
sprintf(cdbm, "%2d", ndbm);
sprintf(cdbm, "%02d", ndbm);
strncat(call_loc_pow, callsign, strlen(callsign));
strncat(call_loc_pow, " ", 1);
strncat(call_loc_pow, grid, 4);