Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

px4_work_queue: command line status output and shutdown empty queues #12853

Merged
merged 8 commits into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ci/Jenkinsfile-hardware
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "top once"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// ensure buzzer is disabled for the next test
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set LED_RGB_MAXBRT 0"' // disable rgbled
Expand Down Expand Up @@ -351,6 +352,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -420,6 +422,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -490,6 +493,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -561,6 +565,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -632,6 +637,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// critmon
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "critmon_start; sleep 5; critmon_stop"'
// run tests
Expand Down Expand Up @@ -709,6 +715,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// irqinfo
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "irqinfo"'
// run tests
Expand Down Expand Up @@ -771,6 +778,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "top once"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
// sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' // TODO: currently unusably slow
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -847,6 +855,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-SEGGER_*`'
// ensure buzzer is disabled for the next test
Expand Down Expand Up @@ -916,6 +925,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
Expand Down
4 changes: 2 additions & 2 deletions Tools/setup/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ if [[ $INSTALL_NUTTX == "true" ]]; then

# add user to dialout group (serial port access)
sudo usermod -a -G dialout $USER
# Remove modem manager (interferes with PX4 serial port/USB serial usage).

# Remove modem manager (interferes with PX4 serial port/USB serial usage).
sudo apt-get remove modemmanager -y

# arm-none-eabi-gcc
Expand Down
1 change: 1 addition & 0 deletions boards/aerotenna/ocpoc/ubuntu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/airmind/mindpx-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/atlflight/eagle/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/atlflight/excelsior/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/auav/esc35-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ px4_add_board(
param
top
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/auav/x21/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/av/x-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/beaglebone/blue/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/beaglebone/blue/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/bitcraze/crazyflie/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/emlid/navio2/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/emlid/navio2/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/kakutef7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ px4_add_board(
topic_listener
usb_connected
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/intel/aerofc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/intel/aerofc-v1/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-f7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/fmuk66-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/omnibus/f4sd/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
2 changes: 2 additions & 0 deletions boards/parrot/bebop/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/cannode-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ px4_add_board(
reboot
top
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/esc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ px4_add_board(
param
top
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ px4_add_board(
tune_control
#usb_connected
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v2/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/lpe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v2/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
2 changes: 2 additions & 0 deletions boards/px4/fmu-v2/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
#bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4pro/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4pro/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v5/critmonitor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v5/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v5/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
1 change: 1 addition & 0 deletions boards/px4/fmu-v5/irqmonitor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

EXAMPLES
bottle_drop # OBC challenge
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v5/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue

)
Loading