The function library of serial servo controller

Dependents:   DR-ArmServoTest ros_button_2021 DR-ArmServoTest

Revision:
1:1398d9ddd4ef
Parent:
0:3b51e0118f2b
Child:
2:acaaf1126d76
--- a/LSCServo.h	Wed May 19 09:51:20 2021 +0000
+++ b/LSCServo.h	Tue May 25 09:18:49 2021 +0000
@@ -14,9 +14,9 @@
 
 
 class LSCServo {
-    private:
+    public:
         BufferedSerial serial;
-    public:
+        void receive_buffer(char* destination, int length);
         LSCServo(PinName tx, PinName rx, uint32_t buf_size = 256, uint32_t tx_multiple = 4,const char* name=NULL);
         virtual ~LSCServo();
         void LobotSerialoneServoMove(uint16_t id, int16_t position, uint16_t time);  //control one serial servo move dedicated position