Updated radio properties

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-11-11 19:50:38 +01:00
parent 8fc8c20697
commit d322447290
3 changed files with 4 additions and 4 deletions

View File

@@ -131,8 +131,8 @@ void setup(void)
while (true);
}
LoRa.setSignalBandwidth(500E3);
LoRa.setSpreadingFactor(8);
LoRa.setSignalBandwidth(250E3);
LoRa.setSpreadingFactor(7);
LoRa.setCodingRate4(6);
LoRa.enableCrc();
LoRa.onReceive(onReceive);

View File

@@ -285,5 +285,5 @@ void encodePingPayload(QspConfiguration_t *qsp, uint32_t currentMicros) {
qsp->payload[2] = (currentMicros >> 16) & 255;
qsp->payload[3] = (currentMicros >> 24) & 255;
qsp->payloadLength = 9;
qsp->payloadLength = 4;
}

View File

@@ -11,7 +11,7 @@
#define RX_TASK_HEALTH 200 //5Hz should be enough
#define RSSI_CHANNEL 11
#define TX_TRANSMIT_SLOT_RATE 70 //ms
#define TX_TRANSMIT_SLOT_RATE 67 //ms
#define RX_FAILSAFE_DELAY (TX_TRANSMIT_SLOT_RATE * 8)
#define TX_FAILSAFE_DELAY (RX_FAILSAFE_DELAY * 4)