fix:新增例程
This commit is contained in:
BIN
基础使用/e4.RflySim3D地图场景切换实验/Readme.docx
Normal file
BIN
基础使用/e4.RflySim3D地图场景切换实验/Readme.docx
Normal file
Binary file not shown.
BIN
基础使用/e4.RflySim3D地图场景切换实验/Readme.pdf
Normal file
BIN
基础使用/e4.RflySim3D地图场景切换实验/Readme.pdf
Normal file
Binary file not shown.
9
基础使用/e4.RflySim3D地图场景切换实验/code/PythonCMDDemo.py
Normal file
9
基础使用/e4.RflySim3D地图场景切换实验/code/PythonCMDDemo.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import UE4CtrlAPI as UE4CtrlAPI
|
||||
|
||||
#Create a new MAVLink communication instance, UDP sending port (CopterSim’s receving port) is 20100
|
||||
ue = UE4CtrlAPI.UE4CtrlAPI()
|
||||
|
||||
# sendUE4Cmd: RflySim3D API to modify scene display style
|
||||
# Format: ue.sendUE4Cmd(cmd,windowID=-1), where cmd is a command string, windowID is the received window number (assuming multiple RflySim3D windows are opened at the same time), windowID =-1 means sent to all windows
|
||||
# Augument: RflyChangeMapbyName command means to switch the map (scene), the following string is the map name, here will switch all open windows to the grass map
|
||||
ue.sendUE4Cmd('RflyChangeMapbyName Grasslands')
|
||||
Reference in New Issue
Block a user