2036.6.10小更新
This commit is contained in:
@@ -5,7 +5,7 @@ from pymavlink import mavutil
|
|||||||
|
|
||||||
|
|
||||||
class DroneController:
|
class DroneController:
|
||||||
def __init__(self, connection_string='/dev/ttyUSB0', baud=115200):
|
def __init__(self, connection_string='udpout:127.0.0.1:14550', baud=115200):
|
||||||
self.connection_string = connection_string
|
self.connection_string = connection_string
|
||||||
self.baud = baud
|
self.baud = baud
|
||||||
self.master = None
|
self.master = None
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ class UAVControlLoop:
|
|||||||
""" 🛸 无人机飞控闭环控制核心 """
|
""" 🛸 无人机飞控闭环控制核心 """
|
||||||
|
|
||||||
def __init__(self, fc_cfg, pid_y_cfg, pid_z_cfg):
|
def __init__(self, fc_cfg, pid_y_cfg, pid_z_cfg):
|
||||||
connection_string = fc_cfg.get("connection_string", "udpout:172.0.0.1:14550")
|
connection_string = fc_cfg.get("connection_string", "udpout:127.0.0.1:14550")
|
||||||
baud_rate = fc_cfg.get("baud_rate", 57600)
|
baud_rate = fc_cfg.get("baud_rate", 57600)
|
||||||
|
|
||||||
# 初始化控制驱动端
|
# 初始化控制驱动端
|
||||||
|
|||||||
Reference in New Issue
Block a user