aima_phone_catcher/.env.example

26 lines
946 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 默认禁用真实硬件;改为 true 后,服务启动会自动 Enable。
MOTOR_HARDWARE_ENABLED=false
# CANalyst-II 使用 python-can 的 canalystii/PyUSB 直连后端。
# 面板 CAN1=channel 0,CAN2=channel 1;下面配置使用面板 CAN1。
MOTOR_CAN_CHANNEL=0
MOTOR_CAN_DEVICE=0
MOTOR_CAN_BITRATE=1000000
# MS3008 广播模式,现场电机 ID 为 1 和 2。
MOTOR_IDS=1,2
# MS 的 0x280 是开环 raw,不是力矩或 N·m;协议范围为 -850..+850。
# HTTP open:ID1=+400、ID2=-400;HTTP close:ID1=-400、ID2=+400。
# 这两个配置值是绝对值,每台电机的符号由程序固定映射。
MOTOR_OPEN_CONTROL_RAW=400
MOTOR_CLOSE_CONTROL_RAW=400
# HTTP open/close 后持续广播直到 stop;服务正常退出会自动 Stop+Disable。
MOTOR_BROADCAST_FREQUENCY_HZ=10
MOTOR_HTTP_HOST=127.0.0.1
MOTOR_HTTP_PORT=8000
# 绑定非本机地址时必须设置,请使用足够长的随机值。
MOTOR_API_TOKEN=