TX module is no longer using interrupts to read from LoRa. This fixes jumpy PPM readouts

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-10-27 07:20:43 +02:00
parent b50564f4bd
commit 86f70accff
3 changed files with 34 additions and 15 deletions

View File

@@ -18,7 +18,7 @@
#define QSP_PREAMBLE 0x51
#define QSP_PAYLOAD_LENGTH 32
#define QSP_MAX_FRAME_DECODE_TIME 50 //max time that frame can be decoded in ms
#define QSP_MAX_FRAME_DECODE_TIME 10 //max time that frame can be decoded in ms
#define QSP_FRAME_RC_DATA 0x0
#define QSP_FRAME_RX_HEALTH 0x1
@@ -83,8 +83,8 @@ struct QspConfiguration_t {
};
struct RxDeviceState_t {
int rssi = 0;
float snr = 0;
uint8_t rssi = 0;
uint8_t snr = 0;
uint8_t rxVoltage = 0;
uint8_t a1Voltage = 0;
uint8_t a2Voltage = 0;