- use QGround Control, connect PC to Pixkawk 4 via USB
- select Vehicle Setup tab > Parameters > Tools > Load from file...
- navigate to and select px4-hitl-simulation.params
- select Tools > Reboot vehicle > OK
- repeat steps 2 to 4 once again
- disconnect USB and close QGC
- open iris.sdf (at Firmware/Tools/sitl_gazebo/models/iris/)
- scroll down to
<plugin name='mavlink_interface' filename='libgazebo_mavlink_interface.so'>section - change
<serialEnabled>0</serialEnabled>
<hil_mode>0</hil_mode>to
<serialEnabled>1</serialEnabled>
<hil_mode>1</hil_mode>- save and close iris.sdf
- (optional) open iris.world (at Firmware/Tools/sitl_gazebo/worlds)
5.1. comment this block to remove asphalt background by change
<include>
<uri>model://asphalt_plane</uri>
</include>to
<!--<include>
<uri>model://asphalt_plane</uri>
</include>-->5.2. save and close iris.world
- in PC
- connect to Pixhawk via USB
- run command
gazebo [path/to/Firmware]/Tools/sitl_gazebo/world/iris.world
- in onboard computer (jetson)
- terminal 1
# connect jetson to pixhawk cd ros/bash/script/bash sh connect_px4.sh
- termial 2 run code
- ...
- use RC to ARM, switch FLIGHT MODE and CONTROL drone in simulation
- use QGround Control, connect PC to Pixkawk 4 via USB
- select Vehicle Setup tab > Parameters > Tools > Load from file...
- navigate to and select px4-practice.params
- select Tools > Reboot vehicle > OK
- repeat steps 2 to 4 once again
- disconnect USB and close QGC
- follow flight test guide