Fix pyflix examples reflecting control parameters rename

This commit is contained in:
Oleg Kalachev
2026-08-28 17:53:22 +03:00
parent 3cba73fada
commit dd2d185bc7
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -24,11 +24,11 @@ print('> imu')
print(flix.cli('imu')) print(flix.cli('imu'))
print('=== Get parameter...') print('=== Get parameter...')
pitch_p = flix.get_param('CTL_P_P') pitch_p = flix.get_param('CTL_ATT_P_P')
print('CTL_P_P = ', pitch_p) print('CTL_ATT_P_P = ', pitch_p)
print('=== Set parameter...') print('=== Set parameter...')
flix.set_param('CTL_P_P', pitch_p) flix.set_param('CTL_ATT_P_P', pitch_p)
print('=== Wait for gyro update...') print('=== Wait for gyro update...')
print('Gyro: ', flix.wait('gyro')) print('Gyro: ', flix.wait('gyro'))
+2 -2
View File
@@ -121,8 +121,8 @@ Full list of events:
Get and set firmware parameters using `get_param` and `set_param` methods: Get and set firmware parameters using `get_param` and `set_param` methods:
```python ```python
pitch_p = flix.get_param('CTL_P_P') # get parameter value pitch_p = flix.get_param('CTL_ATT_P_P') # get parameter value
flix.set_param('CTL_P_P', 5) # set parameter value flix.set_param('CTL_ATT_P_P', 5) # set parameter value
``` ```
Execute console commands using `cli` method. This method returns the command response: Execute console commands using `cli` method. This method returns the command response: