Skip to content

Commit

Permalink
Merge branch 'master' into pr-dps310_barometer
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar authored Sep 1, 2019
2 parents c0faa73 + 328544a commit 478ab27
Show file tree
Hide file tree
Showing 707 changed files with 13,627 additions and 7,268 deletions.
2 changes: 1 addition & 1 deletion .ci/Jenkinsfile-compile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
"px4_fmu-v5_default", "px4_fmu-v5_fixedwing", "px4_fmu-v5_multicopter", "px4_fmu-v5_rover", "px4_fmu-v5_rtps", "px4_fmu-v5_stackcheck",
"px4_fmu-v5x_default", "px4_fmu-v5x_fixedwing", "px4_fmu-v5x_multicopter", "px4_fmu-v5x_rover", "px4_fmu-v5x_rtps", "px4_fmu-v5x_stackcheck",
"intel_aerofc-v1_default", "auav_x21_default", "av_x-v1_default", "bitcraze_crazyflie_default", "airmind_mindpx-v2_default",
"holybro_kakutef7", "mro_ctrl-zero-f7_default", "nxp_fmuk66-v3_default", "omnibus_f4sd_default"],
"holybro_kakutef7", "mro_ctrl-zero-f7_default", "nxp_fmuk66-v3_default", "omnibus_f4sd_default", "uvify_core_default"],
image: docker_images.nuttx,
archive: true
]
Expand Down
402 changes: 334 additions & 68 deletions .ci/Jenkinsfile-hardware

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions .ci/Jenkinsfile-hardware_linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env groovy

pipeline {
agent none
stages {
stage('Build and Verify') {

agent {
label 'navio2'
}
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'CCACHE_BASEDIR=${WORKSPACE} make emlid_navio2_native'
sh 'ccache -s'
// sanity check
sh 'cd build/emlid_navio2_native/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config'
}
post {
always {
sh 'make distclean'
}
}
options {
timeout(time: 30, unit: 'MINUTES')
}

}

} // stages
environment {
CCACHE_DIR = '/tmp/ccache'
CI = true
}
options {
buildDiscarder(logRotator(numToKeepStr: '20', artifactDaysToKeepStr: '30'))
timeout(time: 60, unit: 'MINUTES')
}
}
48 changes: 48 additions & 0 deletions .ci/Jenkinsfile-hardware_snapdragon
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env groovy

pipeline {
agent none
stages {
stage('Build and Verify') {

agent {
label 'snapdragon'
}
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'CCACHE_BASEDIR=${WORKSPACE} make eagle_default'
sh 'ccache -s'
// sanity check
sh 'adb devices'
sh 'make eagle_default sanity || true'
}
post {
always {
sh 'cat boards/atlflight/eagle/scripts/px4.log'
sh 'cat boards/atlflight/eagle/scripts/minidm.log'
sh 'make distclean'
}
}
options {
timeout(time: 30, unit: 'MINUTES')
}

}

} // stages
environment {
CCACHE_DIR = '/tmp/ccache'
CI = true
ARM_CROSS_GCC_ROOT="/home/jenkins/Qualcomm/ARM_Tools/gcc-4.9-2014.11"
HEXAGON_ARM_SYSROOT="/home/jenkins/Qualcomm/qrlinux_sysroot"
HEXAGON_SDK_ROOT="/home/jenkins/Qualcomm/Hexagon_SDK/3.0"
HEXAGON_TOOLS_ROOT="/home/jenkins/Qualcomm/HEXAGON_Tools/7.2.12/Tools"
}
options {
buildDiscarder(logRotator(numToKeepStr: '20', artifactDaysToKeepStr: '30'))
timeout(time: 60, unit: 'MINUTES')
}
}
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

*.bin binary
*.pdf binary
*.png binary
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Testing/
Packages/*
build/*
build_*/
core
cscope.out
cscope.in.out
cscope.po.out
Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ajshort.ros",
"chiehyu.vscode-astyle",
"dan-c-underwood.arm",
"github.vscode-pull-request-github",
"marus25.cortex-debug",
"ms-azuretools.vscode-docker",
"ms-iot.vscode-ros",
"ms-python.python",
"ms-vscode.cpptools",
"peterjausovec.vscode-docker",
"twxs.cmake",
"uavcan.dsdl",
"vector-of-bool.cmake-tools",
Expand Down
15 changes: 13 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
]
}
},
"cortex-debug.enableTelemetry": false,
"C_Cpp.clang_format_fallbackStyle": "none",
"C_Cpp.configurationWarnings": "Disabled",
"C_Cpp.default.cppStandard": "c++11",
Expand All @@ -63,6 +64,8 @@
"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.intelliSenseEngineFallback": "Disabled",
"debug.toolBarLocation": "docked",
"editor.defaultFormatter": "chiehyu.vscode-astyle",
"editor.dragAndDrop": false,
"editor.insertSpaces": false,
"editor.minimap.maxColumn": 120,
"editor.minimap.renderCharacters": false,
Expand All @@ -74,17 +77,25 @@
"explorer.openEditors.visible": 0,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
"**/build/*": true
},
"git.detectSubmodulesLimit": 20,
"git.ignoreLimitWarning": true,
"githubPullRequests.defaultMergeMethod": "squash",
"githubPullRequests.telemetry.enabled": false,
"gitlens.advanced.telemetry.enabled": false,
"files.associations": {
"*.jinja": "jinja"
},
"search.exclude": {
"build/**": true
},
"search.showLineNumbers": true,
"telemetry.enableTelemetry": false,
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
"workbench.editor.highlightModifiedTabs": true,
"workbench.enableExperiments": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.statusBar.feedback.visible": false,
"git.ignoreLimitWarning": true
"workbench.statusBar.feedback.visible": false
}
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,17 @@ else()
px4_find_python_module(jinja2 REQUIRED)
endif()

#=============================================================================
# get chip and chip manufacturer
#
px4_os_determine_build_chip()
if(NOT PX4_CHIP_MANUFACTURER)
message(FATAL_ERROR "px4_os_determine_build_chip() needs to set PX4_CHIP_MANUFACTURER")
endif()
if(NOT PX4_CHIP)
message(FATAL_ERROR "px4_os_determine_build_chip() needs to set PX4_CHIP")
endif()

#=============================================================================
# build flags
#
Expand Down Expand Up @@ -451,7 +462,8 @@ add_library(parameters_interface INTERFACE)
include(px4_add_library)
add_subdirectory(src/lib EXCLUDE_FROM_ALL)

add_subdirectory(src/platforms EXCLUDE_FROM_ALL)
add_subdirectory(platforms/${PX4_PLATFORM}/src/px4)
add_subdirectory(platforms EXCLUDE_FROM_ALL)
add_subdirectory(src/modules/uORB EXCLUDE_FROM_ALL) # TODO: platform layer
add_subdirectory(src/drivers/boards EXCLUDE_FROM_ALL)

Expand Down
43 changes: 34 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pipeline {
}
}

stage('Bloaty px4_fmu-v2') {
stage('px4_fmu-v2 (bloaty)') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2019-07-29'
Expand Down Expand Up @@ -122,9 +122,12 @@ pipeline {
sh 'make distclean'
}
}
environment {
CCACHE_DISABLE = 1
}
}

stage('Bloaty px4_fmu-v5') {
stage('px4_fmu-v5 (bloaty)') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2019-07-29'
Expand Down Expand Up @@ -152,9 +155,12 @@ pipeline {
sh 'make distclean'
}
}
environment {
CCACHE_DISABLE = 1
}
}

stage('No-ninja px4_fmu-v2') {
stage('px4_sitl (bloaty)') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2019-07-29'
Expand All @@ -166,17 +172,28 @@ pipeline {
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'NO_NINJA_BUILD=1 make px4_fmu-v2_default'
sh 'make px4_sitl_default'
sh 'make px4_sitl_default bloaty_compileunits'
sh 'make px4_sitl_default bloaty_inlines'
sh 'make px4_sitl_default bloaty_sections'
sh 'make px4_sitl_default bloaty_segments'
sh 'make px4_sitl_default bloaty_symbols'
sh 'make px4_sitl_default bloaty_templates'
//sh 'make px4_fmu-v5_default bloaty_compare_master'
sh 'make sizes'
sh 'ccache -s'
}
post {
always {
sh 'make distclean'
}
}
environment {
CCACHE_DISABLE = 1
}
}

