PX4 examples to try
Assuming you have successfully connected via the UART and are seeing the PX4/NuttX nsh> prompt, you can try a few things using PX4/NuttX
1
nsh> help
Copied!
This will show you basic help as well as list the Builtin Apps.
Try running some of the builtin apps: (Lines beginning with # below are just comments)
1
nsh> #run hello world
2
nsh> hello
3
4
nsh> #control the onboard RGB LED
5
nsh> led_control breathe -c cyan
6
7
nsh> #check the actual RGB PWM driver status
8
nsh> rgbled_pwm status
9
10
nsh> #view the rtos processes
11
nsh> top
12
13
nsh> #check the hardware version and git verion
14
nsh> ver hw
15
nsh> ver git
Copied!
As you can see there are also a number of other builtin apps ready to test servo's, I2C devices, SPI devices, and even a GPS when attached.
Last modified 1yr ago
Export as PDF
Copy link