Skip to content

Commit 7fcaffd

Browse files
committed
Changed a few timing values for RX
1 parent cc676dd commit 7fcaffd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

DavisRFM69.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@
4848
#define RF69_DAVIS_BW_WIDE 2
4949

5050
#define null 0
51-
#define COURSE_TEMP_COEF -90 // puts the temperature reading in the ballpark, user can fine tune the returned value
52-
#define RF69_FSTEP 61.03515625 // == FXOSC/2^19 = 32mhz/2^19 (p13 in DS)
53-
54-
#define RESYNC_THRESHOLD 50 // max. number of lost packets from a station before rediscovery
55-
#define LATE_PACKET_THRESH 5000 // packet is considered missing after this many micros
56-
#define POST_RX_WAIT 2000 // RX "settle" delay
57-
#define MAX_STATIONS 8 // max. stations this code is able to handle
58-
59-
#define DISCOVERY_MINGAP 70000L
60-
#define DISCOVERY_GUARD 60000L
61-
#define DISCOVERY_STEP 150000000L
62-
#define SPI_OP_TIMEOUT 15000L
51+
#define COURSE_TEMP_COEF -90 // puts the temperature reading in the ballpark, user can fine tune the returned value
52+
#define RF69_FSTEP 61.03515625 // FXOSC/2^19 (see datasheet)
53+
54+
#define RESYNC_THRESHOLD 50 // max. number of lost packets from a station before rediscovery
55+
#define LATE_PACKET_THRESH 5000L // packet is considered missing after this delay (micros)
56+
#define POST_RX_WAIT 2000L // RX "settle" delay
57+
#define MAX_STATIONS 8 // max. stations this code is able to handle
58+
59+
#define DISCOVERY_MINGAP 70000L // time before expected transmission to keep discovery frequency on
60+
#define DISCOVERY_GUARD 20000L // time before expected transmission to switch on receiver
61+
#define DISCOVERY_STEP 150000000L // time before skipping the discovery channel to avoid interference
62+
#define SPI_OP_TIMEOUT 15000L // SPI operation time guard
6363

6464
// Station data structure for managing radio reception
6565
typedef struct __attribute__((packed)) Station {

0 commit comments

Comments
 (0)