@@ -10,8 +10,14 @@ This Python module provides a high-level API to communicate and control ST3215 s
1010- Write target position, speed, and acceleration
1111- Rotate continuously in either direction
1212- Define and correct middle position
13- - EEPROM locking and ID reconfiguration
13+ - EEPROM locking, ID and baudrate reconfiguration
1414
15+ ## Installation
16+ You can install the module using pip:
17+
18+ ``` bash
19+ pip install -e .
20+ ```
1521
1622## Example Usage
1723
@@ -269,8 +275,8 @@ servo.Rotate(1, 250)
269275---
270276
271277### ` MoveTo(sts_id, position, speed=2400, acc=50, wait=False) `
272- Move to a defined position.
273- Set wait to ` True ` if you want to wait the end of the move before the function returning
278+ Move to a defined position. Return ` None ` in case of error.
279+ Set wait to ` True ` if you want to wait the end of the move before the function returning.
274280
275281- ** Parameters** :
276282 - ` sts_id ` (int)
@@ -301,7 +307,7 @@ servo.WritePosition(1, 2048)
301307---
302308
303309### ` ReadPosition(sts_id) `
304- Read current position. Return ` None ` in case of error.
310+ Read current position. Return position in case of success, otherwise ` None `
305311
306312- ** Parameters** : ` sts_id ` (int)
307313- ** Returns** : ` int ` or ` None `
@@ -313,7 +319,7 @@ servo.ReadPosition(1)
313319---
314320
315321### ` ReadSpeed(sts_id) `
316- Get current speed. Return ` None ` in case of error.
322+ Get current speed. Return speed in case of success, otherwise ` None `
317323
318324- ** Parameters** : ` sts_id ` (int)
319325- ** Returns** : ` (int, int, int) `
@@ -325,7 +331,7 @@ speed, comm, error = servo.ReadSpeed(1)
325331---
326332
327333### ` LockEprom(sts_id) `
328- Lock the EEPROM. Return ` None ` in case of error .
334+ Lock the EEPROM. Return ` 0 ` in case of success .
329335
330336- ** Parameters** : ` sts_id ` (int)
331337- ** Returns** : ` int `
@@ -337,7 +343,7 @@ servo.LockEprom(1)
337343---
338344
339345### ` UnLockEprom(sts_id) `
340- Unlock the EEPROM. Return ` None ` in case of error .
346+ Unlock the EEPROM. Return ` 0 ` in case of success .
341347
342348- ** Parameters** : ` sts_id ` (int)
343349- ** Returns** : ` int `
@@ -349,7 +355,7 @@ servo.UnLockEprom(1)
349355---
350356
351357### ` ChangeId(sts_id, new_id) `
352- Change the servo ID. Return ` None ` in case of error.
358+ Change the servo ID. Return ` None ` when sucedeed otherwise the error message
353359
354360- ** Parameters** :
355361 - ` sts_id ` (int)
@@ -360,6 +366,19 @@ Change the servo ID. Return `None` in case of error.
360366servo.ChangeId(1 , 2 )
361367```
362368
369+ ---
370+ ### ` ChangeBaudrate(sts_id, new_baudrate) `
371+ Change the servo baudrate. Return ` None ` when sucedeed otherwise the error message
372+
373+ - ** Parameters** :
374+ - ` sts_id ` (int)
375+ - ` new_baudrate ` (int)
376+ - ** Returns** : ` None ` or ` str `
377+ - ** Example** :
378+ ``` python
379+ servo.ChangeBaudrate(1 , 4 ) # 115200
380+ ```
381+
363382---
364383
365384### ` DefineMiddle(sts_id) `
0 commit comments