this is the working code for the xdot to read in serial from the pi and send it over LoRa

Revision:
21:bc12c888e7dc
Parent:
19:aa5b1fcd05be
diff -r aa5b1fcd05be -r bc12c888e7dc ChannelPlan.h
--- a/ChannelPlan.h	Thu Aug 29 12:21:40 2019 -0500
+++ b/ChannelPlan.h	Fri Nov 08 09:29:24 2019 -0600
@@ -77,7 +77,7 @@
              * ChannelPlan destructor
              */
             virtual ~ChannelPlan();
-            
+
             /**
              * Checks that at least one channel exist for the data rate
              */
@@ -565,7 +565,7 @@
             virtual void DefaultLBT();
 
             virtual bool ListenBeforeTalk();
-        
+
             /**
              * use to clear downlink channels on join
              */
@@ -595,6 +595,11 @@
              * Get default number of channels for a plan
              */
             virtual uint8_t GetNumDefaultChans();
+
+            /*
+             * Search enabled channels for lowest available datarate
+             */
+            virtual uint8_t GetMinEnabledDatarate();
         protected:
 
             SxRadio* GetRadio();                //!< Get pointer to the SxRadio object or assert if it is null
@@ -639,7 +644,7 @@
             uint8_t _numChans125k;              //!< Number of 125K  channels in plan
             uint8_t _numChans500k;              //!< Number of 500K channels in plan
             uint8_t _numDefaultChans;           //!< Number of default channels in plan
-            
+
             uint16_t _LBT_TimeUs;               //!< Sample time in us for LBT
             int8_t _LBT_Threshold;              //!< Threshold in dBm for LBT