Skip to content

Command-Line Reference (Hawkeye)

Every Hawkeye CLI flag with description and default value.

Options

FlagDescriptionDefault
-udp <port>UDP base port for MAVLink telemetry19410
-n <count>Number of vehicles (max 16)1
-mcDefault to multicopter modelon
-fwDefault to fixed-wing modeloff
-tsDefault to tailsitter modeloff
-origin <lat> <lon> <alt>NED origin in degrees (lat, lon) and meters (alt)PX4 SIH default
-w <width>Window width in pixels1280
-h <height>Window height in pixels720
--replay <f1.ulg> [f2.ulg ...]Replay one or more ULog files(none)
--ghost <f1.ulg> [f2.ulg ...]Replay with ghost overlay (non-primary drones at 35% opacity)(none)
-dEnable debug output to stderroff

Port allocation

In live MAVLink mode, each vehicle binds its own UDP socket at base_port + N:

VehiclePort (default base 19410)
Vehicle 119410
Vehicle 219411
Vehicle 319412
......
Vehicle 1619425

Change the base port with -udp. All subsequent vehicle ports increment from there.

PX4 SITL instances use the same convention when launched via sitl_multiple_run.sh, so PX4 instance N and Hawkeye vehicle N automatically match up.

Usage examples

Single vehicle, default SIH

sh
hawkeye

Binds to 19410, default quadrotor model.

Fixed-wing in a larger window

sh
hawkeye -fw -w 1920 -h 1080

Five-vehicle swarm on an alternate base port

sh
hawkeye -n 5 -udp 14540

Binds vehicles 1–5 on 14540–14544.

Custom origin

sh
hawkeye -origin 47.641468 -122.140165 0

Sets the NED reference point (Microsoft campus, Redmond, WA). Useful when PX4 SIH is configured to launch from a non-default location.

Replay a single log

sh
hawkeye --replay flight.ulg

Multi-drone replay

sh
hawkeye --replay drone1.ulg drone2.ulg drone3.ulg

Up to 16 files. See ULog Replay for details.

Ghost overlay: compare two flights

sh
hawkeye --ghost before.ulg after.ulg

First file is the primary drone (fully opaque). All other files render at 35% opacity with color tint. Useful for overlaying a baseline flight against a tuning experiment.

Released under the BSD-3-Clause License.