shogo sato / SBUS
Revision:
15:55548ca76fc4
Parent:
3:c004c3d1c349
--- a/SBUS.h	Mon Jul 15 09:05:23 2019 +0000
+++ b/SBUS.h	Mon Dec 07 07:41:34 2020 +0000
@@ -44,6 +44,9 @@
         // function of getting channel value
         // @parm    tag 0-25
         int getChannelValue(int tag);
+        
+        // function of getting connecting status
+        bool getConnectStatus();
     
     private:
         Serial com;
@@ -52,6 +55,7 @@
         int stickNeutralValue;
         int stickMinimumValue;
         int stickResolution;
+        bool connstatus;
         
         int channel[16];
         int receivedData[50];
@@ -65,6 +69,8 @@
         void decordReceivedData();
         
         void convertReceivedData();
+        
+        void resetall();
 };
 
 #endif