modify: mainOrchestrator.py 改善顯示介面
add: serialManager.py 添加Serial 連結功能 (未完成)
This commit is contained in:
@@ -19,7 +19,7 @@ from ..fc_network_adapter import mavlinkVehicleView as mvv
|
||||
|
||||
# ====================== 分割線 =====================
|
||||
|
||||
test_item = 10
|
||||
test_item = 1
|
||||
running_time = 3
|
||||
|
||||
|
||||
@@ -31,7 +31,24 @@ print('test_item : ', test_item)
|
||||
測試項 1X 表示 mavlink_object 的功能 測試連線的能力
|
||||
'''
|
||||
|
||||
if test_item == 10:
|
||||
if test_item == 1:
|
||||
print('===> Start of Program .Test ', test_item)
|
||||
|
||||
connection_string="udp:127.0.0.1:14591"
|
||||
mavlink_socket1 = mavutil.mavlink_connection(connection_string)
|
||||
# mavlink_object1 = mo.mavlink_object(mavlink_socket1)
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
print("mark A")
|
||||
|
||||
# print("Socket IP:", mavlink_socket1.target_system)
|
||||
print("Socket port:", mavlink_socket1.port.getsockname())
|
||||
|
||||
# print("=== ", dir(mavlink_socket1.port))
|
||||
|
||||
|
||||
elif test_item == 10:
|
||||
# 需要開啟一個 ardupilot 的模擬器
|
||||
# 測試 mavlink_object 放入 ring buffer 的應用
|
||||
print('===> Start of Program .Test ', test_item)
|
||||
|
||||
Reference in New Issue
Block a user