Post · 27 min read· pp. 103–128

Paparazzi Center tools

These are the tools of the Add tool menu of the Paparazzi Center, one per file in conf/tools. Most of them can also be started from a terminal with the options listed below.

The description and options of each tool come from its --help text, stored in the <doc> block of its xml file. After changing the options of a tool, update that block with tests/tools/test_tools.py --update (make test_tools checks that they match). A <description> written by hand in the <doc> block is kept.

Paparazzi tools

ToolDescription
Attitude VisualizerShows the attitude of an aircraft as a rotating cube (OpenGL).
Crazyradio/IVY bridgeBridge between a Crazyflie connected to a Crazyradio and the Ivy bus, with PPRZLINK messages.
Data LinkConnects a hardware modem (usually USB/serial) or a UDP link with the Ivy bus: telemetry from the aircraft to the ground tools, and the uplink messages back.
Display Objects from NatnetReceives marker sets from an OptiTrack system (NatNet) and shows a convex hull of each selected object in the GCS (SHAPE message).
Environment SimulatorWorld environment for the simulation of one or more aircraft: time scale, wind speed and direction, updraft and GPS on/off, set with sliders and sent on the Ivy bus (WORLD_ENV message) on every change and every 5 s.
Environment Simulator (Legacy)World environment (time, wind, ...) for multi-aircraft simulation (OCaml version).
FC RotorcraftFormation Control for Rotorcrafts
GazeboStarts the Gazebo GUI with the Paparazzi model paths (gzclient for Gazebo Classic, otherwise the gz-sim GUI).
GPSd position displayReads the position of a GPS receiver through gpsd and moves a waypoint of an aircraft to it (MOVE_WP).
Hardware in the LoopHardware in the loop simulation: the simulator (pprzsim-launch -t hitl) runs the flight model on the computer, the autopilot runs on the real board connected to it.
HydrogenStatusPlots the hydrogen tank pressure from the PAYLOAD messages of the fuel cell.
IridiumDialerIridium Link Controller: call the air modem and bridge the call data to the Paparazzi UDP link.
Ivy2NmeaSends the position of an aircraft from the Ivy bus as NMEA GPRMC and GPGGA sentences on a serial port.
Ivy2UdpForwards telemetry messages from the Ivy bus to a UDP connection.
JoystickForwards the events of a USB input device (joystick, gamepad) to the Ivy bus, as described in an xml file of actions.
Link CombinerLink_Combiner listens to the ivy messages received from multiple Link agents (set each of their -id options to a unique number), and sends a combined stream of messages to the other agents.
Log File PlayerReplays a recorded log on the Ivy bus, or as binary messages on a serial port.
Log PlotterPlots the messages of recorded log files.
Matlab/PPRZ/Natnet bridgeForwards rigid body positions and orientations from NatNet to Matlab/Simulink over UDP, and forwards the commands received from Simulink over Ivy.
MessagesShows the messages on the Ivy bus with their fields and values.
Messages (Legacy)Shows the last value of every message on the Ivy bus (OCaml version).
Messages (Python)Show the last value of every message on the Ivy bus
Module CreatorGraphical helper to create a new module: its xml file and C source and header.
Moving Base SimMoving base simulator
NatNet3Forwards the rigid bodies of an OptiTrack motion capture system (NatNet 3) to the aircraft over Ivy, as ENU position and attitude.
NederdroneStatusNederdrone fuel cell, battery and ESC status
NTRIP2ivyForwards RTCM3 corrections from an NTRIP caster or from a mixed UBX/RTCM serial input to the aircraft over Ivy.
OpenSky-Network IntrudersGets the air traffic around the aircraft from the OpenSky Network and sends INTRUDER messages to the Ivy bus for display in the GCS.
Optitrack Distance CounterDistance counter: distance flown (INS messages) and elapsed time (ROTORCRAFT_STATUS) shown from the Ivy bus.
PprzLink ProxyLets several simulated aircraft talk to each other and to the GCS with PPRZLINK v2 over UDP: maps the ports of each agent to its aircraft id.
Real-time PlotterPlots message fields from the Ivy bus in real time.
Real-time Plotter (Python)Plots message fields from the Ivy bus in real time (Python version).
RotWing3D3D view (Open3D) of a rotating wing aircraft from its attitude, controller and actuator telemetry.
RotWingStatusRotwing Status Monitor
rtcm2ivyReads RTCM3 messages from a GPS base station receiver (e.g.
RtpViewerShows the RTP/JPEG video stream of an aircraft (module video_rtp_stream) in a window.
ServerReceives the telemetry of all aircraft from the links, writes the log files and sends the state of each aircraft to the GCS and the other tools.
SimulatorStarts the simulation of an aircraft: nps, or sim (basic fixed-wing simulator).
UnifiedMoCapRoutes the data of a motion capture system (OptiTrack) to the aircraft over Ivy, or to the console.
Video to GCSShow the RTP/JPEG video of an aircraft (module video_rtp_stream) in the PprzGCS video panel, or in a GStreamer window of its own.
Weather StationReads a Davis VantagePro weather station on a serial port and sends ambient pressure, temperature, wind speed and direction to the Ivy bus.
WindWind Tool: estimate the wind from ground speed and airspeed

Attitude Visualizer

Command: sw/tools/attitude_viz.py (conf/tools/attitude_visualizer.xml)

Shows the attitude of an aircraft as a rotating cube (OpenGL).

default
usage: attitude_viz.py [-t title] [-r rotate_theta] [-h]
OptionDescription
-t, --titleset window title
-r, --rotate_thetarotate the quaternion by n degrees over the pitch axis (default: 0)

Crazyradio/IVY bridge

Command: sw/ground_segment/python/bitcraze/crazyradio2ivy.py (conf/tools/crazyradio2ivy.xml)

Bridge between a Crazyflie connected to a Crazyradio and the Ivy bus, with PPRZLINK messages.

Needs cflib (pip3 install cflib) and the Crazyflie firmware 2019.09; firmwares from 2024 on do not work.

default
usage: crazyradio2ivy.py [-h] [-a ADDRESS] [-c CHANEL] [-u URI] [-b BUS] [-s] [-v]
OptionDescription
-a ADDRESS, --address ADDRESSURI address of Crazyflie
-c CHANEL, --chanel CHANELURI chanel of Crazyflie (full URI will be 'radio://0/80/2M'
-u URI, --uri URIURI of Crazyflie (chanel option will not be effective)
-b BUS, --bus BUSIvy bus [default to system IVY bus]
-s, --scanScan available Crazyflie at startup
-v, --verbosedisplay debug messages

Command: sw/ground_segment/tmtc/link (conf/tools/data_link.xml)

Started by the Center with: -d /dev/ttyUSB0

Connects a hardware modem (usually USB/serial) or a UDP link with the Ivy bus: telemetry from the aircraft to the ground tools, and the uplink messages back.

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-d <port>Default is /dev/ttyUSB0
-fgEnable trafic statistics on standard output
-noac_infoDisables AC traffic info (uplink).
-nouplinkDisables the uplink (from the ground to the aircraft).
-s <baudrate>Default is 9600
-ch <channel>Default does not change configuration.
-hfcEnable UART hardware flow control (CTS/RTS)
-local_timestampAdd local timestamp to messages sent over ivy
-transport <transport>Available protocols are modem,pprz,pprz2 and xbee. Default is pprz
-udpListen a UDP connection on <udp_port>
-udp_port <UDP port>Default is 4242
-udp_uplink_port <UDP uplink port>Default is 4243
-udp_broadcastBroadcast on <udp_broadcast_addr>, e.g. for multiple simulated aircrafts
-udp_broadcast_addr <addr>Broadcast address. Default is 127.255.255.255
-uplinkDeprecated (now default)
-xbee_addr <my_addr>(256)
-xbee_retries <nb retries>(10)
-xbee_868Enables the 868 protocol
-redlinkSets whether the link is a redundant link. Set this flag and the id flag to use multiple links
-id <id>Sets the link id. If multiple links are used, each must have a unique id. Default is -1
-status_period <period>Sets the period (in ms) of the LINK_REPORT status message. Default is 1000
-ping_period <period>Sets the period (in ms) of the PING message sent to aircrafs. Default is 5000
-ac_timeout <time>Sets the time (in ms) after which an aircraft is regarded as dead/off if no messages are received. Default is 5000ms, set to zero to disable.

Display Objects from Natnet

Command: sw/ground_segment/python/natnet3.x/display_objects.py (conf/tools/display_objects.xml)

Receives marker sets from an OptiTrack system (NatNet) and shows a convex hull of each selected object in the GCS (SHAPE message).

default
usage: display_objects.py [-h] -n NAME -r REF [-c COLOR] [-sn] [-t TIMEOUT] [-th THRESHOLD] [-b IVY_BUS] [-s SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-v] [-vv] [-f FREQ] [-rp REFRESH_PERIOD] [-up {y_up,z_up}] [-o]
OptionDescription
-n NAME, --name NAMERegular expression of the names of the object to display
-r REF, --ref REFReference position in lat,long format in degrees
-c COLOR, --color COLORDisplay color
-sn, --show_nameDisplay the name of the object
-t TIMEOUT, --timeout TIMEOUTTimeout for removing object from scene
-th THRESHOLD, --threshold THRESHOLDThreshold distance to consider a moving object in meter
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port
-s SERVER, --server SERVERNatNet server IP address
-m MULTICAST, --multicast_addr MULTICASTNatNet server multicast address
-dp DATA_PORT, --data_port DATA_PORTNatNet server data socket UDP port
-cp COMMAND_PORT, --command_port COMMAND_PORTNatNet server command socket UDP port
-v, --verbosedisplay debug messages
-vv, --very_verbosedisplay debug messages and optitrack debug messages
-f FREQ, --freq FREQtransmit frequency
-rp REFRESH_PERIOD, --refresh_period REFRESH_PERIODrefresh period at which message is sent event if the object is not moving
-up {y_up,z_up}, --up_axis {y_up,z_up}Optitrack Up axis: y_up or z_up.
-o, --old_natnetChange the NatNet version to 2.9

Environment Simulator

Command: sw/simulator/gaia.py (conf/tools/environment_simulator.xml)

World environment for the simulation of one or more aircraft: time scale, wind speed and direction, updraft and GPS on/off, set with sliders and sent on the Ivy bus (WORLD_ENV message) on every change and every 5 s.

default
usage: gaia.py [-h]

Environment Simulator (Legacy)

Command: sw/simulator/gaia (conf/tools/environment_simulator__legacy_.xml)

World environment (time, wind, ...) for multi-aircraft simulation (OCaml version).

OptionDescription
-b BusDefault is 127.255.255.255:2010
-tSet time scale (default: 1.0)
-wSet wind speed (0-30m/s)
-dSet wind direction 0-359 deg
-uSet wind updraft (-10 to 10m/s)
-gTurn off GPS

FC Rotorcraft

Command: sw/ground_segment/python/multi/fc_rotor/fc_rotor.py (conf/tools/fc_rotor.xml)

Formation Control for Rotorcrafts

default
usage: fc_rotor.py [-h] [-f FREQ] [-gr] [-igf] [-v] config_file
OptionDescription
-f FREQ, --freq FREQcontrol frequency
-gr, --use_ground_refuse GROUND_REF messages instead of INS messages
-igf, --ignore_geo_fenceignore the geo fence limits
-v, --verbosedisplay debug messages

Gazebo

Command: sw/tools/gzclient_launcher.sh (conf/tools/gazebo.xml)

Starts the Gazebo GUI with the Paparazzi model paths (gzclient for Gazebo Classic, otherwise the gz-sim GUI). It connects to the Gazebo server running in the NPS simulator.

default
usage: gzclient_launcher.sh

GPSd position display

Command: sw/ground_segment/tmtc/gpsd2ivy (conf/tools/gpsd_position_display.xml)

Reads the position of a GPS receiver through gpsd and moves a waypoint of an aircraft to it (MOVE_WP).

default
Usage: gpsd2ivy [options]
OptionDescription
-v --verbosePrint verbose information
--server <gpsd server>e.g. localhost
--port <gpsd port>e.g. 2947
--ivy_bus <ivy bus>e.g. 127.255.255.255
--ac <ac_id>e.g. 17
--wp <wp_id>e.g. 2

Hardware in the Loop

Command: sw/simulator/pprzsim-launch (conf/tools/hardware_in_the_loop.xml)

Started by the Center with: -t hitl -a @AIRCRAFT

Hardware in the loop simulation: the simulator (pprzsim-launch -t hitl) runs the flight model on the computer, the autopilot runs on the real board connected to it. Same options as the Simulator.

default
Usage: pprzsim-launch -a <ac_name> -t <sim_type> [sim arguments]
OptionDescription
-a NAME, --aircraft=NAMEAircraft name to use
-t SIMTYPE, --type=SIMTYPESimulator type to start: sim or nps
-b BUS, --ivy_bus=BUSIvy Bus broadcast address (127.255.255.255)
-f HOST, --fg_host=HOSTHost for FlightGear visualization (e.g. 127.0.0.1)
-v,--verbose
--norcHide the simulated RC
-p PORT, --fg_port=PORTPort on FlightGear host to connect to (Default: 5501)
-P PORT_IN, --fg_port_in=PORT_INPort to receive from FlightGear host (Default: 5502)
--fg_time_offset=SECFlightGear time offset in seconds (e.g. 21600 for 6h)
-j IDX, --js_dev=IDXUse joystick with specified index (e.g. 0)
--spektrum_dev=DEVSpektrum device to use (e.g. /dev/ttyUSB0)
--rc_script=NONumber of RC script to use
--time_factor=factorTime factor (default 1.0)
--fg_fdmUse FlightGear native-fdm protocol instead of native- gui
--nodisplayDon't send NPS Ivy messages

HydrogenStatus

Command: sw/ground_segment/python/fuelcell/fuel_tank_plotter.py (conf/tools/fuelcell.xml)

Plots the hydrogen tank pressure from the PAYLOAD messages of the fuel cell.

default
usage: fuel_tank_plotter.py [-h]

IridiumDialer

Command: sw/tools/iridium/iridium_link.py (conf/tools/iridiumdialer.xml)

Iridium Link Controller: call the air modem and bridge the call data to the Paparazzi UDP link.

default
usage: iridium_link.py [-h] [-d DEVICE] [-b BAUD] [-n NUMBER] [--pin1 PIN1] [--pin2 PIN2] [--udp_in UDP_IN] [--udp_out UDP_OUT]
OptionDescription
-d DEVICE, --device DEVICEserial device of the ground modem (default /dev/ttyUSB0)
-b BAUD, --baud BAUDbaud rate (default 19200)
-n NUMBER, --number NUMBERphone number of the air modem (default 00881234567890)
--pin1 PIN1SIM PIN1 code (default 1111)
--pin2 PIN2SIM PIN2 code (default 2222)
--udp_in UDP_INUDP port receiving data for the aircraft (default 4243)
--udp_out UDP_OUTUDP port the aircraft data is broadcast to (default 4242)

Ivy2Nmea

Command: sw/ground_segment/tmtc/ivy2nmea (conf/tools/ivy2nmea.xml)

Started by the Center with: --port /dev/ttyUSB1 --id 1

Sends the position of an aircraft from the Ivy bus as NMEA GPRMC and GPGGA sentences on a serial port.

default
Usage: ivy2nmea [options]
OptionDescription
-v --verbosePrint verbose information
--id <ac_id>e.g. 1
--port <gps out port>e.g. /dev/ttyS0
--ivy_bus <ivy bus>e.g. 127.255.255.255

Ivy2Udp

Command: sw/ground_segment/tmtc/ivy2udp (conf/tools/ivy2udp.xml)

Started by the Center with: -h 192.168.0.2

Forwards telemetry messages from the Ivy bus to a UDP connection.

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-h <remote host>Default is 85.214.48.162
-id <aircraft id>Default is 7
-p <remote port>Default is 4242
-dp <listening port>Default is 4243
-payload_onlyOnly forward the bytes of PAYLOAD messages; UDP packets received are sent as PAYLOAD_COMMAND

Joystick

Command: sw/ground_segment/joystick/input2ivy (conf/tools/joystick.xml)

Started by the Center with: -ac @AIRCRAFT xbox_gamepad.xml

Forwards the events of a USB input device (joystick, gamepad) to the Ivy bus, as described in an xml file of actions.

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-ac <A/C name>
-d <device index>
-vVerbose mode (useful to identify the channels of an input device)
-id Joystick ID, from 0-255.Each joystick requires a unique ID in a multiple joystick configuration.
-c Check all axis moved for correct initilization before starting normal behavior-

Command: sw/ground_segment/python/redundant_link/link_combiner.py (conf/tools/link_combiner.xml)

Link_Combiner listens to the ivy messages received from multiple Link agents (set each of their -id options to a unique number), and sends a combined stream of messages to the other agents.

default
usage: link_combiner.py [-h] [-b BUFFER_SIZE]
OptionDescription
-b BUFFER_SIZE, -buffer_size BUFFER_SIZE, --buffer_size BUFFER_SIZEThe number of elements messages to be stored in the circular buffer for each link

Log File Player

Command: sw/logalizer/play (conf/tools/log_file_player.xml)

Replays a recorded log on the Ivy bus, or as binary messages on a serial port.

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-d <port>Default is /dev/ttyUSB0
-oOutput binary messages on serial port
-s <baudrate>Default is 9600
-shfcEnable UART hardware flow control (CTS/RTS)

Log Plotter

Command: sw/logalizer/logplotter (conf/tools/log_plotter.xml)

Plots the messages of recorded log files.

default
Usage: logplotter <log files>
OptionDescription
-export_csvExport in CSV in batch mode according to saved preferences (conf/%gconf.xml)
-vVerbose

Matlab/PPRZ/Natnet bridge

Command: sw/ground_segment/python/matlab2pprz/matlab2pprz.py (conf/tools/matlab2pprz.xml)

Forwards rigid body positions and orientations from NatNet to Matlab/Simulink over UDP, and forwards the commands received from Simulink over Ivy.

default
usage: matlab2pprz.py [-h] [-ac rigid_id ac_id udp_out] [-b IVY_BUS] [-ns NATNET_SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-ss SIMULINK_SERVER] [-sp SIMULINK_IN_PORT] [-v]
OptionDescription
-ac rigid_id ac_id udp_outtuple of rigid body, A/C id and UDP output port to Simulink (multiple possible) (default: None)
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port (default: None)
-ns NATNET_SERVER, --natnet_server NATNET_SERVERNatNet server IP address (default: 127.0.0.1)
-m MULTICAST, --multicast_addr MULTICASTNatNet server multicast address (default: 239.255.42.99)
-dp DATA_PORT, --data_port DATA_PORTNatNet server data socket UDP port (default: 1511)
-cp COMMAND_PORT, --command_port COMMAND_PORTNatNet server command socket UDP port (default: 1510)
-ss SIMULINK_SERVER, --simulink_server SIMULINK_SERVERSimulink server IP address (default: 127.0.0.1)
-sp SIMULINK_IN_PORT, --simulink_in_port SIMULINK_IN_PORTSimulink input port (default: 9090)
-v, --verbosedisplay debug messages (default: False)

Messages

Command: sw/ground_segment/messages-gui/messages.py (conf/tools/messages.xml)

Shows the messages on the Ivy bus with their fields and values.

default
usage: messages.py [-h]

Messages (Legacy)

Command: sw/ground_segment/tmtc/messages (conf/tools/messages_legacy.xml)

Shows the last value of every message on the Ivy bus (OCaml version).

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-cclass name
-timestampBind to timestampped messages
-forceForce waiting on all messages, not only ALIVE for telemetry class (increase network load)
-g <geometry>Set the window geometry ( '500x500+100+100' )

Messages (Python)

Command: sw/ground_segment/python/messages_app/messagesapp.py (conf/tools/messages__python_.xml)

Show the last value of every message on the Ivy bus

default
usage: messagesapp.py [-h] [-b IVY_BUS] [-c CLASSES] [-force] [-timestamp] [-g GEOMETRY]
OptionDescription
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port [default to system IVY bus]
-c CLASSES, --class CLASSESclass[:sender] to show, can be repeated (telemetry:* is always shown, sender * = one tab per sender)
-force, --forceshow every telemetry sender, not only those that sent ALIVE
-timestamp, --timestampignored, for compatibility
-g GEOMETRY, --geometry GEOMETRYwindow geometry, e.g. 500x500+100+100

Module Creator

Command: sw/tools/create_module/create_mod_qt.py (conf/tools/module_creator.xml)

Graphical helper to create a new module: its xml file and C source and header.

default
usage: create_mod_qt.py [-h]

Moving Base Sim

Command: sw/ground_segment/python/moving_base/moving_base.py (conf/tools/moving_base.xml)

Moving base simulator

default
usage: moving_base.py [-h] [-s SPEED] [-he HEADING] [-t TURN_RATE] [-i ID]
OptionDescription
-s SPEED, --speed SPEEDSpeed of the ship (m/s).
-he HEADING, --heading HEADINGHeading of the ship (deg).
-t TURN_RATE, --turn_rate TURN_RATETurn rate of the ship (deg/s).
-i ID, --id IDAircraft ID.

NatNet3

Command: sw/ground_segment/python/natnet3.x/natnet2ivy.py (conf/tools/natnet3.xml)

Forwards the rigid bodies of an OptiTrack motion capture system (NatNet 3) to the aircraft over Ivy, as ENU position and attitude.

The frame is set by the side of the test area that the long edge of the calibration tool pointed at (--long_edge), the side of the x/east axis (--x_side or --x_angle_from_right) and the side the nose of the drone pointed at when the rigid body was created (--ac_nose).

Examples:

default
  ENAC default: ./natnet2ivy.py --up_axis z_up --long_edge near --x_side right --ac_nose far -ac 0 0
  TU Delft: ./natnet2ivy.py --long_edge right --x_side right --ac_nose far -ac 0 0
  True ENU at TU Delft: ./natnet2ivy.py --long_edge right --x_angle_from_right -23.0 --ac_nose far -ac 0 0
default
usage: natnet2ivy.py [-h] -le {left,far,right,near} (-xs {left,far,right,near} | -xa X_ANGLE) [-up {y_up,z_up}] -an {left,far,right,near} -ac rigid_id ac_id [-b IVY_BUS] [-s SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-v] [-f FREQ] [-gr] [-vs VEL_SAMPLES] [-rg] [-sm] [-o]
OptionDescription
-le {left,far,right,near}, --long_edge {left,far,right,near}Side of the test area that the long edge of the calibration tool was pointing at
-xs {left,far,right,near}, --x_side {left,far,right,near}Side that the x/east axis of the resulting ENU frame should point to.
-xa X_ANGLE, --x_angle_from_right X_ANGLERight-hand rotation in degrees of the x/east-axis around the up-axis, where 0.0 means x/east is pointing to the right
-up {y_up,z_up}, --up_axis {y_up,z_up}Optitrack Up axis: y_up or z_up.
-an {left,far,right,near}, --ac_nose {left,far,right,near}Side of the test area that the nose of the drone was pointing at when definition the rigid body
-ac rigid_id ac_idpair of rigid body and A/C id (multiple possible)
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port
-s SERVER, --server SERVERNatNet server IP address
-m MULTICAST, --multicast_addr MULTICASTNatNet server multicast address
-dp DATA_PORT, --data_port DATA_PORTNatNet server data socket UDP port
-cp COMMAND_PORT, --command_port COMMAND_PORTNatNet server command socket UDP port
-v, --verbosedisplay debug messages
-f FREQ, --freq FREQtransmit frequency
-gr, --ground_refalso send the GROUND_REF message
-vs VEL_SAMPLES, --vel_samples VEL_SAMPLESamount of samples to compute velocity (should be greater than 2)
-rg, --remote_gpsuse the old REMOTE_GPS_LOCAL message
-sm, --smallenable the EXTERNAL_POSE_SMALL message instead of the full
-o, --old_natnetChange the NatNet version to 2.9
--up_axis {y_up,z_up}no parameter is equal to y_up
--long_edge{left,far,right,near}
--x_side{left,far,right,near}
--x_angle_from_rightX_ANGLE_DEGREES
--ac_nose{left,far,right,near}

NederdroneStatus

Command: sw/ground_segment/python/fuelcell/fuel_cell.py (conf/tools/nederdrone_status.xml)

Nederdrone fuel cell, battery and ESC status

default
usage: fuel_cell.py [-h] [-b IVY_BUS]
OptionDescription
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address:port (default: $IVY_BUS or the system default)

NTRIP2ivy

Command: sw/ground_segment/misc/ntrip2ivy.py (conf/tools/ntrip2ivy.xml)

Forwards RTCM3 corrections from an NTRIP caster or from a mixed UBX/RTCM serial input to the aircraft over Ivy.

default
usage: ntrip2ivy.py [-h] [-m MOUNTPOINT] [--url URL] [--username USERNAME] [--password PASSWORD] [-d RTK_BASE] [-b RTK_BASE_BAUDRATE] [--no-ivy] [--bus BUS] [--serial-output SERIAL_OUTPUT] [--serial-output-baudrate SERIAL_OUTPUT_BAUDRATE] [-p PACKET_SIZE] [--chunk-size CHUNK_SIZE] [--reconnect-delay RECONNECT_DELAY] [--fragment-delay FRAGMENT_DELAY] [--zero-df393 [MSG_ID ...]] [-v]
OptionDescription
-m MOUNTPOINT, --mountpoint MOUNTPOINTNTRIP mountpoint (default: ENFA)
--url URLNTRIP caster URL (default: https://crtk.net:443)
--username USERNAMENTRIP username (default: centipede)
--password PASSWORDNTRIP password
-d RTK_BASERead mixed UBX/RTCM input from this RTK base serial port instead of NTRIP
-b RTK_BASE_BAUDRATERTK base baudrate (default: 9600)
--no-ivyDo not forward RTCM messages to Ivy
--bus BUSIvy bus address
--serial-output SERIAL_OUTPUTOptional serial output receiving raw RTCM frames
--serial-output-baudrate SERIAL_OUTPUT_BAUDRATESerial output baudrate (default: 9600)
-p PACKET_SIZE, --packet-size PACKET_SIZEPaparazzi payload size
--chunk-size CHUNK_SIZEGNSS parser read buffer size
--reconnect-delay RECONNECT_DELAYDelay before reconnecting
--fragment-delay FRAGMENT_DELAYDelay between Ivy fragments
--zero-df393 [MSG_ID ...]Set the MSM DF393 multiple-message bit to 0 for these message IDs and recompute the RTCM CRC before forwarding (default: 1097; use --zero-df393 with no IDs to disable)
-v, --verbosePrint forwarded/skipped RTCM messages

OpenSky-Network Intruders

Command: sw/ground_segment/python/opensky-network/opensky.py (conf/tools/opensky_network_intruders.xml)

Gets the air traffic around the aircraft from the OpenSky Network and sends INTRUDER messages to the Ivy bus for display in the GCS. Needs the opensky_api Python package.

default
usage: opensky.py [-h] [-p PERIOD] [-m MARGIN] [-t TIMEOUT] [-v]
OptionDescription
-p PERIOD, --period PERIODupdate period
-m MARGIN, --margin MARGINmargin in degree to define the bounding box
-t TIMEOUT, --timeout TIMEOUTtimeout to remove A/C
-v, --verbosedisplay debug messages

Optitrack Distance Counter

Command: sw/ground_segment/python/distance_counter/dist.py (conf/tools/optitrack_distance_counter.xml)

Distance counter: distance flown (INS messages) and elapsed time (ROTORCRAFT_STATUS) shown from the Ivy bus.

dist.py is part of the paparazzi-uav project.

default
usage: dist.py [-h] [-b IVY_BUS]
OptionDescription
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port [default: system Ivy bus]

Command: sw/ground_segment/tmtc/pprzlink_proxy.py (conf/tools/pprzlink_proxy.xml)

Lets several simulated aircraft talk to each other and to the GCS with PPRZLINK v2 over UDP: maps the ports of each agent to its aircraft id.

default
usage: pprzlink_proxy.py [-h] [--gcs GCS_CONF] [--ac ACS_CONF] [--addr ADDRESS] [--script SCRIPT] [-v]
OptionDescription
--gcs GCS_CONFGCS configuration with format [ID:][IP:][PORT_OUT:PORT_IN]
--ac ACS_CONFAC configuration with format ID:[IP:]PORT_OUT:PORT_IN (multiple possible)
--addr ADDRESSSet default IP address
--scriptSCRIPT
-v, --verbosedisplay debug messages

Real-time Plotter

Command: sw/logalizer/plotter (conf/tools/real_time_plotter.xml)

Plots message fields from the Ivy bus in real time.

OptionDescription
-b <ivy bus>Default is 127.255.255.255:2010
-c <curve>Add a curve (e.g. '*:telemetry:BAT:voltage') or constant (e.g. '1.5'). The curve is inserted into the last open window (cf -n option)
-t <title>Set the last opened window title (cf -n option)
-g <geometry>Set the last opened window geometry ( '500x500+100+100' )
-nOpen another window for the next curves
-m <size>Memory size (default 500)
-u <time>Update time in s (default 0.50)

Real-time Plotter (Python)

Command: sw/logalizer/rt_plotter.py (conf/tools/real_time_plotter__python_.xml)

Plots message fields from the Ivy bus in real time (Python version).

default
usage: rt_plotter.py [-h]

RotWing3D

Command: sw/ground_segment/python/rotwing_visualizer/rotwing_vis_o3d_app.py (conf/tools/rotwing_3d.xml)

3D view (Open3D) of a rotating wing aircraft from its attitude, controller and actuator telemetry.

default
usage: rotwing_vis_o3d_app.py [-h]

RotWingStatus

Command: sw/ground_segment/python/rotwing_mon/rotwing_mon.py (conf/tools/rotwing_status.xml)

Rotwing Status Monitor

default
usage: rotwing_mon.py [-h] [-s SPEECH]
OptionDescription
-s SPEECH, --speech SPEECHRotwing status viewer speech

rtcm2ivy

Command: sw/ground_segment/misc/rtcm2ivy (conf/tools/rtcm2ivy.xml)

Reads RTCM3 messages from a GPS base station receiver (e.g. u-blox M8P) on a serial port and forwards them over Ivy for DGPS and RTK.

default
Usage: rtcm2ivy [options]
OptionDescription
-v, --verboseVerbosity enabled
-l, --loggerSave RTCM3 messages to log
-d <device>The GPS device(default: /dev/ttyACM0)
-b <baud_rate>The device baud rate(default: B9600)
-p <packet_size>The payload size (default:100, max:249))

RtpViewer

Command: sw/tools/rtp_viewer/rtp_viewer.py (conf/tools/rtpviewer.xml)

Started by the Center with: -p 5000 -s 0.75 -r 3

Shows the RTP/JPEG video stream of an aircraft (module video_rtp_stream) in a window.

default
usage: rtp_viewer.py [-h] [-p PORT] [-s SCALE] [-r ROTATE]
OptionDescription
-p PORT, --port PORTThe port number to open for the RTP stream (5000 or 6000)
-s SCALE, --scale SCALEThe scaling factor to apply to the incoming video stream (default: 1)
-r ROTATE, --rotate ROTATEThe number of clockwise 90deg rotations to apply to the stream [0-3] (default: 0)

Server

Command: sw/ground_segment/tmtc/server (conf/tools/server.xml)

Receives the telemetry of all aircraft from the links, writes the log files and sends the state of each aircraft to the GCS and the other tools.

OptionDescription
-b BusDefault is 127.255.255.255:2010
-httpSend http: URLs (default is file:)
-hostname <hostname>Set the address for the http server
-port <port>Set http port for serving XML and KML files (default is 8889)
-kmlEnable KML file updating
-kml_no_httpKML without web server (local files only)
-nDisable log
-timestampBind on timestampped messages
-no_md5_checkDisable safety matching of live and current configurations
-log_nameName for output log (Time stamp will be
-udp_json_stream_addrAddress of the server to stream udp JSON telemetry messages (default is localhost)
-udp_json_stream_portPort of the server to stream udp JSON telemetry messages (default is 9870)
-udp_json_stream_disableDisable udp JSON stream
-replay_old_logEnable aircraft registering on PPRZ_MODE messages

Simulator

Command: sw/simulator/pprzsim-launch (conf/tools/simulator.xml)

Started by the Center with: -a @AIRCRAFT

Starts the simulation of an aircraft: nps, or sim (basic fixed-wing simulator).

default
Usage: pprzsim-launch -a <ac_name> -t <sim_type> [sim arguments]
OptionDescription
-a NAME, --aircraft=NAMEAircraft name to use
-t SIMTYPE, --type=SIMTYPESimulator type to start: sim or nps
-b BUS, --ivy_bus=BUSIvy Bus broadcast address (127.255.255.255)
-f HOST, --fg_host=HOSTHost for FlightGear visualization (e.g. 127.0.0.1)
-v,--verbose
--norcHide the simulated RC
-p PORT, --fg_port=PORTPort on FlightGear host to connect to (Default: 5501)
-P PORT_IN, --fg_port_in=PORT_INPort to receive from FlightGear host (Default: 5502)
--fg_time_offset=SECFlightGear time offset in seconds (e.g. 21600 for 6h)
-j IDX, --js_dev=IDXUse joystick with specified index (e.g. 0)
--spektrum_dev=DEVSpektrum device to use (e.g. /dev/ttyUSB0)
--rc_script=NONumber of RC script to use
--time_factor=factorTime factor (default 1.0)
--fg_fdmUse FlightGear native-fdm protocol instead of native- gui
--nodisplayDon't send NPS Ivy messages

UnifiedMoCap

Command: sw/ext/unifiedmocaprouter/build/mocap-router (conf/tools/unifiedmocaprouter.xml)

Started by the Center with: optitrack ivy --publish_frequency 10 --coordinate_system enu --coordinate_north far --craft_noses right --streaming_ids 1 --ac_id @AC_ID

Routes the data of a motion capture system (OptiTrack) to the aircraft over Ivy, or to the console. A general --help is not available: give MOCAP and AGENT (e.g. optitrack ivy) followed by -h for their options.

default
Usage: mocap-router MOCAP AGENT [-h|--help] [options]

Video to GCS

Command: sw/tools/video/video_to_gcs.sh (conf/tools/video_to_gcs.xml)

Started by the Center with: -i 5000 -o 5600

Show the RTP/JPEG video of an aircraft (module video_rtp_stream) in the PprzGCS video panel, or in a GStreamer window of its own.

default
examples:
  video_to_gcs.sh -i 5000 -o 5600 -r counterclockwise   front camera of the course Bebop to PprzGCS
  video_to_gcs.sh -i 6000 -w                             bottom camera in a window
default
usage: video_to_gcs.sh [-i rtp_port] [-o gcs_port] [-r rotation] [-w] [-h]
OptionDescription
-i rtp_portRTP port of the stream (default 5000; the second camera of video_rtp_stream is 6000)
-o gcs_portUDP port of the PprzGCS video panel (default 5600, layout: )
-r rotationnone, clockwise, counterclockwise, rotate-180 (default none)
-wshow the video in a GStreamer window instead of sending it to PprzGCS

Weather Station

Command: sw/ground_segment/misc/davis2ivy (conf/tools/weather_station.xml)

Started by the Center with: -d /dev/ttyUSB1

Reads a Davis VantagePro weather station on a serial port and sends ambient pressure, temperature, wind speed and direction to the Ivy bus.

default
Usage: davis2ivy [-a] [-b <bus>] [-d <device>] [-i <aircraft_id>] [-s <delay time in seconds>]

Wind

Command: sw/ground_segment/python/wind/wind.py (conf/tools/wind.xml)

Wind Tool: estimate the wind from ground speed and airspeed

default
usage: wind.py [-h] [-b IVY_BUS]
OptionDescription
-b IVY_BUS, --ivy_bus IVY_BUSIvy bus address and port (default: $IVY_BUS or the pprzlink default)

External programs

ToolDescription
Command line (CMD)Runs a shell command; the example runs echo.
Command line (Python)Runs Python from the Paparazzi Python environment (pprzEnv); the example prints Hello, World!
Flight Plan EditorPprzGCS in flight plan editor mode.
Herelink PprzLink RouterStarts the PprzLink router on a Herelink ground unit through adb, to route the telemetry between the Herelink and the GCS over UDP.
Http ServerServes the files of the current folder over HTTP on port 8889 (python -m http.server).
PprzGCSPprzGCS, the ground control station.
VLCVLC media player, here showing the RTP video stream on port 5000 (sw/tools/rtp_viewer/rtp_5000.sdp).

Command line (CMD)

Command: echo (conf/tools/cmdline.xml)

Started by the Center with: "Hello world"

Runs a shell command; the example runs echo.

Command line (Python)

Command: pprzEnv/bin/python (conf/tools/cmdline_python.xml)

Started by the Center with: -c "print('Hello, World!')"

Runs Python from the Paparazzi Python environment (pprzEnv); the example prints Hello, World!

Flight Plan Editor

Command: pprzgcs (conf/tools/flight_plan_editor.xml)

Started by the Center with: -f

PprzGCS in flight plan editor mode.

Command: adb shell /oem/bin/pprzlink_router_cc (conf/tools/herelink_pprzlink_router.xml)

Started by the Center with: -e udp://192.168.0.11:5242:192.168.0.10:5243 -e udp://0.0.0.0:4243:192.168.43.255:4242

Starts the PprzLink router on a Herelink ground unit through adb, to route the telemetry between the Herelink and the GCS over UDP.

Http Server

Command: python (conf/tools/http_server.xml)

Started by the Center with: -m http.server 8889

Serves the files of the current folder over HTTP on port 8889 (python -m http.server).

PprzGCS

Command: pprzgcs (conf/tools/pprzgcs.xml)

PprzGCS, the ground control station.

VLC

Command: vlc (conf/tools/vlc.xml)

Started by the Center with: ./sw/tools/rtp_viewer/rtp_5000.sdp

VLC media player, here showing the RTP video stream on port 5000 (sw/tools/rtp_viewer/rtp_5000.sdp).