Release v.0.5 is working nicely.

gps_test v.0.5
roman 2023-11-30 19:18:09 +03:00
rodzic f5c6f5b2cd
commit db247236af
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -52,7 +52,7 @@
#ifndef DEFINESWSPR_H
#define DEFINESWSPR_H
#define DEBUG
//#define DEBUG
#ifdef DEBUG
#define DEBUGPRINTF(x) StampPrintf(x);
@ -94,5 +94,6 @@
(6 * HOUR) /* How long is active without GPS. */
#define GPS_PPS_PIN 2 /* GPS time mark PIN. */
#define RFOUT_PIN 6 /* RF output PIN. */
#endif

7
main.c
Wyświetl plik

@ -83,11 +83,11 @@ int main()
WSPRbeaconContext *pWB = WSPRbeaconInit(
"R2BDY", /* the Callsign. */
"KO85", /* the QTH locator. */
10, /* Tx power, dbm. */
16, /* Tx power, dbm. */
&DCO, /* the PioDCO object. */
7040000UL, /* the dial frequency. */
55UL, /* the carrier freq. shift relative to dial freq. */
6 /* RF output GPIO pin. */
RFOUT_PIN /* RF output GPIO pin. */
);
assert_(pWB);
pWSPR = pWB;
@ -112,9 +112,10 @@ int main()
sleep_ms(100);
gpio_put(PICO_DEFAULT_LED_PIN, 0);
#ifdef DEBUG
if(0 == ++tick % 60)
WSPRbeaconDumpContext(pWB);
#endif
sleep_ms(900);
}
}