添加xbox手柄和飞行控制

This commit is contained in:
2025-12-08 11:44:12 +08:00
commit 15091ad9b6
15 changed files with 3163 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
from dataclasses import dataclass
from lerobot.teleoperators import TeleoperatorConfig
@dataclass
@TeleoperatorConfig.register_subclass("flight_stick")
class FlightStickConfig(TeleoperatorConfig):
#控制器索引
index: int = 0
#定义启动按钮
start_button: str = "button_7"
#定义精细控制模式切换按钮
fine_control_button: str = "button_10"
#定义夹爪开按钮
gripper_open_button: str = "button_1"
#定义夹爪关按钮
gripper_close_button: str = "button_0"
#定义方向帽子键
hat_button: int = 0
#RX旋转映射
RX_MAP: str = "button_4_5"
#RY旋转映射
RX_MAP: str = "button_2_3"