Commands
actuator_test
Source: systemcmds/actuator_test
Utility to test actuators.
WARNING: remove all props before using this command.
Usage
actuator_test <command> [arguments...]
Commands:
set Set an actuator to a specific output value
The actuator can be specified by motor, servo or function directly:
[-m <val>] Motor to test (1...8)
[-s <val>] Servo to test (1...8)
[-f <val>] Specify function directly
-v <val> value (-1...1)
[-t <val>] Timeout in seconds (run interactive if not set)
default: 0
iterate-motors Iterate all motors starting and stopping one after the other
iterate-servos Iterate all servos deflecting one after the otherbl_update
Source: systemcmds/bl_update
Utility to flash the bootloader from a file
Usage
bsondump
Source: systemcmds/bsondump
read BSON from a file and print in human form
Usage
dumpfile
Source: systemcmds/dumpfile
Dump file utility. Prints file size and contents in binary mode (don't replace LF with CR LF) to stdout.
Usage
dyn
Source: systemcmds/dyn
Description
Load and run a dynamic PX4 module, which was not compiled into the PX4 binary.
Example
Usage
failure
Source: systemcmds/failure
Description
Inject failures into system.
Implementation
This system command sends a vehicle command over uORB to trigger failure.
Examples
Test the GPS failsafe by stopping GPS:
failure gps off
Usage
gpio
Source: systemcmds/gpio
Description
This command is used to read and write GPIOs
Examples
Read the value on port H pin 4 configured as pullup, and it is high
1 OK
Set the output value on Port E pin 7 to high
Set the output value on device /dev/gpio1 to high
Usage
hardfault_log
Source: systemcmds/hardfault_log
Hardfault utility
Used in startup scripts to handle hardfaults
Usage
hist
Source: systemcmds/hist
Command-line tool to show the px4 message history. There are no arguments.
Usage
i2cdetect
Source: systemcmds/i2cdetect
Utility to scan for I2C devices on a particular bus.
Usage
led_control
Source: systemcmds/led_control
Description
Command-line tool to control & test the (external) LED's.
To use it make sure there's a driver running, which handles the led_control uorb topic.
There are different priorities, such that for example one module can set a color with low priority, and another module can blink N times with high priority, and the LED's automatically return to the lower priority state after the blinking. The reset command can also be used to return to a lower priority.
Examples
Blink the first LED 5 times in blue:
Usage
listener
Source: systemcmds/topic_listener
Utility to listen on uORB topics and print the data to the console.
The listener can be exited any time by pressing Ctrl+C, Esc, or Q.
Usage
mfd
Source: systemcmds/mft
Utility interact with the manifest
Usage
mtd
Source: systemcmds/mtd
Utility to mount and test partitions (based on FRAM/EEPROM storage as defined by the board)
Usage
nshterm
Source: systemcmds/nshterm
Start an NSH shell on a given port.
This was previously used to start a shell on the USB serial port. Now there runs mavlink, and it is possible to use a shell over mavlink.
Usage
param
Source: systemcmds/param
Description
Command to access and manipulate parameters via shell or script.
This is used for example in the startup script to set airframe-specific parameters.
Parameters are automatically saved when changed, eg. with param set. They are typically stored to FRAM or to the SD card. param select can be used to change the storage location for subsequent saves (this will need to be (re-)configured on every boot).
If the FLASH-based backend is enabled (which is done at compile time, e.g. for the Intel Aero or Omnibus), param select has no effect and the default is always the FLASH backend. However param save/load <file> can still be used to write to/read from files.
Each parameter has a 'used' flag, which is set when it's read during boot. It is used to only show relevant parameters to a ground control station.
Examples
Change the airframe and make sure the airframe's default parameters are loaded:
Usage
payload_deliverer
Source: modules/payload_deliverer
Description
Handles payload delivery with either Gripper or a Winch with an appropriate timeout / feedback sensor setting, and communicates back the delivery result as an acknowledgement internally
Usage
perf
Source: systemcmds/perf
Tool to print performance counters
Usage
reboot
Source: systemcmds/reboot
Reboot the system
Usage
sd_bench
Source: systemcmds/sd_bench
Test the speed of an SD Card
Usage
sd_stress
Source: systemcmds/sd_stress
Test operations on an SD Card
Usage
serial_passthru
Source: systemcmds/serial_passthru
Pass data from one device to another.
This can be used to use u-center connected to USB with a GPS on a serial port.
Usage
system_time
Source: systemcmds/system_time
Description
Command-line tool to set and get system time.
Examples
Set the system time and read it back
Usage
top
Source: systemcmds/top
Monitor running processes and their CPU, stack usage, priority and state
Usage
usb_connected
Source: systemcmds/usb_connected
Utility to check if USB is connected. Was previously used in startup scripts. A return value of 0 means USB is connected, 1 otherwise.
Usage
ver
Source: systemcmds/ver
Tool to print various version information
Usage
Last updated