From dd2d185bc74c9199f2e5687e317fe923dd84f960 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 28 Aug 2026 16:55:17 +0300 Subject: [PATCH] Fix pyflix examples reflecting control parameters rename --- tools/example.py | 6 +++--- tools/pyflix/README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/example.py b/tools/example.py index 0738bda..0cb71be 100755 --- a/tools/example.py +++ b/tools/example.py @@ -24,11 +24,11 @@ print('> imu') print(flix.cli('imu')) print('=== Get parameter...') -pitch_p = flix.get_param('CTL_P_P') -print('CTL_P_P = ', pitch_p) +pitch_p = flix.get_param('CTL_ATT_P_P') +print('CTL_ATT_P_P = ', pitch_p) 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('Gyro: ', flix.wait('gyro')) diff --git a/tools/pyflix/README.md b/tools/pyflix/README.md index b5b61d8..963adad 100644 --- a/tools/pyflix/README.md +++ b/tools/pyflix/README.md @@ -121,8 +121,8 @@ Full list of events: Get and set firmware parameters using `get_param` and `set_param` methods: ```python -pitch_p = flix.get_param('CTL_P_P') # get parameter value -flix.set_param('CTL_P_P', 5) # set parameter value +pitch_p = flix.get_param('CTL_ATT_P_P') # get 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: