From 0d6f1d5c621c3587c443406944e2fc6c0543444d Mon Sep 17 00:00:00 2001 From: Konstantinos Kamaropoulos Date: Sun, 26 Jan 2020 17:01:38 +0200 Subject: [PATCH] feat: Configure LoRa library --- Aiolos_Drone.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Aiolos_Drone.ino b/Aiolos_Drone.ino index 01072c6..59b0fee 100644 --- a/Aiolos_Drone.ino +++ b/Aiolos_Drone.ino @@ -1,3 +1,5 @@ +#include "RYLR896.h" + #define DRONE_ID 1 int MQ2 = A0; @@ -12,6 +14,8 @@ int MQ135 = A7; #define GPS_SERIAL Serial1 #define LORA_SERIAL Serial3 +RYLR896* lora; + void setup() { pinMode(MQ2, INPUT); pinMode(MQ4, INPUT); @@ -21,6 +25,8 @@ void setup() { pinMode(MQ8, INPUT); pinMode(MQ9, INPUT); pinMode(MQ135, INPUT); + lora = new RYLR896(&LORA_SERIAL, 115200); + lora->SetRFParamsLessThan3KM(); Serial.begin(115200); GPS_SERIAL.begin(9600); }