Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rc_utils.pyが操作中に停止する #385

Open
buildko89 opened this issue Oct 14, 2024 · 0 comments
Open

rc_utils.pyが操作中に停止する #385

buildko89 opened this issue Oct 14, 2024 · 0 comments

Comments

@buildko89
Copy link
Collaborator

index番号の定義がないボタンやスティック操作するとプログラムが停止する。

Traceback (most recent call last):
  File "C:\Users\buildman\Documents\hakoniwa\Release\2.7.0\hakoniwa-px4-win\hakoniwa\apps\rc-custom.py", line 102, in <module>
    sys.exit(main())
             ^^^^^^
  File "C:\Users\buildman\Documents\hakoniwa\Release\2.7.0\hakoniwa-px4-win\hakoniwa\apps\rc-custom.py", line 98, in main
    joystick_control(client, joystick, stick_monitor)
  File "C:\Users\buildman\Documents\hakoniwa\Release\2.7.0\hakoniwa-px4-win\hakoniwa\apps\rc-custom.py", line 28, in joystick_control
    stick_value = stick_monitor.stick_value(event.axis, event.value)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\buildman\Documents\hakoniwa\Release\2.7.0\hakoniwa-px4-win\hakoniwa\apps\rc_utils\rc_utils.py", line 133, in stick_value
    feature = self.rc_config.get_stick_feature(stick_index)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\buildman\Documents\hakoniwa\Release\2.7.0\hakoniwa-px4-win\hakoniwa\apps\rc_utils\rc_utils.py", line 120, in get_stick_feature
    raise ValueError(f"Feature for stick index {stick_index} not found.")
ValueError: Feature for stick index 5 not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant