2019-02-26 20:22:16 -04:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
2018-08-17 10:28:51 -03:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
2019-11-03 17:31:43 -04:00
|
|
|
stage('Hardware Test') {
|
2018-08-17 10:28:51 -03:00
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
2021-01-04 09:58:31 -04:00
|
|
|
// stage("px4_fmu-v2_test") {
|
|
|
|
// stages {
|
|
|
|
// stage("build px4_fmu-v2_test") {
|
|
|
|
// agent {
|
|
|
|
// docker {
|
|
|
|
// image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
|
|
|
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// steps {
|
|
|
|
// sh 'export'
|
|
|
|
// sh 'make distclean'
|
|
|
|
// sh 'ccache -s'
|
|
|
|
// sh 'git fetch --tags'
|
|
|
|
// sh 'make px4_fmu-v2_test'
|
|
|
|
// sh 'make sizes'
|
|
|
|
// sh 'ccache -s'
|
|
|
|
// stash includes: 'build/px4_fmu-v2_test/px4_fmu-v2_test.elf', name: 'px4_fmu-v2_test'
|
|
|
|
// }
|
|
|
|
// post {
|
|
|
|
// always {
|
|
|
|
// sh 'make distclean'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// } // stage build
|
|
|
|
// stage("test") {
|
|
|
|
// agent {
|
|
|
|
// label 'px4_fmu-v2'
|
|
|
|
// }
|
|
|
|
// stages {
|
|
|
|
// stage("flash") {
|
|
|
|
// steps {
|
|
|
|
// sh 'export'
|
|
|
|
// sh 'find /dev/serial'
|
|
|
|
// unstash 'px4_fmu-v2_test'
|
|
|
|
// // flash board and watch bootup
|
|
|
|
// sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v2_test/px4_fmu-v2_test.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// stage("reset") {
|
|
|
|
// steps {
|
|
|
|
// cleanupFTDI();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// options {
|
|
|
|
// timeout(time: 90, unit: 'MINUTES')
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2019-02-27 00:03:24 -04:00
|
|
|
|
2019-11-03 17:31:43 -04:00
|
|
|
stage("px4_fmu-v3_default") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v3_default") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-03 17:31:43 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
2019-08-16 22:48:09 -03:00
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v3_default'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v3_default/px4_fmu-v3_default.elf', name: 'px4_fmu-v3_default'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v3'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'px4_fmu-v3_default'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v3_default/px4_fmu-v3_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 13000"' // generic vtol standard
|
2020-01-06 19:15:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io forceupdate 14662 /etc/extras/px4_io-v2_default.bin" || true' // force px4io update
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2019-11-27 12:24:01 -04:00
|
|
|
statusFTDI()
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2019-12-03 15:26:54 -04:00
|
|
|
cleanupFTDI();
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
2019-08-16 22:48:09 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-03 17:31:43 -04:00
|
|
|
stage("px4_fmu-v4_default") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v4_default") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-03 17:31:43 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
2019-08-16 20:01:16 -03:00
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v4_default'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v4_default/px4_fmu-v4_default.elf', name: 'px4_fmu-v4_default'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v4'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'px4_fmu-v4_default'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v4_default/px4_fmu-v4_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001"' // generic multicopter
|
2020-01-06 19:15:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
|
|
|
statusFTDI()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
|
|
|
cleanupFTDI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-03 17:31:43 -04:00
|
|
|
stage("px4_fmu-v4pro_default") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v4pro_default") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-03 17:31:43 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
2019-02-27 00:03:24 -04:00
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v4pro_default'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v4pro_default/px4_fmu-v4pro_default.elf', name: 'px4_fmu-v4pro_default'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v4pro'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'px4_fmu-v4pro_default'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v4pro_default/px4_fmu-v4pro_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 13000"' // generic vtol standard
|
2020-01-06 19:15:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io forceupdate 14662 /etc/extras/px4_io-v2_default.bin" || true' // force px4io update
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2019-11-27 12:24:01 -04:00
|
|
|
statusFTDI()
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2019-12-03 15:26:54 -04:00
|
|
|
cleanupFTDI();
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
2019-02-27 00:03:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-03 17:31:43 -04:00
|
|
|
stage("px4_fmu-v5_default") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v5_default") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-03 17:31:43 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
2019-08-30 01:40:22 -03:00
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v5_default'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v5_default/px4_fmu-v5_default.elf', name: 'px4_fmu-v5_default'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v5'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'px4_fmu-v5_default'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v5_default/px4_fmu-v5_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2020-03-22 18:50:17 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 13000"' // generic vtol standard
|
2020-07-06 21:11:41 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set IMU_GYRO_RATEMAX 2000"'
|
2020-03-22 18:50:17 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io forceupdate 14662 /etc/extras/px4_io-v2_default.bin" || true' // force px4io update
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
|
|
|
statusFTDI()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
2020-07-05 15:27:21 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
|
|
|
cleanupFTDI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2020-07-05 15:27:21 -03:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage("px4_fmu-v5_debug") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v5_debug") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2020-07-05 15:27:21 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -s'
|
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v5_debug'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v5_debug/px4_fmu-v5_debug.elf', name: 'px4_fmu-v5_debug'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v5'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
2020-11-13 22:22:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001" || true' // generic multicopter
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set IMU_GYRO_RATEMAX 250" || true'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save" || true'
|
2020-07-05 15:27:21 -03:00
|
|
|
unstash 'px4_fmu-v5_debug'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v5_debug/px4_fmu-v5_debug.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2020-07-05 15:27:21 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2020-07-05 15:27:21 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set IMU_GYRO_RATEMAX 250"' // limit cpu usage
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001"' // generic multicopter
|
2020-07-05 15:27:21 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io forceupdate 14662 /etc/extras/px4_io-v2_default.bin" || true' // force px4io update
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2020-07-05 15:27:21 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
|
|
|
statusFTDI()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
|
|
|
cleanupFTDI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2020-03-22 18:50:17 -03:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage("px4_fmu-v5_optimized") {
|
|
|
|
stages {
|
|
|
|
stage("build px4_fmu-v5_optimized") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2020-03-22 18:50:17 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -s'
|
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make px4_fmu-v5_optimized'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/px4_fmu-v5_optimized/px4_fmu-v5_optimized.elf', name: 'px4_fmu-v5_optimized'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'px4_fmu-v5'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'px4_fmu-v5_optimized'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v5_optimized/px4_fmu-v5_optimized.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 13000"' // generic vtol standard
|
2020-01-06 19:15:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2019-11-27 12:24:01 -04:00
|
|
|
statusFTDI()
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2019-12-03 15:26:54 -04:00
|
|
|
cleanupFTDI();
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
2019-08-30 01:40:22 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("px4_fmu-v5_stackcheck") {
|
2019-11-27 12:24:01 -04:00
|
|
|
stages {
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("build px4_fmu-v5_stackcheck") {
|
2019-11-27 12:24:01 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-27 12:24:01 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh 'git fetch --tags'
|
2020-04-11 22:16:10 -03:00
|
|
|
sh 'make px4_fmu-v5_stackcheck'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
2020-04-11 22:16:10 -03:00
|
|
|
stash includes: 'build/px4_fmu-v5_stackcheck/px4_fmu-v5_stackcheck.elf', name: 'px4_fmu-v5_stackcheck'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
2020-04-11 22:16:10 -03:00
|
|
|
label 'px4_fmu-v5'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
2020-11-13 22:22:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001" || true' // generic multicopter
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set IMU_GYRO_RATEMAX 250" || true'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save" || true'
|
2020-04-11 22:16:10 -03:00
|
|
|
unstash 'px4_fmu-v5_stackcheck'
|
2019-11-27 12:24:01 -04:00
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/px4_fmu-v5_stackcheck/px4_fmu-v5_stackcheck.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
2020-04-11 22:16:10 -03:00
|
|
|
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 IMU_GYRO_RATEMAX 250"' // limit cpu usage
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set MAV_0_CONFIG 0"' // limit cpu usage
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001"' // generic multicopter
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2020-04-11 22:16:10 -03:00
|
|
|
statusFTDI()
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
2020-04-11 22:16:10 -03:00
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2020-04-11 22:16:10 -03:00
|
|
|
cleanupFTDI();
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
2019-08-16 20:01:16 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("modalai_fc-v1_default") {
|
2019-11-14 19:57:42 -04:00
|
|
|
stages {
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("build modalai_fc-v1_default") {
|
2019-11-14 19:57:42 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-14 19:57:42 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-14 19:57:42 -04:00
|
|
|
sh 'git fetch --tags'
|
2020-04-11 22:16:10 -03:00
|
|
|
sh 'make modalai_fc-v1_default'
|
2019-11-14 19:57:42 -04:00
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
2020-04-11 22:16:10 -03:00
|
|
|
stash includes: 'build/modalai_fc-v1_default/modalai_fc-v1_default.elf', name: 'modalai_fc-v1_default'
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
2020-04-11 22:16:10 -03:00
|
|
|
label 'modalai_fc-v1'
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
2020-04-11 22:16:10 -03:00
|
|
|
unstash 'modalai_fc-v1_default'
|
2019-11-14 19:57:42 -04:00
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/modalai_fc-v1_default/modalai_fc-v1_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-SEGGER_*` --baudrate 57600'
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
2020-04-11 22:16:10 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param set SYS_AUTOSTART 4001"' // generic vtol standardulticopter
|
2020-04-11 22:16:10 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2020-04-11 22:16:10 -03:00
|
|
|
statusSEGGER()
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
2020-04-11 22:16:10 -03:00
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-SEGGER_*`'
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2020-04-11 22:16:10 -03:00
|
|
|
cleanupSEGGER()
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-14 19:57:42 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("holybro_durandal-v1_default") {
|
2019-11-14 20:38:24 -04:00
|
|
|
stages {
|
2020-04-11 22:16:10 -03:00
|
|
|
stage("build holybro_durandal-v1_default") {
|
2019-11-14 20:38:24 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-14 20:38:24 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-14 20:38:24 -04:00
|
|
|
sh 'git fetch --tags'
|
2020-04-11 22:16:10 -03:00
|
|
|
sh 'make holybro_durandal-v1_default'
|
2019-11-14 20:38:24 -04:00
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
2020-04-11 22:16:10 -03:00
|
|
|
stash includes: 'build/holybro_durandal-v1_default/holybro_durandal-v1_default.elf', name: 'holybro_durandal-v1_default'
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'holybro_durandal-v1'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
2020-04-11 22:16:10 -03:00
|
|
|
unstash 'holybro_durandal-v1_default'
|
2019-11-14 20:38:24 -04:00
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/holybro_durandal-v1_default/holybro_durandal-v1_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
|
|
|
steps {
|
|
|
|
// configure
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2020-07-07 15:16:10 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set DSHOT_CONFIG 600"'
|
2020-07-07 01:58:06 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set IMU_GYRO_RATEMAX 4000"'
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001"' // generic quadcopter
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_BL_UPDATE 1"' // update bootloader
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_USE_IO 0"' // for dshot
|
2020-01-06 19:15:55 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io forceupdate 14662 /etc/extras/px4_io-v2_default.bin" || true' // force px4io update
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
2020-07-07 15:16:10 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "dshot status"'
|
2019-11-27 12:24:01 -04:00
|
|
|
statusFTDI()
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
2019-12-03 15:26:54 -04:00
|
|
|
cleanupFTDI();
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2019-11-14 20:38:24 -04:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-03 17:31:43 -04:00
|
|
|
stage("nxp_fmuk66-v3_default") {
|
|
|
|
stages {
|
|
|
|
stage("build nxp_fmuk66-v3_default") {
|
|
|
|
agent {
|
|
|
|
docker {
|
2020-09-18 13:17:51 -03:00
|
|
|
image 'px4io/px4-dev-nuttx-focal:2020-09-14'
|
2019-11-03 17:31:43 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2019-02-28 16:48:18 -04:00
|
|
|
sh 'export'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'make distclean'
|
2019-11-28 19:37:20 -04:00
|
|
|
sh 'ccache -s'
|
2019-11-03 17:31:43 -04:00
|
|
|
sh 'git fetch --tags'
|
|
|
|
sh 'make nxp_fmuk66-v3_default'
|
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
|
|
|
stash includes: 'build/nxp_fmuk66-v3_default/nxp_fmuk66-v3_default.elf', name: 'nxp_fmuk66-v3_default'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage build
|
|
|
|
stage("test") {
|
|
|
|
agent {
|
|
|
|
label 'nxp_fmuk66-v3'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("flash") {
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'find /dev/serial'
|
|
|
|
unstash 'nxp_fmuk66-v3_default'
|
|
|
|
// flash board and watch bootup
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './platforms/nuttx/Debug/upload_jlink_gdb.sh build/nxp_fmuk66-v3_default/nxp_fmuk66-v3_default.elf && ./Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600'
|
2019-11-03 17:31:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("configure") {
|
2020-06-24 00:04:35 -03:00
|
|
|
steps {
|
|
|
|
// configure
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
|
2021-01-07 11:12:20 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOCONFIG 2"'
|
2020-06-24 00:04:35 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SYS_AUTOSTART 4001"' // generic multicopter
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true' // reboot to apply
|
2020-06-24 00:04:35 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("status") {
|
|
|
|
steps {
|
|
|
|
statusFTDI()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("tests") {
|
|
|
|
steps {
|
|
|
|
// run tests
|
2020-11-13 22:22:55 -04:00
|
|
|
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*` || true' // allow failure due to intermittent serial console issues
|
2020-06-24 00:04:35 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("reset") {
|
|
|
|
steps {
|
|
|
|
cleanupFTDI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2020-06-24 00:04:35 -03:00
|
|
|
}
|
|
|
|
} // stage test
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-17 10:28:51 -03:00
|
|
|
} // parallel
|
2019-11-03 17:31:43 -04:00
|
|
|
} // stage Hardware Test
|
2018-08-17 10:28:51 -03:00
|
|
|
} // stages
|
|
|
|
environment {
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
|
|
|
}
|
|
|
|
options {
|
2020-04-14 20:14:10 -03:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '20', artifactDaysToKeepStr: '40'))
|
2020-09-02 02:01:02 -03:00
|
|
|
timeout(time: 90, unit: 'MINUTES')
|
2018-08-17 10:28:51 -03:00
|
|
|
}
|
|
|
|
}
|
2019-11-27 12:24:01 -04:00
|
|
|
|
|
|
|
void statusFTDI() {
|
|
|
|
// run logger
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "logger on"'
|
|
|
|
// status commands
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "free"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
|
2020-09-28 17:41:28 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "board_adc test"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander check"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander status"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander calibrate accel quick; sleep 2; param show CAL_ACC*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander calibrate gyro; sleep 2; param show CAL_GYRO*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander calibrate level; sleep 2; param show SENS_BOARD*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander calibrate mag quick; sleep 2; param show CAL_MAG*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "dataman status"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "df"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "dmesg"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "gps status"'
|
2020-01-07 15:04:34 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener adc_report"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener battery_status"'
|
2020-07-15 13:18:02 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener cpuload"'
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_attitude"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_local_position"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_selector_status"'
|
2020-09-01 15:49:32 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_sensor_bias"'
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_status"'
|
msg: new estimator_status_flags message for more accessible ekf2 status logging
- log all estimator (ekf2) flags as separate booleans in a new dedicated low rate message (only publishes at 1 Hz or immediately on any change)
- this is a bit verbose, but it avoids the duplicate bit definitions we currently have across PX4 msgs, ecl analysis script, flight review, and many other custom tools and it's much easier for casual log review in FlightPlot, PlotJuggler, csv, etc
- for compatibility I've left estimator_status filter_fault_flags, innovation_check_flags, and solution_status_flags in place, but they can gradually be removed as tooling is updated
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
2020-12-29 12:27:21 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener estimator_status_flags"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener logger_status"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_accel"'
|
2020-01-18 02:15:00 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_accel_fifo"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_baro"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_combined"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_gyro"'
|
2020-01-18 02:15:00 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_gyro_fifo"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensor_mag"'
|
2020-09-06 23:06:13 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener sensors_status_imu"'
|
2020-07-16 15:39:13 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener px4io_status"'
|
2020-01-07 15:04:34 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener system_power"'
|
2020-10-09 15:14:08 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener telemetry_status"'
|
2020-07-12 12:50:30 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_air_data"'
|
2020-09-01 15:49:32 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_angular_acceleration"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_angular_velocity"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_attitude"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_imu"'
|
2020-05-30 12:07:54 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_imu_status"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_local_position"'
|
2020-08-16 22:56:15 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener vehicle_magnetometer"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "logger status"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ls /"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ls /dev"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ls /etc"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ls /obj"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ls /proc"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "cat /proc/meminfo"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "cat /proc/uptime"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mavlink status streams"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mavlink status"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mount"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mtd status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param show"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "perf latency"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "perf"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ps"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "pwm info -d /dev/pwm_output0"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "pwm info -d /dev/pwm_output1"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "pwm_out status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "px4io status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "sd_bench -r 2"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "sensors status"'
|
2020-09-05 15:35:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "listener cpuload; top once; listener cpuload"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
|
2020-05-06 11:08:24 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1 -a"'
|
2019-11-27 12:24:01 -04:00
|
|
|
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"'
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ekf2 status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "free"'
|
2020-06-04 22:40:15 -03:00
|
|
|
// stop logger
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "logger off"'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void statusSEGGER() {
|
|
|
|
// run logger
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "logger on"'
|
|
|
|
// status commands
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "free"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "work_queue status"'
|
2020-09-28 17:41:28 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "board_adc test"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander check"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander status"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander calibrate accel quick; sleep 2; param show CAL_ACC*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander calibrate gyro; sleep 2; param show CAL_GYRO*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander calibrate level; sleep 2; param show SENS_BOARD*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander calibrate mag quick; sleep 2; param show CAL_MAG*"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "dataman status"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "df -h"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "dmesg"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "gps status"'
|
2020-01-07 15:04:34 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener adc_report"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener battery_status"'
|
2020-07-15 13:18:02 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener cpuload"'
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_attitude"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_local_position"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_selector_status"'
|
2020-09-01 15:49:32 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_sensor_bias"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_status"'
|
msg: new estimator_status_flags message for more accessible ekf2 status logging
- log all estimator (ekf2) flags as separate booleans in a new dedicated low rate message (only publishes at 1 Hz or immediately on any change)
- this is a bit verbose, but it avoids the duplicate bit definitions we currently have across PX4 msgs, ecl analysis script, flight review, and many other custom tools and it's much easier for casual log review in FlightPlot, PlotJuggler, csv, etc
- for compatibility I've left estimator_status filter_fault_flags, innovation_check_flags, and solution_status_flags in place, but they can gradually be removed as tooling is updated
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
2020-12-29 12:27:21 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener estimator_status_flags"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener logger_status"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_accel"'
|
2020-01-18 02:15:00 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_accel_fifo"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_baro"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_combined"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_gyro"'
|
2020-01-18 02:15:00 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_gyro_fifo"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensor_mag"'
|
2020-09-06 23:06:13 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener sensors_status_imu"'
|
2020-07-16 15:39:13 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener px4io_status"'
|
2020-01-07 15:04:34 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener system_power"'
|
2020-10-09 15:14:08 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener telemetry_status"'
|
2020-07-12 12:50:30 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_air_data"'
|
2020-09-01 15:49:32 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_angular_acceleration"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_angular_velocity"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_attitude"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_imu"'
|
2020-05-30 12:07:54 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_imu_status"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_local_position"'
|
2020-08-16 22:56:15 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener vehicle_magnetometer"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "logger status"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ls /"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ls /dev"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ls /etc"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ls /obj"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ls /proc"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "cat /proc/meminfo"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "cat /proc/uptime"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mavlink status streams"'
|
2020-01-29 18:29:30 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mavlink status"'
|
2020-05-06 11:09:03 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mount"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mtd status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param show"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "perf latency"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "perf"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ps"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "pwm info -d /dev/pwm_output0"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "pwm info -d /dev/pwm_output1"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "pwm_out status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "px4io status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "sd_bench -r 2"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "sensors status"'
|
2020-09-05 15:35:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "listener cpuload; top once; listener cpuload"'
|
2019-11-27 12:24:01 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb status"'
|
2020-05-06 11:08:24 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb top -1 -a"'
|
2019-11-27 12:24:01 -04:00
|
|
|
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"'
|
2020-10-27 11:56:11 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ekf2 status"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "free"'
|
2020-06-04 22:40:15 -03:00
|
|
|
// stop logger
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "logger off"'
|
2019-11-27 12:24:01 -04:00
|
|
|
}
|
2019-12-03 15:26:54 -04:00
|
|
|
|
|
|
|
void cleanupFTDI() {
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "commander stop"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mavlink stop-all"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "navigator stop"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "dataman stop"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "logger off"'
|
2020-11-10 23:45:50 -04:00
|
|
|
|
|
|
|
// wipe sdcard
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "umount /fs/microsd"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mkfatfs /dev/mmcsd0"'
|
2019-12-03 15:26:54 -04:00
|
|
|
|
2020-02-05 22:35:18 -04:00
|
|
|
// drop any uncommited hardfaults
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "hardfault_log rearm"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "hardfault_log reset"'
|
2020-02-05 22:35:18 -04:00
|
|
|
|
2020-09-28 17:41:28 -03:00
|
|
|
// erase mtd
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mtd readtest"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mtd rwtest"'
|
2019-12-03 15:26:54 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "mtd erase"'
|
|
|
|
|
2020-04-16 17:01:50 -03:00
|
|
|
// disable buzzer and cleanup storage
|
2020-09-28 17:41:28 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param reset_all"'
|
2020-02-05 22:35:18 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set SDLOG_DIRS_MAX 1"'
|
2020-02-05 22:35:18 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param save"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param status"'
|
2019-12-03 15:26:54 -04:00
|
|
|
|
|
|
|
// reboot
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "reboot" || true'
|
2019-12-03 15:26:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void cleanupSEGGER() {
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "commander stop"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mavlink stop-all"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "navigator stop"'
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "dataman stop"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "logger off"'
|
2020-11-10 23:45:50 -04:00
|
|
|
|
|
|
|
// wipe sdcard
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "umount /fs/microsd"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mkfatfs /dev/mmcsd0"'
|
2019-12-03 15:26:54 -04:00
|
|
|
|
2020-02-05 22:35:18 -04:00
|
|
|
// drop any uncommited hardfaults
|
2020-11-13 16:17:31 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "hardfault_log rearm"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "hardfault_log reset"'
|
2020-02-05 22:35:18 -04:00
|
|
|
|
2020-09-28 17:41:28 -03:00
|
|
|
// erase mtd
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mtd readtest"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mtd rwtest"'
|
2019-12-03 15:26:54 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "mtd erase"'
|
|
|
|
|
2020-04-16 17:01:50 -03:00
|
|
|
// disable buzzer and cleanup storage
|
2020-09-28 17:41:28 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param reset_all"'
|
2020-02-05 22:35:18 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param set CBRK_BUZZER 782097"'
|
2020-04-16 17:01:50 -03:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param set SDLOG_DIRS_MAX 1"'
|
2020-02-05 22:35:18 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param save"'
|
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "param status"'
|
2019-12-03 15:26:54 -04:00
|
|
|
|
|
|
|
// reboot
|
2020-11-10 23:45:50 -04:00
|
|
|
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "reboot" || true'
|
2019-12-03 15:26:54 -04:00
|
|
|
}
|