stage('No-ninja px4_fmu-v5') {
stage('px4_fmu-v5 (no ninja)') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2019-07-29'
Expand All @@ -188,20 +205,24 @@ pipeline {
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'NO_NINJA_BUILD=1 make px4_fmu-v5_default'
sh 'make px4_fmu-v5_default'
sh 'make sizes'
sh 'ccache -s'
}
post {
always {
sh 'make distclean'
}
}
environment {
NO_NINJA_BUILD = 1
}
}

stage('No-ninja SITL build') {
stage('px4_sitl (no ninja)') {
agent {
docker {
image 'px4io/px4-dev-base-bionic:2019-07-29'
image 'px4io/px4-dev-nuttx:2019-07-29'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
Expand All @@ -210,14 +231,18 @@ pipeline {
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'NO_NINJA_BUILD=1 make px4_sitl_default'
sh 'make px4_sitl_default'
sh 'make sizes'
sh 'ccache -s'
}
post {
always {
sh 'make distclean'
}
}
environment {
NO_NINJA_BUILD = 1
}
}

stage('SITL unit tests') {
Expand Down
3 changes: 2 additions & 1 deletion ROMFS/px4fmu_common/init.d-posix/1040_standard_vtol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ then
param set VT_F_TRANS_DUR 5
param set VT_F_TRANS_THR 0.75
param set VT_ARSP_TRANS 16
param set VT_MOT_COUNT 4
param set VT_MOT_ID 1234
param set VT_FW_MOT_OFFID 1234
param set VT_TYPE 2

fi
Expand Down
1 change: 0 additions & 1 deletion ROMFS/px4fmu_common/init.d-posix/1041_tailsitter
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ then

param set VT_F_TRANS_DUR 1.5
param set VT_F_TRANS_THR 0.7
param set VT_MOT_COUNT 0
param set VT_TYPE 0

fi
Expand Down
1 change: 0 additions & 1 deletion ROMFS/px4fmu_common/init.d-posix/1042_tiltrotor
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ then

param set VT_F_TRANS_DUR 1.5
param set VT_F_TRANS_THR 0.75
param set VT_MOT_COUNT 4
param set VT_TILT_FW 3.1415
param set VT_TILT_TRANS 1.2
param set VT_ELEV_MC_LOCK 0
Expand Down
3 changes: 2 additions & 1 deletion ROMFS/px4fmu_common/init.d/airframes/1002_standard_vtol.hil
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ then
param set SYS_RESTART_TYPE 2

param set VT_F_TRANS_THR 0.75
param set VT_MOT_COUNT 4
param set VT_MOT_ID 1234
param set VT_FW_MOT_OFFID 1234
param set VT_TYPE 2
fi

Expand Down
3 changes: 2 additions & 1 deletion ROMFS/px4fmu_common/init.d/airframes/13002_firefly6
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ then

param set VT_FW_MOT_OFFID 34
param set VT_IDLE_PWM_MC 1080
param set VT_MOT_COUNT 123456
param set VT_MOT_ID 123456
param set VT_FW_MOT_OFFID 56
param set VT_TILT_MC 0.08
param set VT_TILT_TRANS 0.5
param set VT_TILT_FW 0.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ then
param set PWM_MAX 2000
param set PWM_RATE 400

param set VT_MOT_COUNT 1234
param set VT_IDLE_PWM_MC 1080
param set VT_TYPE 0
param set VT_ELEV_MC_LOCK 1
Expand Down
2 changes: 1 addition & 1 deletion ROMFS/px4fmu_common/init.d/airframes/13005_vtol_AAERT_quad
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ then
param set VT_ARSP_BLEND 6
param set VT_ARSP_TRANS 12
param set VT_F_TRANS_THR 0.75
param set VT_MOT_COUNT 1234
param set VT_MOT_ID 1234
param set VT_FW_MOT_OFFID 1234
param set VT_IDLE_PWM_MC 1080
param set VT_TYPE 2
Expand Down
1 change: 0 additions & 1 deletion ROMFS/px4fmu_common/init.d/airframes/13013_deltaquad
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ then
param set MPC_XY_VEL_MAX 5
param set MPC_ACC_HOR_MAX 2
param set MPC_LAND_SPEED 1.2
param set MPC_MAN_R_MAX 30
param set MPC_TILTMAX_LND 35
param set MPC_Z_VEL_MAX 1.5
param set MPC_Z_VEL_MAX_UP 1.5
Expand Down
Loading

0 comments on commit 478ab27

Please sign in to comment.