Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SBUS.h
- 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