diff --git a/.ci/Jenkinsfile-SITL_tests b/.ci/Jenkinsfile-SITL_tests index 2d092fec8649099bceaefb16031ac20a3b0125b0..a31e670cd218f6bb1071df2d2ba3ac7b5abd3620 100644 --- a/.ci/Jenkinsfile-SITL_tests +++ b/.ci/Jenkinsfile-SITL_tests @@ -30,7 +30,7 @@ pipeline { sh('make distclean') sh "ccache -z" sh "git fetch --tags" - sh('make px4sitl_default') + sh('make px4_sitl_default') sh "ccache -s" } } @@ -47,8 +47,8 @@ pipeline { stage('unit tests') { steps { sh 'export' - sh 'make px4sitl_default test_results_junit' - junit 'build/px4sitl_default/JUnitTestResults.xml' + sh 'make px4_sitl_default test_results_junit' + junit 'build/px4_sitl_default/JUnitTestResults.xml' } } @@ -56,7 +56,7 @@ pipeline { steps { sh 'export' sh "ccache -z" - sh('make px4sitl_default sitl_gazebo') + sh('make px4_sitl_default sitl_gazebo') sh "ccache -s" } } @@ -64,8 +64,8 @@ pipeline { stage('package') { steps { sh 'export' - sh('make px4sitl_default package') - stash(name: "px4_sitl_package", includes: "build/px4sitl_default/*.bz2") + sh('make px4_sitl_default package') + stash(name: "px4_sitl_package", includes: "build/px4_sitl_default/*.bz2") } } @@ -176,7 +176,7 @@ pipeline { steps { sh 'export' sh 'make distclean' - sh 'make px4sitl_default test_results_junit' + sh 'make px4_sitl_default test_results_junit' withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) { sh 'curl -s https://codecov.io/bash | bash -s - -F unittest' } @@ -221,11 +221,11 @@ def createTestNode(Map test_def) { } unstash('px4_sitl_package') - sh('tar -xjpvf build/px4sitl_default/px4-px4sitl_default*.bz2') + sh('tar -xjpvf build/px4_sitl_default/px4-px4_sitl_default*.bz2') // run test try { - sh('px4-px4sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) + sh('px4-px4_sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) } catch (exc) { // save all test artifacts for debugging @@ -240,7 +240,7 @@ def createTestNode(Map test_def) { // process log data (with python code coverage) try { - sh('coverage run -p px4-px4sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') + sh('coverage run -p px4-px4_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') } catch (exc) { // save log analysis artifacts for debugging archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.pdf, .ros/**/*.csv') @@ -249,7 +249,7 @@ def createTestNode(Map test_def) { } // upload log to flight review (https://logs.px4.io/) with python code coverage - sh('coverage run -p px4-px4sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') + sh('coverage run -p px4-px4_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') // upload python code coverage to codecov.io sh 'curl -s https://codecov.io/bash | bash -s - -X gcov -F sitl_python_${STAGE_NAME}' @@ -257,7 +257,7 @@ def createTestNode(Map test_def) { } else { // non code coverage // process ekf log data try { - sh('px4-px4sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') + sh('px4-px4_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') } catch (exc) { // save log analysis artifacts for debugging archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.pdf, .ros/**/*.csv') @@ -266,7 +266,7 @@ def createTestNode(Map test_def) { } // upload log to flight review (https://logs.px4.io/) - sh('px4-px4sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') + sh('px4-px4_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') } if (!test_ok) { diff --git a/.ci/Jenkinsfile-compile b/.ci/Jenkinsfile-compile index 63d86451a3ce336c29b82e76de64830f0c90ba2b..18cfaa65abe9e36e2c4fdcc51aa25e04239770f7 100644 --- a/.ci/Jenkinsfile-compile +++ b/.ci/Jenkinsfile-compile @@ -18,8 +18,8 @@ pipeline { snapdragon: "lorenzmeier/px4-dev-snapdragon:2018-09-12" ] - // MAC OSX px4sitl_default - build_nodes["px4sitl_default (OSX)"] = { + // MAC OSX px4_sitl_default + build_nodes["px4_sitl_default (OSX)"] = { node("mac") { withEnv(["CCACHE_BASEDIR=${pwd()}"]) { stage("sitl (OSX)") { @@ -28,7 +28,7 @@ pipeline { sh('export') sh('make distclean') sh('ccache -z') - sh('make px4sitl_default') + sh('make px4_sitl_default') sh('ccache -s') sh('make tests') } @@ -43,17 +43,17 @@ pipeline { } } - // MAC OSX px4fmu-v4pro_default - build_nodes["px4fmu-v4pro_default (OSX)"] = { + // MAC OSX px4_fmu-v4pro_default + build_nodes["px4_fmu-v4pro_default (OSX)"] = { node("mac") { withEnv(["CCACHE_BASEDIR=${pwd()}"]) { - stage("px4fmu-v4pro (OSX)") { + stage("px4_fmu-v4pro (OSX)") { try { checkout(scm) sh('export') sh('make distclean') sh('ccache -z') - sh('make px4fmu-v4pro_default') + sh('make px4_fmu-v4pro_default') sh('ccache -s') } catch (exc) { @@ -69,46 +69,46 @@ pipeline { // docker builds: def arch_builds = [ - target: ["px4sitl_default"], + target: ["px4_sitl_default"], image: docker_images.arch, archive: false ] def armhf_builds = [ - target: ["aerotennaocpoc_ubuntu"], + target: ["aerotenna_ocpoc_ubuntu"], image: docker_images.armhf, archive: false ] def base_builds = [ - target: ["px4sitl_rtps"], + target: ["px4_sitl_rtps"], image: docker_images.base, archive: false ] def nuttx_builds_archive = [ - target: ["px4fmu-v2_default", "px4fmu-v3_default", "px4fmu-v4_default", "px4fmu-v4pro_default", "px4fmu-v5_default", "px4fmu-v5_rtps", "px4fmu-v5_stackcheck", - "intelaerofc-v1_default", "gumstixaerocore2_default", "auavx21_default", "avx-v1_default", "bitcrazecrazyflie_default", "airmindmindpx-v2_default", - "nxphlite-v3_default", "omnibusf4sd_default"], + target: ["px4_fmu-v2_default", "px4_fmu-v3_default", "px4_fmu-v4_default", "px4_fmu-v4pro_default", "px4_fmu-v5_default", "px4_fmu-v5_rtps", "px4_fmu-v5_stackcheck", + "intel_aerofc-v1_default", "gumstix_aerocore2_default", "auav_x21_default", "av_x-v1_default", "bitcraze_crazyflie_default", "airmind_mindpx-v2_default", + "nxp_hlite-v3_default", "omnibus_f4sd_default"], image: docker_images.nuttx, archive: true ] def nuttx_builds_other = [ - target: ["atmelsame70xplained_default", "stm32f4discovery_default", "px4cannode-v1_default", - "px4esc-v1_default", "stmnucleo-F767ZI_default", "thiemars2740vc-v1_default"], + target: ["atmel_same70xplained_default", "stm_32f4discovery_default", "px4_cannode-v1_default", + "px4_esc-v1_default", "stm_nucleo-F767ZI_default", "thiemar_s2740vc-v1_default"], image: docker_images.nuttx, archive: false ] def rpi_builds = [ - target: ["emlidnavio2_cross", "parrotbebop_default"], + target: ["emlid_navio2_cross", "parrot_bebop_default"], image: docker_images.rpi, archive: false ] def snapdragon_builds = [ - target: ["atlflighteagle_qurt-default", "atlflighteagle_default"], + target: ["atlflight_eagle_qurt-default", "atlflight_eagle_default"], image: docker_images.snapdragon, archive: false ] diff --git a/.ci/Jenkinsfile-hardware b/.ci/Jenkinsfile-hardware index e95c743d4b971a423d8ac5f201984887bdb923ea..3c20937232be152e1d4b8752e455340e9b458f46 100644 --- a/.ci/Jenkinsfile-hardware +++ b/.ci/Jenkinsfile-hardware @@ -6,7 +6,7 @@ pipeline { parallel { - stage('px4fmu-v2') { + stage('px4_fmu-v2') { agent { docker { image 'px4io/px4-dev-nuttx:2018-11-22' @@ -18,11 +18,11 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make px4fmu-v2_test' + sh 'make px4_fmu-v2_test' sh 'make sizes' sh 'ccache -s' - stash includes: 'build/px4fmu-v2_test/px4fmu-v2_test.elf', name: 'px4fmu-v2_test' - stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4fmu-v2' + stash includes: 'build/px4_fmu-v2_test/px4_fmu-v2_test.elf', name: 'px4_fmu-v2_test' + stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v2' } post { always { @@ -31,7 +31,7 @@ pipeline { } } - stage('px4fmu-v4 (stackcheck)') { + stage('px4_fmu-v4 (stackcheck)') { agent { docker { image 'px4io/px4-dev-nuttx:2018-11-22' @@ -43,11 +43,11 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make px4fmu-v4_stackcheck' + sh 'make px4_fmu-v4_stackcheck' sh 'make sizes' sh 'ccache -s' - stash includes: 'build/px4fmu-v4_stackcheck/px4fmu-v4_stackcheck.elf', name: 'px4fmu-v4_stackcheck' - stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4fmu-v4' + stash includes: 'build/px4_fmu-v4_stackcheck/px4_fmu-v4_stackcheck.elf', name: 'px4_fmu-v4_stackcheck' + stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v4' } post { always { @@ -63,7 +63,7 @@ pipeline { parallel { - stage('px4fmu-v2') { + stage('px4_fmu-v2') { agent { label 'px4fmu-v2' } @@ -72,8 +72,8 @@ pipeline { try { sh 'export' sh 'find /dev/serial' - unstash 'scripts-px4fmu-v2' - unstash 'px4fmu-v2_test' + unstash 'scripts-px4_fmu-v2' + unstash 'px4_fmu-v2_test' sh ''' gdb -nx --batch \ -ex "target extended-remote `find /dev/serial -name *Black_Magic_Probe_*-if00`" \ -ex "monitor version" \ @@ -82,7 +82,7 @@ pipeline { -ex "attach 1" \ -ex "load" \ -ex "kill" \ - build/px4fmu-v2_test/px4fmu-v2_test.elf + build/px4_fmu-v2_test/px4_fmu-v2_test.elf ''' sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02` --baudrate 57600' sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02`' @@ -97,7 +97,7 @@ pipeline { } } - stage('px4fmu-v4') { + stage('px4_fmu-v4') { agent { label 'px4fmu-v4' } @@ -106,8 +106,8 @@ pipeline { try { sh 'export' sh 'find /dev/serial' - unstash 'scripts-px4fmu-v4' - unstash 'px4fmu-v4_stackcheck' + unstash 'scripts-px4_fmu-v4' + unstash 'px4_fmu-v4_stackcheck' sh ''' gdb -nx --batch \ -ex "target extended-remote `find /dev/serial -name *Black_Magic_Probe_*-if00`" \ -ex "monitor version" \ @@ -116,7 +116,7 @@ pipeline { -ex "attach 1" \ -ex "load" \ -ex "kill" \ - build/px4fmu-v4_stackcheck/px4fmu-v4_stackcheck.elf + build/px4_fmu-v4_stackcheck/px4_fmu-v4_stackcheck.elf ''' sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02` --baudrate 57600' sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02`' diff --git a/.travis.yml b/.travis.yml index 53399ae06e4e091fc39a21e00376f7016079d61a..00b8e1a88e4866a1af29822e4789bff1781f431d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,5 +28,5 @@ addons: description: "Build submitted via Travis CI" notification_email: ci@px4.io build_command_prepend: "make distclean" - build_command: "make px4sitl_default" + build_command: "make px4_sitl_default" branch_pattern: coverity_scan diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index ce7bd3b756aa6b0d79e078a3e70a13eb4d5c8e0b..83086da9e44b03b7684028f78e464208090eea5a 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -61,7 +61,7 @@ flags = [ 'c++', '-undef', # get rid of standard definitions to allow us to include arm math header '-I', os.path.join(os.path.expanduser("~"),'gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include'), -'-I', 'Build/px4io-v2_default.build/nuttx-export/include/', +'-I', 'Build/px4_io-v2_default.build/nuttx-export/include/', '-I', './NuttX/nuttx/arch/arm/include', '-include', './src/include/visibility.h', '-I', './src', diff --git a/CMakeLists.txt b/CMakeLists.txt index fce4003d0d3fc43c50bb7ab112bbe05c7f917438..8213d4cd6a5576cdafdf3bca5eea8acb5a60718e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,7 @@ define_property(GLOBAL PROPERTY PX4_MODULE_PATHS # configuration # -set(CONFIG "px4sitl_default" CACHE STRING "desired configuration") +set(CONFIG "px4_sitl_default" CACHE STRING "desired configuration") set(config_module_list) set(config_df_driver_list) @@ -173,8 +173,8 @@ if(NOT PX4_CONFIG_FILE) break() endif() - # <BOARD>_<LABEL> (eg px4fmu-v2_default) - # <BOARD>_default (eg px4fmu-v2) # allow skipping label if "default" + # <BOARD>_<LABEL> (eg px4_fmu-v2_default) + # <BOARD>_default (eg px4_fmu-v2) # allow skipping label if "default" if ((${CONFIG} MATCHES "${board}_${label}") OR # match full board, label ((${label} STREQUAL "default") AND (${CONFIG} STREQUAL "${board}")) # default label can be omitted ) @@ -184,7 +184,7 @@ if(NOT PX4_CONFIG_FILE) # LEGACY form - # <OS>_<BOARD>_<LABEL> (eg nuttx_px4fmu-v2_default) + # <OS>_<BOARD>_<LABEL> (eg nuttx_px4_fmu-v2_default) string(REGEX REPLACE "^nuttx_|^posix_|^qurt_" "" config_no_os ${CONFIG}) # ignore OS prefix if ((${config_no_os} MATCHES "${board}_${label}")) @@ -212,7 +212,7 @@ endif() message(STATUS "PX4 config file: ${PX4_CONFIG_FILE}") include(px4_add_board) include(${PX4_CONFIG_FILE}) -message(STATUS "PX4 config: ${PX4_BOARD_VENDOR} ${PX4_BOARD_MODEL} ${PX4_BOARD_LABEL}") +message(STATUS "PX4 config: ${PX4_BOARD_VENDOR}_${PX4_BOARD_MODEL}_${PX4_BOARD_LABEL}") message(STATUS "PX4 platform: ${PX4_PLATFORM}") # external modules diff --git a/Firmware.sublime-project b/Firmware.sublime-project index 5e97ff8b25ce59f04b3b311dac82d2d252d164f8..d89a58de3f195221378730c10108e77c15a095a4 100644 --- a/Firmware.sublime-project +++ b/Firmware.sublime-project @@ -62,7 +62,7 @@ "name": "PX4: make and upload", "working_dir": "${project_path}", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", - "cmd": ["make upload px4fmu-v2_default -j8"], + "cmd": ["make upload px4_fmu-v2_default -j8"], "shell": true }, { diff --git a/Jenkinsfile b/Jenkinsfile index ca6342f4ec6e060500c0e619ccfee52ae81e4bb1..2bd8ee9dd8627495f21d757e28be7516945f054e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,7 +50,7 @@ pipeline { } } - stage('Bloaty px4fmu-v2') { + stage('Bloaty px4_fmu-v2') { agent { docker { image 'px4io/px4-dev-nuttx:2018-11-22' @@ -62,12 +62,12 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make px4fmu-v2_default' - sh 'make px4fmu-v2_default bloaty_symbols' - sh 'make px4fmu-v2_default bloaty_compileunits' - sh 'make px4fmu-v2_default bloaty_inlines' - sh 'make px4fmu-v2_default bloaty_templates' - sh 'make px4fmu-v2_default bloaty_compare_master' + sh 'make px4_fmu-v2_default' + sh 'make px4_fmu-v2_default bloaty_symbols' + sh 'make px4_fmu-v2_default bloaty_compileunits' + sh 'make px4_fmu-v2_default bloaty_inlines' + sh 'make px4_fmu-v2_default bloaty_templates' + sh 'make px4_fmu-v2_default bloaty_compare_master' sh 'make sizes' sh 'ccache -s' } @@ -78,7 +78,7 @@ pipeline { } } - stage('Bloaty px4fmu-v5') { + stage('Bloaty px4_fmu-v5') { agent { docker { image 'px4io/px4-dev-nuttx:2018-11-22' @@ -90,12 +90,12 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make px4fmu-v5_default' - sh 'make px4fmu-v5_default bloaty_symbols' - sh 'make px4fmu-v5_default bloaty_compileunits' - sh 'make px4fmu-v5_default bloaty_inlines' - sh 'make px4fmu-v5_default bloaty_templates' - sh 'make px4fmu-v5_default bloaty_compare_master' + sh 'make px4_fmu-v5_default' + sh 'make px4_fmu-v5_default bloaty_symbols' + sh 'make px4_fmu-v5_default bloaty_compileunits' + sh 'make px4_fmu-v5_default bloaty_inlines' + sh 'make px4_fmu-v5_default bloaty_templates' + sh 'make px4_fmu-v5_default bloaty_compare_master' sh 'make sizes' sh 'ccache -s' } @@ -211,7 +211,7 @@ pipeline { steps { sh 'export' sh 'make distclean' - sh 'make px4fmu-v2_default stack_check' + sh 'make px4_fmu-v2_default stack_check' } post { always { @@ -272,7 +272,7 @@ pipeline { steps { sh 'make distclean' sh 'make airframe_metadata' - dir('build/px4sitl_default/docs') { + dir('build/px4_sitl_default/docs') { archiveArtifacts(artifacts: 'airframes.md, airframes.xml') stash includes: 'airframes.md, airframes.xml', name: 'metadata_airframes' } @@ -291,7 +291,7 @@ pipeline { steps { sh 'make distclean' sh 'make parameters_metadata' - dir('build/px4sitl_default/docs') { + dir('build/px4_sitl_default/docs') { archiveArtifacts(artifacts: 'parameters.md, parameters.xml') stash includes: 'parameters.md, parameters.xml', name: 'metadata_parameters' } @@ -310,7 +310,7 @@ pipeline { steps { sh 'make distclean' sh 'make module_documentation' - dir('build/px4sitl_default/docs') { + dir('build/px4_sitl_default/docs') { archiveArtifacts(artifacts: 'modules/*.md') stash includes: 'modules/*.md', name: 'metadata_module_documentation' } @@ -334,8 +334,8 @@ pipeline { sh 'make distclean' sh 'make uorb_graphs' dir('Tools/uorb_graph') { - archiveArtifacts(artifacts: 'graph_px4sitl.json') - stash includes: 'graph_px4sitl.json', name: 'uorb_graph' + archiveArtifacts(artifacts: 'graph_px4_sitl.json') + stash includes: 'graph_px4_sitl.json', name: 'uorb_graph' } } post { diff --git a/Makefile b/Makefile index 437d952abb6f89adcaa7da3e765e19373f80b587..b9b656644610136706b2d9b6c1bfbcb948be63c9 100644 --- a/Makefile +++ b/Makefile @@ -48,16 +48,16 @@ endif # # Example usage: # -# make px4fmu-v2_default (builds) -# make px4fmu-v2_default upload (builds and uploads) -# make px4fmu-v2_default test (builds and tests) +# make px4_fmu-v2_default (builds) +# make px4_fmu-v2_default upload (builds and uploads) +# make px4_fmu-v2_default test (builds and tests) # -# This tells cmake to build the nuttx px4fmu-v2 default config in the -# directory build/px4fmu-v2_default and then call make +# This tells cmake to build the nuttx px4_fmu-v2 default config in the +# directory build/px4_fmu-v2_default and then call make # in that directory with the target upload. # explicity set default build target -all: px4sitl_default +all: px4_sitl_default # Parsing # -------------------------------------------------------------------- @@ -157,7 +157,7 @@ define colorecho endef # Get a list of all config targets boards/*/*.cmake -ALL_CONFIG_TARGETS := $(shell find boards -maxdepth 3 -mindepth 3 ! -name '*common*' ! -name '*sdflight*' -name '*.cmake' -print | sed -e 's/boards\///' | sed -e 's/\.cmake//' | sed -e 's/\///' | sed -e 's/\//_/g' | sort) +ALL_CONFIG_TARGETS := $(shell find boards -maxdepth 3 -mindepth 3 ! -name '*common*' ! -name '*sdflight*' -name '*.cmake' -print | sed -e 's/boards\///' | sed -e 's/\.cmake//' | sed -e 's/\//_/g' | sort) # Strip off default CONFIG_TARGETS_DEFAULT := $(patsubst %_default,%,$(filter %_default,$(ALL_CONFIG_TARGETS))) @@ -183,18 +183,18 @@ $(CONFIG_TARGETS_DEFAULT): all_default_targets: $(CONFIG_TARGETS_DEFAULT) -posix: px4sitl_default -posix_sitl_default: px4sitl_default +posix: px4_sitl_default +posix_sitl_default: px4_sitl_default # All targets with just dependencies but no recipe must either be marked as phony (or have the special @: as recipe). -.PHONY: all posix posix_sitl_default all_nuttx_targets all_default_targets +.PHONY: all posix px4_sitl_default all_nuttx_targets all_default_targets # Multi- config targets. -eagle_default: atlflighteagle_default atlflighteagle_qurt-default -eagle_rtps: atlflighteagle_rtps atlflighteagle_qurt-rtps +eagle_default: atlflight_eagle_default atlflight_eagle_qurt-default +eagle_rtps: atlflight_eagle_rtps atlflight_eagle_qurt-rtps -excelsior_default: atlflightexcelsior_default atlflightexcelsior_qurt-default -excelsior_rtps: atlflightexcelsior_rtps atlflightexcelsior_qurt-rtps +excelsior_default: atlflight_excelsior_default atlflight_excelsior_qurt-default +excelsior_rtps: atlflight_excelsior_rtps atlflight_excelsior_qurt-rtps .PHONY: eagle_default eagle_rtps .PHONY: excelsior_default excelsior_rtps @@ -209,40 +209,40 @@ qgc_firmware: px4fmu_firmware misc_qgc_extra_firmware # px4fmu NuttX firmware px4fmu_firmware: \ - check_px4io-v2_default \ - check_px4fmu-v2_default \ - check_px4fmu-v3_default \ - check_px4fmu-v4_default \ - check_px4fmu-v4pro_default \ - check_px4fmu-v5_default \ + check_px4_io-v2_default \ + check_px4_fmu-v2_default \ + check_px4_fmu-v3_default \ + check_px4_fmu-v4_default \ + check_px4_fmu-v4pro_default \ + check_px4_fmu-v5_default \ sizes misc_qgc_extra_firmware: \ - check_gumstixaerocore2_default \ - check_intelaerofc-v1_default \ - check_auavx21_default \ - check_bitcrazecrazyflie_default \ - check_airmindmindpx-v2_default \ - check_px4fmu-v2_lpe \ + check_gumstix_aerocore2_default \ + check_intel_aerofc-v1_default \ + check_auav_x21_default \ + check_bitcraze_crazyflie_default \ + check_airmind_mindpx-v2_default \ + check_px4_fmu-v2_lpe \ sizes # Other NuttX firmware alt_firmware: \ - check_nxphlite-v3_default \ - check_atmelsame70xplained_default \ - check_stm32f4discovery_default \ - check_px4cannode-v1_default \ - check_px4esc-v1_default \ - check_stmnucleo-F767ZI_default \ - check_thiemars2740vc-v1_default \ + check_nxp_hlite-v3_default \ + check_atmel_same70xplained_default \ + check_stm_32f4discovery_default \ + check_px4_cannode-v1_default \ + check_px4_esc-v1_default \ + check_stm_nucleo-F767ZI_default \ + check_thiemar_s2740vc-v1_default \ sizes # builds with RTPS check_rtps: \ - check_px4fmu-v3_rtps \ - check_px4fmu-v4_rtps \ - check_px4fmu-v4pro_rtps \ - check_px4sitl_rtps \ + check_px4_fmu-v3_rtps \ + check_px4_fmu-v4_rtps \ + check_px4_fmu-v4pro_rtps \ + check_px4_sitl_rtps \ sizes .PHONY: sizes check quick_check check_rtps uorb_graphs @@ -251,10 +251,10 @@ sizes: @-find build -name *.elf -type f | xargs size 2> /dev/null || : # All default targets that don't require a special build environment -check: check_posix_sitl_default px4fmu_firmware misc_qgc_extra_firmware alt_firmware tests check_format +check: check_px4_sitl_default px4fmu_firmware misc_qgc_extra_firmware alt_firmware tests check_format # quick_check builds a single nuttx and posix target, runs testing, and checks the style -quick_check: check_posix_sitl_default check_px4fmu-v4pro_default tests check_format +quick_check: check_px4_sitl_default check_px4_fmu-v4pro_default tests check_format check_%: @echo @@ -265,33 +265,33 @@ check_%: uorb_graphs: @./Tools/uorb_graph/create_from_startupscript.sh @./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --file Tools/uorb_graph/graph_full - @$(MAKE) --no-print-directory px4fmu-v2_default uorb_graph - @$(MAKE) --no-print-directory px4fmu-v4_default uorb_graph - @$(MAKE) --no-print-directory posix_sitl_default uorb_graph + @$(MAKE) --no-print-directory px4_fmu-v2_default uorb_graph + @$(MAKE) --no-print-directory px4_fmu-v4_default uorb_graph + @$(MAKE) --no-print-directory px4_sitl_default uorb_graph .PHONY: coverity_scan -coverity_scan: posix_sitl_default +coverity_scan: px4_sitl_default # Documentation # -------------------------------------------------------------------- .PHONY: parameters_metadata airframe_metadata module_documentation px4_metadata doxygen parameters_metadata: - @$(MAKE) --no-print-directory posix_sitl_default metadata_parameters + @$(MAKE) --no-print-directory px4_sitl_default metadata_parameters airframe_metadata: - @$(MAKE) --no-print-directory posix_sitl_default metadata_airframes + @$(MAKE) --no-print-directory px4_sitl_default metadata_airframes module_documentation: - @$(MAKE) --no-print-directory posix_sitl_default metadata_module_documentation + @$(MAKE) --no-print-directory px4_sitl_default metadata_module_documentation px4_metadata: parameters_metadata airframe_metadata module_documentation doxygen: @mkdir -p "$(SRC_DIR)"/build/doxygen - @cd "$(SRC_DIR)"/build/doxygen && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=posix_sitl_default -DBUILD_DOXYGEN=ON + @cd "$(SRC_DIR)"/build/doxygen && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=px4_sitl_default -DBUILD_DOXYGEN=ON @$(PX4_MAKE) -C "$(SRC_DIR)"/build/doxygen @touch "$(SRC_DIR)"/build/doxygen/Documentation/.nojekyll @@ -313,27 +313,27 @@ format: .PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard rostest python_coverage tests: - @$(MAKE) --no-print-directory posix_sitl_default test_results \ + @$(MAKE) --no-print-directory px4_sitl_default test_results \ ASAN_OPTIONS="color=always:check_initialization_order=1:detect_stack_use_after_return=1" \ UBSAN_OPTIONS="color=always" tests_coverage: @$(MAKE) clean - @$(MAKE) --no-print-directory posix_sitl_default test_coverage_genhtml PX4_CMAKE_BUILD_TYPE=Coverage - @echo "Open "$(SRC_DIR)"/build/posix_sitl_default/coverage-html/index.html to see coverage" + @$(MAKE) --no-print-directory px4_sitl_default test_coverage_genhtml PX4_CMAKE_BUILD_TYPE=Coverage + @echo "Open "$(SRC_DIR)"/build/px4_sitl_default/coverage-html/index.html to see coverage" -rostest: posix_sitl_default - @$(MAKE) --no-print-directory posix_sitl_default sitl_gazebo +rostest: px4_sitl_default + @$(MAKE) --no-print-directory px4_sitl_default sitl_gazebo tests_mission: rostest @"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_missions.test tests_mission_coverage: @$(MAKE) clean - @$(MAKE) --no-print-directory posix_sitl_default PX4_CMAKE_BUILD_TYPE=Coverage - @$(MAKE) --no-print-directory posix_sitl_default sitl_gazebo PX4_CMAKE_BUILD_TYPE=Coverage + @$(MAKE) --no-print-directory px4_sitl_default PX4_CMAKE_BUILD_TYPE=Coverage + @$(MAKE) --no-print-directory px4_sitl_default sitl_gazebo PX4_CMAKE_BUILD_TYPE=Coverage @"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=VTOL_mission_1 vehicle:=standard_vtol - @$(MAKE) --no-print-directory posix_sitl_default generate_coverage + @$(MAKE) --no-print-directory px4_sitl_default generate_coverage tests_offboard: rostest @"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_offboard_attctl.test @@ -341,7 +341,7 @@ tests_offboard: rostest python_coverage: @mkdir -p "$(SRC_DIR)"/build/python_coverage - @cd "$(SRC_DIR)"/build/python_coverage && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=posix_sitl_default -DPYTHON_COVERAGE=ON + @cd "$(SRC_DIR)"/build/python_coverage && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=px4_sitl_default -DPYTHON_COVERAGE=ON @$(PX4_MAKE) -C "$(SRC_DIR)"/build/python_coverage @$(PX4_MAKE) -C "$(SRC_DIR)"/build/python_coverage metadata_airframes @$(PX4_MAKE) -C "$(SRC_DIR)"/build/python_coverage metadata_parameters @@ -351,45 +351,45 @@ python_coverage: # static analyzers (scan-build, clang-tidy, cppcheck) # -------------------------------------------------------------------- -.PHONY: scan-build posix_sitl_default-clang clang-tidy clang-tidy-fix clang-tidy-quiet +.PHONY: scan-build px4_sitl_default-clang clang-tidy clang-tidy-fix clang-tidy-quiet .PHONY: cppcheck shellcheck_all validate_module_configs scan-build: @export CCC_CC=clang @export CCC_CXX=clang++ - @rm -rf "$(SRC_DIR)"/build/posix_sitl_default-scan-build + @rm -rf "$(SRC_DIR)"/build/px4_sitl_default-scan-build @rm -rf "$(SRC_DIR)"/build/scan-build/report_latest - @mkdir -p "$(SRC_DIR)"/build/posix_sitl_default-scan-build - @cd "$(SRC_DIR)"/build/posix_sitl_default-scan-build && scan-build cmake "$(SRC_DIR)" -GNinja -DCONFIG=posix_sitl_default - @scan-build -o "$(SRC_DIR)"/build/scan-build cmake --build "$(SRC_DIR)"/build/posix_sitl_default-scan-build + @mkdir -p "$(SRC_DIR)"/build/px4_sitl_default-scan-build + @cd "$(SRC_DIR)"/build/px4_sitl_default-scan-build && scan-build cmake "$(SRC_DIR)" -GNinja -DCONFIG=px4_sitl_default + @scan-build -o "$(SRC_DIR)"/build/scan-build cmake --build "$(SRC_DIR)"/build/px4_sitl_default-scan-build @find "$(SRC_DIR)"/build/scan-build -maxdepth 1 -mindepth 1 -type d -exec cp -r "{}" "$(SRC_DIR)"/build/scan-build/report_latest \; -posix_sitl_default-clang: - @mkdir -p "$(SRC_DIR)"/build/posix_sitl_default-clang - @cd "$(SRC_DIR)"/build/posix_sitl_default-clang && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=posix_sitl_default -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ - @$(PX4_MAKE) -C "$(SRC_DIR)"/build/posix_sitl_default-clang +px4_sitl_default-clang: + @mkdir -p "$(SRC_DIR)"/build/px4_sitl_default-clang + @cd "$(SRC_DIR)"/build/px4_sitl_default-clang && cmake "$(SRC_DIR)" $(CMAKE_ARGS) -G"$(PX4_CMAKE_GENERATOR)" -DCONFIG=px4_sitl_default -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ + @$(PX4_MAKE) -C "$(SRC_DIR)"/build/px4_sitl_default-clang -clang-tidy: posix_sitl_default-clang - @cd "$(SRC_DIR)"/build/posix_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p . +clang-tidy: px4_sitl_default-clang + @cd "$(SRC_DIR)"/build/px4_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p . # to automatically fix a single check at a time, eg modernize-redundant-void-arg # % run-clang-tidy-4.0.py -fix -j4 -checks=-\*,modernize-redundant-void-arg -p . -clang-tidy-fix: posix_sitl_default-clang - @cd "$(SRC_DIR)"/build/posix_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -fix -p . +clang-tidy-fix: px4_sitl_default-clang + @cd "$(SRC_DIR)"/build/px4_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -fix -p . # modified version of run-clang-tidy.py to return error codes and only output relevant results -clang-tidy-quiet: posix_sitl_default-clang - @cd "$(SRC_DIR)"/build/posix_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p . +clang-tidy-quiet: px4_sitl_default-clang + @cd "$(SRC_DIR)"/build/px4_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p . # TODO: Fix cppcheck errors then try --enable=warning,performance,portability,style,unusedFunction or --enable=all -cppcheck: posix_sitl_default +cppcheck: px4_sitl_default @mkdir -p "$(SRC_DIR)"/build/cppcheck - @cppcheck -i"$(SRC_DIR)"/src/examples --enable=performance --std=c++11 --std=c99 --std=posix --project="$(SRC_DIR)"/build/posix_sitl_default/compile_commands.json --xml-version=2 2> "$(SRC_DIR)"/build/cppcheck/cppcheck-result.xml > /dev/null + @cppcheck -i"$(SRC_DIR)"/src/examples --enable=performance --std=c++11 --std=c99 --std=posix --project="$(SRC_DIR)"/build/px4_sitl_default/compile_commands.json --xml-version=2 2> "$(SRC_DIR)"/build/cppcheck/cppcheck-result.xml > /dev/null @cppcheck-htmlreport --source-encoding=ascii --file="$(SRC_DIR)"/build/cppcheck/cppcheck-result.xml --report-dir="$(SRC_DIR)"/build/cppcheck --source-dir="$(SRC_DIR)"/src/ shellcheck_all: @"$(SRC_DIR)"/Tools/run-shellcheck.sh "$(SRC_DIR)"/ROMFS/px4fmu_common/ - @make px4fmu-v2_default shellcheck + @make px4_fmu-v2_default shellcheck validate_module_configs: @find "$(SRC_DIR)"/src/modules "$(SRC_DIR)"/src/drivers "$(SRC_DIR)"/src/lib -name *.yaml -type f -print0 | xargs -0 "$(SRC_DIR)"/Tools/validate_yaml.py --schema-file "$(SRC_DIR)"/validation/module_schema.yaml diff --git a/ROMFS/px4fmu_common/init.d/13004_quad+_tailsitter b/ROMFS/px4fmu_common/init.d/13004_quad+_tailsitter index cebe3c8a498607c54ff710854194c41725431587..b1833db25a93bfe36aac7a0104fb12efe017dd5b 100644 --- a/ROMFS/px4fmu_common/init.d/13004_quad+_tailsitter +++ b/ROMFS/px4fmu_common/init.d/13004_quad+_tailsitter @@ -16,7 +16,7 @@ # # @maintainer Roman Bapst <roman@px4.io> # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # sh /etc/init.d/rc.vtol_defaults diff --git a/ROMFS/px4fmu_common/init.d/13010_claire b/ROMFS/px4fmu_common/init.d/13010_claire index 981d7b8666499e75e38e72ea7ef2e2ad0a14caad..f132dfe38d7d21533ed8d72f718fd9bf60796dd0 100644 --- a/ROMFS/px4fmu_common/init.d/13010_claire +++ b/ROMFS/px4fmu_common/init.d/13010_claire @@ -7,7 +7,7 @@ # # @maintainer Samay Siga <samay_s@icloud.com> # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # sh /etc/init.d/rc.vtol_defaults diff --git a/ROMFS/px4fmu_common/init.d/4003_qavr5 b/ROMFS/px4fmu_common/init.d/4003_qavr5 index 5da6d7fe8bca3d32e8c7fdf7f7402b85ceac2905..2e36578a5aeb5ecaea588ea83cd8806d809cc4d9 100644 --- a/ROMFS/px4fmu_common/init.d/4003_qavr5 +++ b/ROMFS/px4fmu_common/init.d/4003_qavr5 @@ -5,7 +5,7 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # # @maintainer James Goppert <james.goppert@gmail.com> # diff --git a/ROMFS/px4fmu_common/init.d/4013_bebop b/ROMFS/px4fmu_common/init.d/4013_bebop index 37669463b26001c11d6c7326a2f79bd769439c3c..f88323709600518f087d4adc5f2d2e4f7e1aef0c 100644 --- a/ROMFS/px4fmu_common/init.d/4013_bebop +++ b/ROMFS/px4fmu_common/init.d/4013_bebop @@ -5,11 +5,11 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # # @maintainer Michael Schaeuble diff --git a/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb b/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb index ce9e7fb59683392af318c303afc15b28c5de1649..f0011d2f62c4174717497c55956ce3b07c6f996f 100644 --- a/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb +++ b/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb @@ -5,11 +5,11 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # # @maintainer Thomas Gubler <thomas@px4.io> diff --git a/ROMFS/px4fmu_common/init.d/4030_3dr_solo b/ROMFS/px4fmu_common/init.d/4030_3dr_solo index 089245826d27494b9266e84762cefc0b29194a68..41a227471d659cd14785130bcae8729c0a076574 100644 --- a/ROMFS/px4fmu_common/init.d/4030_3dr_solo +++ b/ROMFS/px4fmu_common/init.d/4030_3dr_solo @@ -5,10 +5,10 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # # @maintainer Andreas Antener <andreas@uaventure.com> diff --git a/ROMFS/px4fmu_common/init.d/4051_s250aq b/ROMFS/px4fmu_common/init.d/4051_s250aq index e861fa637c764aa78c884baf781f8a70da65b38a..5a2e7389d80eafbda31628131267696e8cdebaae 100644 --- a/ROMFS/px4fmu_common/init.d/4051_s250aq +++ b/ROMFS/px4fmu_common/init.d/4051_s250aq @@ -3,7 +3,7 @@ # @name Spedix S250AQ # @url https://docs.px4.io/en/framebuild_multicopter/spedix_s250_pixracer.html # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # # @type Quadrotor asymmetric # @class Copter diff --git a/ROMFS/px4fmu_common/init.d/4070_aerofc b/ROMFS/px4fmu_common/init.d/4070_aerofc index 84d81fcada2e52b750870ee7b6bd75579464c1a6..6956500f4452870716a79400aa7ce6c5778fab73 100644 --- a/ROMFS/px4fmu_common/init.d/4070_aerofc +++ b/ROMFS/px4fmu_common/init.d/4070_aerofc @@ -2,11 +2,11 @@ # # @name Intel Aero Ready to Fly Drone # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # # @type Quadrotor x # @class Copter diff --git a/ROMFS/px4fmu_common/init.d/4080_zmr250 b/ROMFS/px4fmu_common/init.d/4080_zmr250 index f2d85a8982ac900d7a6c6dcaaa962d66c25779fe..14266101d2bad12f4f41cac1b59f9f1f0341c49b 100644 --- a/ROMFS/px4fmu_common/init.d/4080_zmr250 +++ b/ROMFS/px4fmu_common/init.d/4080_zmr250 @@ -5,7 +5,7 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # # @maintainer Anton Matosov <anton.matosov@gmail.com> # diff --git a/ROMFS/px4fmu_common/init.d/4090_nanomind b/ROMFS/px4fmu_common/init.d/4090_nanomind index e4a47d0d22735abe586f90430fafaffde77d5d43..50ca9fb895f0d92f834b5dc1099a32c6e0372775 100644 --- a/ROMFS/px4fmu_common/init.d/4090_nanomind +++ b/ROMFS/px4fmu_common/init.d/4090_nanomind @@ -5,11 +5,11 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # # @maintainer Henry Zhang <zhanghui629@gmail.com> diff --git a/ROMFS/px4fmu_common/init.d/4250_teal b/ROMFS/px4fmu_common/init.d/4250_teal index 881bc8084df3b33eb94e15a7c710a032df9061ef..233491db050381e383823e5075be7aeeef8a1ea6 100644 --- a/ROMFS/px4fmu_common/init.d/4250_teal +++ b/ROMFS/px4fmu_common/init.d/4250_teal @@ -5,10 +5,10 @@ # @type Quadrotor x # @class Copter # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # # @output MAIN1 motor 1 # @output MAIN2 motor 2 diff --git a/ROMFS/px4fmu_common/init.d/4900_crazyflie b/ROMFS/px4fmu_common/init.d/4900_crazyflie index 0dcc99af84def6a1003d39e8ce48ac264bc40d7f..b95cbbd93e946e69de2a99868b39e24ebca47bf9 100644 --- a/ROMFS/px4fmu_common/init.d/4900_crazyflie +++ b/ROMFS/px4fmu_common/init.d/4900_crazyflie @@ -2,11 +2,11 @@ # # @name Crazyflie 2.0 # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # # @type Quadrotor x diff --git a/ROMFS/px4fmu_common/init.d/50000_generic_ground_vehicle b/ROMFS/px4fmu_common/init.d/50000_generic_ground_vehicle index dc23d35d90ac6426d84dbf50a849fa7cac2b133e..67c9d96ae61fd38f394a94263145f295148d6448 100644 --- a/ROMFS/px4fmu_common/init.d/50000_generic_ground_vehicle +++ b/ROMFS/px4fmu_common/init.d/50000_generic_ground_vehicle @@ -10,7 +10,7 @@ # # @maintainer # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # sh /etc/init.d/rc.ugv_defaults diff --git a/ROMFS/px4fmu_common/init.d/50001_axialracing_ax10 b/ROMFS/px4fmu_common/init.d/50001_axialracing_ax10 index 7a89a94833394cd5d9bb4db37fe3fb1a724aec67..8d3c4b030613c34e1c93cdfaed64cb9a852e84a1 100644 --- a/ROMFS/px4fmu_common/init.d/50001_axialracing_ax10 +++ b/ROMFS/px4fmu_common/init.d/50001_axialracing_ax10 @@ -14,7 +14,7 @@ # @output MAIN7 pass-through of control group 0, channel 6 # @output MAIN8 pass-through of control group 0, channel 7 # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # sh /etc/init.d/rc.ugv_defaults diff --git a/ROMFS/px4fmu_common/init.d/50002_traxxas_stampede_2wd b/ROMFS/px4fmu_common/init.d/50002_traxxas_stampede_2wd index c7166b291afd09b66361d9fc387bc462acd52a9d..73e41aded3f649f839548dda58782440e242aff4 100644 --- a/ROMFS/px4fmu_common/init.d/50002_traxxas_stampede_2wd +++ b/ROMFS/px4fmu_common/init.d/50002_traxxas_stampede_2wd @@ -12,7 +12,7 @@ # # @maintainer Marco Zorzi # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # sh /etc/init.d/rc.ugv_defaults diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index f8c27b18804801c17e84dc23f7f44e0fa7936ae1..fafdc4ea24e8a7f9340bd067014430154a56ab92 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -25,7 +25,7 @@ then fi fi -if ver hwcmp AEROFC_V1 AV_X_V1 CRAZYFLIE MINDPX_V2 NXPHLITE_V3 PX4FMU_V4 OMNIBUS_F4SD SITL +if ver hwcmp INTEL_AEROFC_V1 AV_X_V1 BITCRAZE_CRAZYFLIE AIRMIND_MINDPX_V2 NXP_HLITE_V3 PX4_FMU_V4 OMNIBUS_F4SD PX4_SITL then set MIXER_AUX none fi diff --git a/ROMFS/px4fmu_common/init.d/rc.logging b/ROMFS/px4fmu_common/init.d/rc.logging index 364eb965ef20d1cc51a3f25e980103bd12c181c6..cc3a11283ce72c26d19e90dc54757cb50aec04c7 100644 --- a/ROMFS/px4fmu_common/init.d/rc.logging +++ b/ROMFS/px4fmu_common/init.d/rc.logging @@ -17,7 +17,7 @@ fi # Begin Setup for board specific configurations. # ############################################################################### -if ver hwcmp PX4FMU_V5 AV_X_V1 +if ver hwcmp PX4_FMU_V5 AV_X_V1 then set LOGGER_BUF 64 fi @@ -36,7 +36,7 @@ then set LOGGER_ARGS "-f" fi -if ver hwcmp AEROFC_V1 +if ver hwcmp INTEL_AEROFC_V1 then set LOGGER_ARGS "-m mavlink" fi diff --git a/ROMFS/px4fmu_common/init.d/rc.mavlink b/ROMFS/px4fmu_common/init.d/rc.mavlink index 9985aded5bb11f077ec0faa5c3defbd446f8dc0a..1a8141ec8a1346c50b22aa1c82601ce72555c232 100644 --- a/ROMFS/px4fmu_common/init.d/rc.mavlink +++ b/ROMFS/px4fmu_common/init.d/rc.mavlink @@ -5,13 +5,13 @@ # NOTE: Script variables are declared/initialized/unset in the rcS script. # -if ! ver hwcmp AEROFC_V1 +if ! ver hwcmp INTEL_AEROFC_V1 then # Start MAVLink on the USB port mavlink start -r 800000 -d /dev/ttyACM0 -m config -x fi -if ver hwcmp PX4FMU_V4 +if ver hwcmp PX4_FMU_V4 then # Pixracer: start MAVLink on Wifi (ESP8266 port) mavlink start -r 20000 -b 921600 -d /dev/ttyS0 diff --git a/ROMFS/px4fmu_common/init.d/rc.mc_apps b/ROMFS/px4fmu_common/init.d/rc.mc_apps index b48fa3f4cb3b688d15c2eb03ef3d3224bcb14d98..1f2f03bcf56a49c2f294f54efb850dfcf4ecc5af 100644 --- a/ROMFS/px4fmu_common/init.d/rc.mc_apps +++ b/ROMFS/px4fmu_common/init.d/rc.mc_apps @@ -26,7 +26,7 @@ if param compare SYS_MC_EST_GROUP 1 then # # Try to start LPE. If it fails, start EKF2 as a default. - # Unfortunately we do not build it on px4fmu-v2 due to a limited flash. + # Unfortunately we do not build it on px4_fmu-v2 due to a limited flash. # if attitude_estimator_q start then diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 1b816850218208097c0e58882a0cebf907862012..668a066c8bb285d89f42c6b9d5fd441f74689afc 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -14,7 +14,7 @@ set BOARD_FMUV3 0 if ! ver hwcmp AEROFC_V1 OMNIBUS_F4SD then - if ! ver hwcmp CRAZYFLIE + if ! ver hwcmp BITCRAZE_CRAZYFLIE then # Configure all I2C buses to 100 KHz as they # are all external or slow @@ -22,7 +22,7 @@ then fmu i2c 2 100000 fi - if ver hwcmp PX4FMU_V4 + if ver hwcmp PX4_FMU_V4 then # We know there are sketchy boards out there # as chinese companies produce Pixracers without @@ -45,7 +45,7 @@ then adc start fi -if ver hwcmp AEROFC_V1 +if ver hwcmp INTEL_AEROFC_V1 then ms5611 -T 0 start mpu9250 -s -R 14 start @@ -58,7 +58,7 @@ then ll40ls start i2c fi -if ver hwcmp AEROCORE2 +if ver hwcmp GUMSTIX_AEROCORE2 then l3gd20 -R 12 start lsm303d start @@ -94,7 +94,7 @@ then fi -if ver hwcmp CRAZYFLIE +if ver hwcmp BITCRAZE_CRAZYFLIE then # Onboard I2C mpu9250 -R 12 start @@ -108,7 +108,7 @@ then fi -if ver hwcmp MINDPX_V2 +if ver hwcmp AIRMIND_MINDPX_V2 then # External I2C bus hmc5883 -C -T -X start @@ -122,7 +122,7 @@ then l3gd20 -R 14 start fi -if ver hwcmp NXPHLITE_V3 +if ver hwcmp NXP_HLITE_V3 then # External I2C bus hmc5883 -C -X start @@ -159,7 +159,7 @@ then adc start fi -if ver hwcmp PX4FMU_V2 +if ver hwcmp PX4_FMU_V2 then # External I2C bus hmc5883 -C -T -X start @@ -255,7 +255,7 @@ then fi fi -if ver hwcmp PX4FMU_V4 +if ver hwcmp PX4_FMU_V4 then # External I2C bus hmc5883 -C -T -X start @@ -303,7 +303,7 @@ then fi fi -if ver hwcmp PX4FMU_V4PRO +if ver hwcmp PX4_FMU_V4PRO then # Internal SPI bus ICM-20608-G mpu6000 -R 2 -T 20608 start @@ -324,7 +324,7 @@ then rm3100 start fi -if ver hwcmp PX4FMU_V5 +if ver hwcmp PX4_FMU_V5 then # Internal SPI bus ICM-20602 @@ -353,7 +353,7 @@ then pmw3901 start fi -if ver hwcmp PX4_SAME70XPLAINED_V1 +if ver hwcmp ATMEL_SAME70XPLAINED_V1 then # External I2C bus hmc5883 -C -T -X start diff --git a/ROMFS/px4fmu_common/init.d/rc.vtol_apps b/ROMFS/px4fmu_common/init.d/rc.vtol_apps index 6cfa7179c9a0b501e7c43b47f0e4e5530e36f21c..f53c7f9ff09eedff263e7ad856dcf72a89110a76 100644 --- a/ROMFS/px4fmu_common/init.d/rc.vtol_apps +++ b/ROMFS/px4fmu_common/init.d/rc.vtol_apps @@ -21,7 +21,7 @@ fi if param compare SYS_MC_EST_GROUP 1 then # Try to start LPE. If it fails, start EKF2 as a default - # Unfortunately we do not build it on px4fmu-v2 due to a limited flash. + # Unfortunately we do not build it on px4_fmu-v2 due to a limited flash. if attitude_estimator_q start then local_position_estimator start diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index f5fd17848f33e297fe1f791bdea803127e2b47c9..e010b3e79ac121126055906200f48078f55d8da6 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -71,7 +71,7 @@ set FEXTRAS /fs/microsd/etc/extras.txt set FRC /fs/microsd/etc/rc.txt set FMU_ARGS "" set FMU_MODE pwm -set IOFW "/etc/extras/px4io-v2_default.bin" +set IOFW "/etc/extras/px4_io-v2_default.bin" set IO_PRESENT no set LOG_FILE /fs/microsd/bootlog.txt set MAV_TYPE none @@ -160,7 +160,7 @@ else fi # AEROCORE2 shouldn't have an sd card and CF2 may optionally have an sd card. -if ! ver hwcmp CRAZYFLIE AEROCORE2 +if ! ver hwcmp BITCRAZE_CRAZYFLIE GUMSTIX_AEROCORE2 then # Run no SD alarm. if [ $LOG_FILE = /dev/null ] @@ -214,7 +214,7 @@ else # # Bootloader upgrade # - if ver hwcmp PX4FMU_V2 + if ver hwcmp PX4_FMU_V2 then set BL_FILE /etc/extras/px4fmuv3_bl.bin if [ -f $BL_FILE ] @@ -275,12 +275,12 @@ else # Begin setup for board specific configurations. # ############################################################################### - if ver hwcmp AEROCORE2 + if ver hwcmp GUMSTIX_AEROCORE2 then set DATAMAN_OPT "-f /fs/mtd_dataman" fi - if ver hwcmp AEROFC_V1 + if ver hwcmp INTEL_AEROFC_V1 then if param compare SYS_AUTOSTART 0 then @@ -294,7 +294,7 @@ else set DATAMAN_OPT -i fi - if ver hwcmp CRAZYFLIE + if ver hwcmp BITCRAZE_CRAZYFLIE then if param compare SYS_AUTOSTART 0 then @@ -303,7 +303,7 @@ else fi fi - if ver hwcmp NXPHLITE_V3 + if ver hwcmp NXP_HLITE_V3 then param set SYS_FMU_TASK 1 fi @@ -340,13 +340,13 @@ else if [ $AUTOCNF = yes ] then # Run FMU as task on Pixracer and on boards with enough RAM. - if ver hwcmp PX4FMU_V4 PX4FMU_V4PRO PX4FMU_V5 + if ver hwcmp PX4_FMU_V4 PX4_FMU_V4PRO PX4_FMU_V5 then param set SYS_FMU_TASK 1 fi # Disable safety switch by default on Pixracer and OmnibusF4SD. - if ver hwcmp PX4FMU_V4 OMNIBUS_F4SD + if ver hwcmp PX4_FMU_V4 OMNIBUS_F4SD then param set CBRK_IO_SAFETY 22027 fi @@ -515,7 +515,7 @@ else # sh /etc/init.d/rc.serial - if ver hwcmp PX4FMU_V4 + if ver hwcmp PX4_FMU_V4 then # Run FrSky Telemetry on Pixracer on the FrSky port if not enabled already if param compare TEL_FRSKY_CONFIG 0 @@ -565,7 +565,7 @@ else # # Launch the flow sensor as a background task. # - if ver hwcmp PX4FMU_V2 PX4FMU_V4 PX4FMU_V4PRO MINDPX_V2 PX4FMU_V5 OMNIBUS_F4SD + if ver hwcmp PX4_FMU_V2 PX4_FMU_V4 PX4_FMU_V4PRO AIRMIND_MINDPX_V2 PX4_FMU_V5 OMNIBUS_F4SD then px4flow start & fi diff --git a/ROMFS/px4fmu_common/mixers/bebop.main.mix b/ROMFS/px4fmu_common/mixers/bebop.main.mix index 70d8b6f2c06a603fb773b48a423439242afd9560..6e89966cafaf8aa8d2564dd2a6ecb3b4f1885326 100644 --- a/ROMFS/px4fmu_common/mixers/bebop.main.mix +++ b/ROMFS/px4fmu_common/mixers/bebop.main.mix @@ -1,9 +1,9 @@ # -# @board px4fmu-v2 exclude -# @board px4fmu-v3 exclude -# @board px4fmu-v4 exclude -# @board px4fmu-v4pro exclude -# @board px4fmu-v5 exclude +# @board px4_fmu-v2 exclude +# @board px4_fmu-v3 exclude +# @board px4_fmu-v4 exclude +# @board px4_fmu-v4pro exclude +# @board px4_fmu-v5 exclude # @board aerofc-v1 exclude # diff --git a/ROMFS/px4fmu_common/mixers/standard_vtol_hitl.main.mix b/ROMFS/px4fmu_common/mixers/standard_vtol_hitl.main.mix index 29ecd93e26326aa891cdf2e29119ad94759538e4..263a90d6915c93b5823dd89d6aa67c8a4eec11c4 100644 --- a/ROMFS/px4fmu_common/mixers/standard_vtol_hitl.main.mix +++ b/ROMFS/px4fmu_common/mixers/standard_vtol_hitl.main.mix @@ -1,7 +1,7 @@ Mixer for Standard VTOL (QuadPlane) with motor x configuration (Gazebo HITL) ============================================================================= -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude R: 4x 10000 10000 10000 0 diff --git a/ROMFS/px4fmu_common/mixers/uuv_quad_x.mix b/ROMFS/px4fmu_common/mixers/uuv_quad_x.mix index f16992f4e8a6276eb9490d2358471b25f7b8d1ca..eda24a96d96df1e0e9cafaeede94eed430e027b4 100644 --- a/ROMFS/px4fmu_common/mixers/uuv_quad_x.mix +++ b/ROMFS/px4fmu_common/mixers/uuv_quad_x.mix @@ -1,4 +1,4 @@ -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude M: 4 S: 0 0 -10000 -10000 0 -10000 10000 diff --git a/ROMFS/px4fmu_common/mixers/zmr250.main.mix b/ROMFS/px4fmu_common/mixers/zmr250.main.mix index c94b1670edf900deb47a5f13099006a2a825772d..80bebea24a398e3d201aede423d0dd4cb2d1fefd 100644 --- a/ROMFS/px4fmu_common/mixers/zmr250.main.mix +++ b/ROMFS/px4fmu_common/mixers/zmr250.main.mix @@ -1,5 +1,5 @@ # -# @board px4fmu-v2 exclude +# @board px4_fmu-v2 exclude # # R: <geometry> <roll scale> <pitch scale> <yaw scale> <deadband> R: 4x 7654 10000 10000 0 diff --git a/ROMFS/px4fmu_test/init.d/rc.sensors b/ROMFS/px4fmu_test/init.d/rc.sensors index 0ac92f72f095fbe56b6cb1e54578803ec9ccd318..3a47199dac9c95a4d9a9e7fd85297032c88c5b29 100644 --- a/ROMFS/px4fmu_test/init.d/rc.sensors +++ b/ROMFS/px4fmu_test/init.d/rc.sensors @@ -21,7 +21,7 @@ if adc start then fi -if ver hwcmp PX4FMU_V2 +if ver hwcmp PX4_FMU_V2 then # External I2C bus if hmc5883 -C -T -X start @@ -82,7 +82,7 @@ then fi fi -if ver hwcmp PX4FMU_V4 +if ver hwcmp PX4_FMU_V4 then # External I2C bus if hmc5883 -C -T -X start @@ -109,7 +109,7 @@ then fi fi -if ver hwcmp MINDPX_V2 +if ver hwcmp AIRMIND_MINDPX_V2 then # External I2C bus if hmc5883 -C -T -X start diff --git a/Tools/docker_run.sh b/Tools/docker_run.sh index 8b09932ae571a8b1334ea319ba18aba83f212552..50f18ad2e65c3c641627b7031d772f136c9fa4e1 100755 --- a/Tools/docker_run.sh +++ b/Tools/docker_run.sh @@ -2,7 +2,7 @@ if [ -z ${PX4_DOCKER_REPO+x} ]; then echo "guessing PX4_DOCKER_REPO based on input"; - if [[ $@ =~ .*px4fmu.* ]]; then + if [[ $@ =~ .*px4_fmu.* ]]; then # nuttx-px4fmu-v{1,2,3,4,5} PX4_DOCKER_REPO="px4io/px4-dev-nuttx:2018-11-22" elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*bebop.* ]]; then diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index e95e82f5d4bc8244749d19458e5d96bc40edde33..2782c91430cc9fee46b731143655c203d7e9cfbb 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -642,14 +642,14 @@ class uploader(object): % (self.fw_maxsize, fw.property('image_maxsize'))) else: # If we're still on bootloader v4 on a Pixhawk, we don't know if we - # have the silicon errata and therefore need to flash px4fmu-v2 - # with 1MB flash or if it supports px4fmu-v3 with 2MB flash. + # have the silicon errata and therefore need to flash px4_fmu-v2 + # with 1MB flash or if it supports px4_fmu-v3 with 2MB flash. if fw.property('board_id') == 9 \ and fw.property('image_size') > 1032192 \ and not force: raise RuntimeError("\nThe Board uses bootloader revision 4 and can therefore not determine\n" - "if flashing more than 1 MB (px4fmu-v3_default) is safe, chances are\n" - "high that it is not safe! If unsure, use px4fmu-v2_default.\n" + "if flashing more than 1 MB (px4_fmu-v3_default) is safe, chances are\n" + "high that it is not safe! If unsure, use px4_fmu-v2_default.\n" "\n" "If you know you that the board does not have the silicon errata, use\n" "this script with --force, or update the bootloader. If you are invoking\n" diff --git a/Tools/sitl_multiple_run.sh b/Tools/sitl_multiple_run.sh index 317b8f87d7248e0125eef47e2ace2d2d3961b76f..abd125661a893994711358176a17c0ed8368fd4c 100755 --- a/Tools/sitl_multiple_run.sh +++ b/Tools/sitl_multiple_run.sh @@ -1,6 +1,6 @@ #!/bin/bash # run multiple instances of the 'px4' binary, but w/o starting the simulator. -# It assumes px4 is already built, with 'make px4sitl_default' +# It assumes px4 is already built, with 'make px4_sitl_default' # The simulator is expected to send to UDP port 14560+i for i in [0, N-1] # For example jmavsim can be run like this: @@ -12,7 +12,7 @@ sitl_num=2 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" src_path="$SCRIPT_DIR/.." -build_path=${src_path}/build/px4sitl_default +build_path=${src_path}/build/px4_sitl_default echo "killing running instances" pkill -x px4 || true diff --git a/appveyor.yml b/appveyor.yml index c9a6725e5ebad49918a105cae4af10c41cb5e30b..fb755a90b2bcd44a009b8abd31896f581e4cea3f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -43,7 +43,7 @@ build_script: # make SITL - call bash --login -c "cd $repopath && make posix" # make pixracer to check NuttX build -- call bash --login -c "cd $repopath && make px4fmu-v4_default" +- call bash --login -c "cd $repopath && make px4_fmu-v4_default" # run tests - call bash --login -c "cd $repopath && make tests" diff --git a/boards/aerotenna/ocpoc/src/board_config.h b/boards/aerotenna/ocpoc/src/board_config.h index 573aaa9c63892eb7d575acbb8a0512637ec32619..57fe354671b372e4ff15574ffde48877528f0675 100644 --- a/boards/aerotenna/ocpoc/src/board_config.h +++ b/boards/aerotenna/ocpoc/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "OCPOC00000000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_OCPOC -#define BOARD_NAME "OCPOC" +#define BOARD_NAME "AEROTENNA_OCPOC" #define BOARD_BATTERY1_V_DIV (10.177939394f) #define BOARD_HAS_NO_RESET #define BOARD_HAS_NO_BOOTLOADER diff --git a/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig b/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig index 6fd95f2263b81bf4d7f302433c287cdc41040ed3..878f01fad1c85575d2759a4d19198bb324d05169 100644 --- a/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig +++ b/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_MINDPX_V2=y -CONFIG_ARCH_BOARD="airmindmindpx-v2" +CONFIG_ARCH_BOARD_AIRMIND_MINDPX_V2=y +CONFIG_ARCH_BOARD="airmind_mindpx-v2" # # Custom Board Configuration diff --git a/boards/airmind/mindpx-v2/src/board_config.h b/boards/airmind/mindpx-v2/src/board_config.h index a046456a907f3fefbc5a9bb4a070ef4679546829..cb3e2b2f1d664ab365a421a2963c64afbc384235 100644 --- a/boards/airmind/mindpx-v2/src/board_config.h +++ b/boards/airmind/mindpx-v2/src/board_config.h @@ -293,7 +293,7 @@ #define SPEKTRUM_RX_AS_UART() px4_arch_configgpio(GPIO_USART1_RX) #define SPEKTRUM_OUT(_one_true) px4_arch_gpiowrite(GPIO_PPM_IN_AS_OUT, (_one_true)) -#define BOARD_NAME "MINDPX_V2" +#define BOARD_NAME "AIRMIND_MINDPX_V2" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/atlflight/eagle/src/board_config.h b/boards/atlflight/eagle/src/board_config.h index c52a8a473e2e7c05772ad8cc820236d3f8e4eea0..493d12b8bd2b19fd0d208c7d44627ec6d8126b72 100644 --- a/boards/atlflight/eagle/src/board_config.h +++ b/boards/atlflight/eagle/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "EAGLEID000000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_EAGLE -#define BOARD_NAME "EAGLE" +#define BOARD_NAME "ATLFLIGHT_EAGLE" #define BOARD_HAS_NO_RESET #define BOARD_HAS_NO_BOOTLOADER diff --git a/boards/atlflight/excelsior/src/board_config.h b/boards/atlflight/excelsior/src/board_config.h index 2b0646b700f582cdbb43b3d541514874555bd28b..30dbf4bff45151e038715fc9ef0f7dd10c28a896 100644 --- a/boards/atlflight/excelsior/src/board_config.h +++ b/boards/atlflight/excelsior/src/board_config.h @@ -38,7 +38,7 @@ */ #pragma once -#define BOARD_NAME "EXCELSIOR" +#define BOARD_NAME "ATLFLIGHT_EXCELSIOR" #define BOARD_BATTERY1_V_DIV (10.177939394f) #define BOARD_BATTERY1_A_PER_V (15.391030303f) #define BOARD_HAS_NO_RESET diff --git a/boards/atmel/same70xplained/nuttx-config/nsh/defconfig b/boards/atmel/same70xplained/nuttx-config/nsh/defconfig index b0801318548917be379de5d3d309524ba5889b62..14b6ab4ca6166f91102549f2d90edfc17b6e0d08 100644 --- a/boards/atmel/same70xplained/nuttx-config/nsh/defconfig +++ b/boards/atmel/same70xplained/nuttx-config/nsh/defconfig @@ -427,9 +427,9 @@ CONFIG_RAM_SIZE=393216 # Board Selection # # CONFIG_ARCH_BOARD_SAME70_XPLAINED is not set -CONFIG_ARCH_BOARD_ATMELSAME70XPLAINED=y +CONFIG_ARCH_BOARD_ATMEL_SAME70XPLAINED=y # CONFIG_ARCH_BOARD_CUSTOM is not set -CONFIG_ARCH_BOARD="atmelsame70xplained" +CONFIG_ARCH_BOARD="atmel_same70xplained" # # Common Board Options diff --git a/boards/atmel/same70xplained/src/board_config.h b/boards/atmel/same70xplained/src/board_config.h index 46dc3b8967170df89b35876858d0dfb56809b8b6..072e0c078759a28be8b1b822696bf7531d8c2a8f 100644 --- a/boards/atmel/same70xplained/src/board_config.h +++ b/boards/atmel/same70xplained/src/board_config.h @@ -300,7 +300,7 @@ __BEGIN_DECLS #define GPIO_PWM_IN GPIO_TIM4_CH2IN_2 #endif -#define BOARD_NAME "PX4_SAME70XPLAINED_V1" +#define BOARD_NAME "ATMEL_SAME70XPLAINED" /* * By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) diff --git a/boards/auav/esc35-v1/nuttx-config/nsh/defconfig b/boards/auav/esc35-v1/nuttx-config/nsh/defconfig index f9b2beffe9bad599b01f0d110baa633351c91aa2..1c4a0a4373b6362914b0d3114270ca56af3c3b65 100644 --- a/boards/auav/esc35-v1/nuttx-config/nsh/defconfig +++ b/boards/auav/esc35-v1/nuttx-config/nsh/defconfig @@ -559,8 +559,8 @@ CONFIG_RAM_SIZE=131072 # # Board Selection # -CONFIG_ARCH_BOARD_AUAVESC35_V1=y -CONFIG_ARCH_BOARD="auavesc35-v1" +CONFIG_ARCH_BOARD_AUAV_ESC35_V1=y +CONFIG_ARCH_BOARD="auav_esc35-v1" # # Custom Board Configuration diff --git a/boards/auav/esc35-v1/src/board_config.h b/boards/auav/esc35-v1/src/board_config.h index 5776c41f5929ec9b3ff8613544aaf4d97f91439b..376fa5402bc29b47933ddfd5357967329a2e0bfd 100644 --- a/boards/auav/esc35-v1/src/board_config.h +++ b/boards/auav/esc35-v1/src/board_config.h @@ -134,7 +134,7 @@ GPIO_PORTA | GPIO_PIN1 | GPIO_OUTPUT_CLEAR) #define GPIO_LED_BLUE GPIO_LED3 -#define BOARD_NAME "ESC35_V1" +#define BOARD_NAME "AUAV_ESC35_V1" __BEGIN_DECLS diff --git a/boards/auav/x21/default.cmake b/boards/auav/x21/default.cmake index 01d545775e8c8c8f21c04bff471e4f62249b359c..75878f42180360163ac33f2734717a72e8769815 100644 --- a/boards/auav/x21/default.cmake +++ b/boards/auav/x21/default.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 1 diff --git a/boards/auav/x21/nuttx-config/nsh/defconfig b/boards/auav/x21/nuttx-config/nsh/defconfig index b25df9dc59e3cc8eba8b0940663218d8db9fd5b0..98a81af3ac3fba98ceee89765a4b18b5cb2af78b 100644 --- a/boards/auav/x21/nuttx-config/nsh/defconfig +++ b/boards/auav/x21/nuttx-config/nsh/defconfig @@ -688,7 +688,7 @@ CONFIG_RAM_SIZE=262144 # Board Selection # CONFIG_ARCH_BOARD_AUAV_X21=y -CONFIG_ARCH_BOARD="auavx21" +CONFIG_ARCH_BOARD="auav_x21" # # Custom Board Configuration diff --git a/boards/av/x-v1/nuttx-config/nsh/defconfig b/boards/av/x-v1/nuttx-config/nsh/defconfig index 9f8ce9c53ec6ef45ada73cb7c68ecf9738e31005..206f0c51597a1114bd85724b681d8a48f2f4fd91 100644 --- a/boards/av/x-v1/nuttx-config/nsh/defconfig +++ b/boards/av/x-v1/nuttx-config/nsh/defconfig @@ -533,8 +533,8 @@ CONFIG_RAM_SIZE=376832 # # Board Selection # -CONFIG_ARCH_BOARD_AVX_V1=y -CONFIG_ARCH_BOARD="avx-v1" +CONFIG_ARCH_BOARD_AV_X_V1=y +CONFIG_ARCH_BOARD="av_x-v1" # # Common Board Options diff --git a/boards/beaglebone/blue/src/board_config.h b/boards/beaglebone/blue/src/board_config.h index efa670c83a64083c72da72eb18d60fda85c8af25..6154811c4001045eee70723373c2ffb7cb173c16 100644 --- a/boards/beaglebone/blue/src/board_config.h +++ b/boards/beaglebone/blue/src/board_config.h @@ -45,7 +45,7 @@ #define BOARD_OVERRIDE_UUID "BBBLUEID00000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_BBBLUE -#define BOARD_NAME "BBBLUE" +#define BOARD_NAME "BEAGLEBONE_BLUE" #define BOARD_BATTERY1_V_DIV (11.0f) //#define BOARD_BATTERY1_A_PER_V (15.391030303f) diff --git a/boards/bitcraze/crazyflie/nuttx-config/nsh/defconfig b/boards/bitcraze/crazyflie/nuttx-config/nsh/defconfig index a236d585e3f2a8586a60dada4dd694957f0deac5..897dd16d561aa914fdad932a9ec4b05b0890194b 100644 --- a/boards/bitcraze/crazyflie/nuttx-config/nsh/defconfig +++ b/boards/bitcraze/crazyflie/nuttx-config/nsh/defconfig @@ -652,8 +652,8 @@ CONFIG_RAM_SIZE=196608 # # Board Selection # -CONFIG_ARCH_BOARD_CRAZYFLIE=y -CONFIG_ARCH_BOARD="bitcrazecrazyflie" +CONFIG_ARCH_BOARD_BITCRAZE_CRAZYFLIE=y +CONFIG_ARCH_BOARD="bitcraze_crazyflie" # # Custom Board Configuration diff --git a/boards/bitcraze/crazyflie/src/board_config.h b/boards/bitcraze/crazyflie/src/board_config.h index 0b675b83ae57d4e85dff1a80ef08202a0e6b241b..cefc135d90e44a901de6d170a2ceedf40f33138a 100644 --- a/boards/bitcraze/crazyflie/src/board_config.h +++ b/boards/bitcraze/crazyflie/src/board_config.h @@ -215,13 +215,10 @@ #define HRT_TIMER 8 /* use timer8 for the HRT */ #define HRT_TIMER_CHANNEL 1 /* use capture/compare channel */ -#define BOARD_NAME "CRAZYFLIE" - +#define BOARD_NAME "BITCRAZE_CRAZYFLIE" #define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS -#define BOARD_NAME "CRAZYFLIE" - __BEGIN_DECLS /**************************************************************************************************** diff --git a/boards/emlid/navio2/src/board_config.h b/boards/emlid/navio2/src/board_config.h index 2cd6af040f062f61dce00e378b613ee7ec93542c..5569edddb4a0b1118063bc3608e1cfe76e48bf1f 100644 --- a/boards/emlid/navio2/src/board_config.h +++ b/boards/emlid/navio2/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "RPIID00000000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_RPI -#define BOARD_NAME "EMLIDNAVIO2" +#define BOARD_NAME "EMLID_NAVIO2" #define ADC_BATTERY_VOLTAGE_CHANNEL 2 #define ADC_BATTERY_CURRENT_CHANNEL 3 diff --git a/boards/gumstix/aerocore2/nuttx-config/nsh/defconfig b/boards/gumstix/aerocore2/nuttx-config/nsh/defconfig index 1a9dd2d0b3f370b26288c7dba050094a7ee57473..8b18a34bafc75da56eae4bdfad0f06a4805c7469 100644 --- a/boards/gumstix/aerocore2/nuttx-config/nsh/defconfig +++ b/boards/gumstix/aerocore2/nuttx-config/nsh/defconfig @@ -673,8 +673,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_AEROCORE2=y -CONFIG_ARCH_BOARD="gumstixaerocore2" +CONFIG_ARCH_BOARD_GUMSTIX_AEROCORE2=y +CONFIG_ARCH_BOARD="gumstix_aerocore2" # # Custom Board Configuration diff --git a/boards/gumstix/aerocore2/src/board_config.h b/boards/gumstix/aerocore2/src/board_config.h index 2ec3de378ef52a91045b46fda75a86855b1e4dba..d171663a063e72676e1dd6bc64b99509187bdbb0 100644 --- a/boards/gumstix/aerocore2/src/board_config.h +++ b/boards/gumstix/aerocore2/src/board_config.h @@ -200,7 +200,7 @@ #define HRT_TIMER 8 /* use timer8 for the HRT */ #define HRT_TIMER_CHANNEL 1 /* use capture/compare channel */ -#define BOARD_NAME "AEROCORE2" +#define BOARD_NAME "GUMSTIX_AEROCORE2" #define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS diff --git a/boards/intel/aerofc-v1/nuttx-config/nsh/defconfig b/boards/intel/aerofc-v1/nuttx-config/nsh/defconfig index ee254cb3e444963afe57adcfd765617784332b4d..d55ed2858b2cb6b1b81589854d4bd6736b027263 100644 --- a/boards/intel/aerofc-v1/nuttx-config/nsh/defconfig +++ b/boards/intel/aerofc-v1/nuttx-config/nsh/defconfig @@ -670,8 +670,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_AEROFC_V1=y -CONFIG_ARCH_BOARD="intelaerofc-v1" +CONFIG_ARCH_BOARD_INTEL_AEROFC_V1=y +CONFIG_ARCH_BOARD="intel_aerofc-v1" # # Common Board Options diff --git a/boards/intel/aerofc-v1/src/board_config.h b/boards/intel/aerofc-v1/src/board_config.h index c008a8a1ce9041ef38881f6f3a60d07fbccbe8e7..0bb57e55d75d3744498808db7c96080f1f245468 100644 --- a/boards/intel/aerofc-v1/src/board_config.h +++ b/boards/intel/aerofc-v1/src/board_config.h @@ -129,7 +129,7 @@ #define HRT_TIMER 3 /* use timer3 for the HRT */ #define HRT_TIMER_CHANNEL 4 /* use capture/compare channel */ -#define BOARD_NAME "AEROFC_V1" +#define BOARD_NAME "INTEL_AEROFC_V1" #define FLASH_BASED_PARAMS #define FLASH_BASED_DATAMAN diff --git a/boards/nxp/hlite-v3/nuttx-config/nsh/defconfig b/boards/nxp/hlite-v3/nuttx-config/nsh/defconfig index c67bafe9909214f98341e41c8d27ca66a2ea67fd..1182c03a749d758c544f50feffb8cac2d0fac718 100644 --- a/boards/nxp/hlite-v3/nuttx-config/nsh/defconfig +++ b/boards/nxp/hlite-v3/nuttx-config/nsh/defconfig @@ -389,8 +389,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_NXPHLITE_V3=y -CONFIG_ARCH_BOARD="nxphlite-v3" +CONFIG_ARCH_BOARD_NXP_HLITE_V3=y +CONFIG_ARCH_BOARD="nxp_hlite-v3" CONFIG_BOARD_HAS_PROBES=y # CONFIG_BOARD_USE_PROBES is not set diff --git a/boards/nxp/hlite-v3/src/board_config.h b/boards/nxp/hlite-v3/src/board_config.h index 648f8c0e31945b0d0d8d38f58e69177557a8d3f9..d1b1c5c4d2d045bb3fbb05b0e4ddd6c38eeb146f 100644 --- a/boards/nxp/hlite-v3/src/board_config.h +++ b/boards/nxp/hlite-v3/src/board_config.h @@ -391,7 +391,7 @@ __BEGIN_DECLS #define PWMIN_TIMER_CHANNEL 2 #define GPIO_PWM_IN GPIO_FTM0_CH2IN -#define BOARD_NAME "NXPHLITE_V3" +#define BOARD_NAME "NXP_HLITE_V3" /* Define True logic Power Control in arch agnostic form */ diff --git a/boards/omnibus/f4sd/nuttx-config/nsh/defconfig b/boards/omnibus/f4sd/nuttx-config/nsh/defconfig index e5b0d61a8cb90c7dca1882a038d809f5fc675f15..aa5353295f52ca914945dfb7abfc3ce06842eef1 100644 --- a/boards/omnibus/f4sd/nuttx-config/nsh/defconfig +++ b/boards/omnibus/f4sd/nuttx-config/nsh/defconfig @@ -662,8 +662,8 @@ CONFIG_RAM_SIZE=196608 # # Board Selection # -CONFIG_ARCH_BOARD_OMNIBUSF4SD=y -CONFIG_ARCH_BOARD="omnibusf4sd" +CONFIG_ARCH_BOARD_OMNIBUS_F4SD=y +CONFIG_ARCH_BOARD="omnibus_f4sd" # # Custom Board Configuration diff --git a/boards/parrot/bebop/src/board_config.h b/boards/parrot/bebop/src/board_config.h index 07d61771144fef0bbef7b14ae4ce7b0843be2bb3..5b1f892dd0a23a8534c9b1fbd4b330d0c25e0239 100644 --- a/boards/parrot/bebop/src/board_config.h +++ b/boards/parrot/bebop/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "BEBOPID000000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_BEBOP -#define BOARD_NAME "BEBOP" +#define BOARD_NAME "PARROT_BEBOP" #define BOARD_HAS_NO_RESET #define BOARD_HAS_NO_BOOTLOADER diff --git a/boards/px4/cannode-v1/default.cmake b/boards/px4/cannode-v1/default.cmake index a139189188002b1332194a524b461e9658e3b783..31874d98b9e41ee38250f337ced4e1d5d2f7fb24 100644 --- a/boards/px4/cannode-v1/default.cmake +++ b/boards/px4/cannode-v1/default.cmake @@ -25,8 +25,8 @@ add_definitions( include(px4_make_uavcan_bootloader) px4_make_uavcan_bootloadable( - BOARD px4cannode-v1 - BIN ${PX4_BINARY_DIR}/px4cannode-v1.bin + BOARD px4_cannode-v1 + BIN ${PX4_BINARY_DIR}/px4_cannode-v1.bin HWNAME ${uavcanblid_name} HW_MAJOR ${uavcanblid_hw_version_major} HW_MINOR ${uavcanblid_hw_version_minor} diff --git a/boards/px4/cannode-v1/nuttx-config/Kconfig b/boards/px4/cannode-v1/nuttx-config/Kconfig index 35fbcdbd65da90613a8d1f643019b588498738e5..10ff1f1640a4dd99ea684b4992f16d2026e1bbc5 100644 --- a/boards/px4/cannode-v1/nuttx-config/Kconfig +++ b/boards/px4/cannode-v1/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if CONFIG_ARCH_BOARD_PX4CANNODE_V1 +if CONFIG_ARCH_BOARD_PX4_CANNODE_V1 config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/cannode-v1/nuttx-config/include/board.h b/boards/px4/cannode-v1/nuttx-config/include/board.h index 9cd4614eb28803d640966da42da7a44cf5619123..714f111e06c19c5cf444f740c91955874dc5c9b0 100644 --- a/boards/px4/cannode-v1/nuttx-config/include/board.h +++ b/boards/px4/cannode-v1/nuttx-config/include/board.h @@ -1,5 +1,5 @@ /************************************************************************************ - * nuttx-configs/px4cannode-v1/include/board.h + * nuttx-configs/px4_cannode-v1/include/board.h * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> diff --git a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig index fb45757c713dfffc51197f0729b731e5a90b20e5..4f70399861344e0ef6096917176257f47225bc10 100644 --- a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig +++ b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig @@ -574,8 +574,8 @@ CONFIG_RAM_SIZE=20480 # # Board Selection # -CONFIG_ARCH_BOARD_PX4CANNODE_V1=y -CONFIG_ARCH_BOARD="px4cannode-v1" +CONFIG_ARCH_BOARD_PX4_CANNODE_V1=y +CONFIG_ARCH_BOARD="px4_cannode-v1" # # Custom Board Configuration diff --git a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig.nsh b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig.nsh index 64a3e9fd426bc182147aa21567fa81d5a13f04ec..0f659fffd1ff5a2f7e446c2933df7595d8b1e562 100644 --- a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig.nsh +++ b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig.nsh @@ -478,9 +478,9 @@ CONFIG_RAM_SIZE=20480 # Board Selection # # CONFIG_ARCH_BOARD_MAPLE is not set -CONFIG_ARCH_BOARD_PX4CANNODE_V1=y +CONFIG_ARCH_BOARD_PX4_CANNODE_V1=y # CONFIG_ARCH_BOARD_CUSTOM is not set -CONFIG_ARCH_BOARD="px4cannode-v1" +CONFIG_ARCH_BOARD="px4_cannode-v1" # # Common Board Options diff --git a/boards/px4/cannode-v1/nuttx-config/scripts/ld.script b/boards/px4/cannode-v1/nuttx-config/scripts/ld.script index a2d942b8ab2f4ac1c66db8d80d76170bf119823a..91e245b9fcbf16233ac0c6c454ad29773f01d86e 100644 --- a/boards/px4/cannode-v1/nuttx-config/scripts/ld.script +++ b/boards/px4/cannode-v1/nuttx-config/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * nuttx-configs/px4cannode-v1/scripts/ld.script + * nuttx-configs/px4_cannode-v1/scripts/ld.script * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> diff --git a/boards/px4/cannode-v1/src/board_config.h b/boards/px4/cannode-v1/src/board_config.h index 4b777416a65c420b75d6eb5c898c6b13c236a65f..e4e1643ee93dfdf07179694dd79c169f0e27675c 100644 --- a/boards/px4/cannode-v1/src/board_config.h +++ b/boards/px4/cannode-v1/src/board_config.h @@ -143,7 +143,7 @@ #define GPIO_CAN_CTRL (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \ GPIO_PORTC | GPIO_PIN13 | GPIO_OUTPUT_CLEAR) -#define BOARD_NAME "PX4CANNODE_V1" +#define BOARD_NAME "PX4_CANNODE_V1" __BEGIN_DECLS diff --git a/boards/px4/cannode-v1/src/buttons.c b/boards/px4/cannode-v1/src/buttons.c index 0d57465e7b1bd5f295da0277377ab43b8b1580ff..87108edd8d0d79dda199e2f4609d4e27e4e520ce 100644 --- a/boards/px4/cannode-v1/src/buttons.c +++ b/boards/px4/cannode-v1/src/buttons.c @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * @file px4cannode_buttons.c + * @file px4_cannode_buttons.c * * PX4CANNODE- Buttons */ diff --git a/boards/px4/cannode-v1/src/init.c b/boards/px4/cannode-v1/src/init.c index 22ff7ac5df0b93180a593e95e797e73c9ebd00b9..e0fa4070e1eafd717c31337abf304e3ecd5021cb 100644 --- a/boards/px4/cannode-v1/src/init.c +++ b/boards/px4/cannode-v1/src/init.c @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * @file px4cannode_init.c + * @file px4_cannode_init.c * * PX4CANNODE-specific early startup code. This file implements the * board_app_initialize() function that is called early by nsh during startup. diff --git a/boards/px4/cannode-v1/src/led.c b/boards/px4/cannode-v1/src/led.c index 40530dadedfa00ded0329ca457b17228953d5588..6efd20a01eaad1b1a65e673045061680eda85fbc 100644 --- a/boards/px4/cannode-v1/src/led.c +++ b/boards/px4/cannode-v1/src/led.c @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * @file px4cannode_led.c + * @file px4_cannode_led.c * * PX4ESC LED backend. */ diff --git a/boards/px4/cannode-v1/src/spi.c b/boards/px4/cannode-v1/src/spi.c index 7fae36e84ec397acb12ee59a507fa185d1c29712..6f7c763ca177d8b328eedba96a8e5c6991039bae 100644 --- a/boards/px4/cannode-v1/src/spi.c +++ b/boards/px4/cannode-v1/src/spi.c @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * @file px4cannode_led.c + * @file px4_cannode_led.c * * PX4FMU SPI backend. */ diff --git a/boards/px4/esc-v1/default.cmake b/boards/px4/esc-v1/default.cmake index 8694b3f2759c340aca87c7f9126db0529818d98e..416f6354243bc1100d9e7ce138b540869bca261a 100644 --- a/boards/px4/esc-v1/default.cmake +++ b/boards/px4/esc-v1/default.cmake @@ -27,8 +27,8 @@ add_definitions( include(px4_make_uavcan_bootloader) px4_make_uavcan_bootloadable( - BOARD px4esc-v1 - BIN ${PX4_BINARY_DIR}/px4esc-v1.bin + BOARD px4_esc-v1 + BIN ${PX4_BINARY_DIR}/px4_esc-v1.bin HWNAME ${uavcanblid_name} HW_MAJOR ${uavcanblid_hw_version_major} HW_MINOR ${uavcanblid_hw_version_minor} diff --git a/boards/px4/esc-v1/nuttx-config/Kconfig b/boards/px4/esc-v1/nuttx-config/Kconfig index 163ed89aafe98b34f1baa855cadc5a3cfebff28d..83f92b2b934efcf21cbebcb1983a75b188d0e2b7 100644 --- a/boards/px4/esc-v1/nuttx-config/Kconfig +++ b/boards/px4/esc-v1/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if CONFIG_ARCH_BOARD_PX4ESC_V1 +if CONFIG_ARCH_BOARD_PX4_ESC_V1 config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/esc-v1/nuttx-config/nsh/defconfig b/boards/px4/esc-v1/nuttx-config/nsh/defconfig index 68ddf71ff5d490355921f1e2c9fbf6348d170303..226d69f9912f8ccf31e2cf41040c59c06849eee5 100644 --- a/boards/px4/esc-v1/nuttx-config/nsh/defconfig +++ b/boards/px4/esc-v1/nuttx-config/nsh/defconfig @@ -606,8 +606,8 @@ CONFIG_RAM_SIZE=131072 # # Board Selection # -CONFIG_ARCH_BOARD_PX4ESC_V1=y -CONFIG_ARCH_BOARD="px4esc-v1" +CONFIG_ARCH_BOARD_PX4_ESC_V1=y +CONFIG_ARCH_BOARD="px4_esc-v1" # # Custom Board Configuration diff --git a/boards/px4/esc-v1/src/board_config.h b/boards/px4/esc-v1/src/board_config.h index 33cc7875c7b42caee7f74c2a94c7432da51cd38c..f0bf854b814a8dd459a3988db294cb51bed6353b 100644 --- a/boards/px4/esc-v1/src/board_config.h +++ b/boards/px4/esc-v1/src/board_config.h @@ -216,7 +216,7 @@ #define GPIO_TEST1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ GPIO_PORTD | GPIO_PIN2 | GPIO_OUTPUT_CLEAR) -#define BOARD_NAME "PX4ESC_V1" +#define BOARD_NAME "PX4_ESC_V1" __BEGIN_DECLS diff --git a/boards/px4/fmu-v2/default.cmake b/boards/px4/fmu-v2/default.cmake index 0331448acba572046c7e54920160d49b425b2c8c..d437b560f39d00a7ccd7378b5e57c399f766acc9 100644 --- a/boards/px4/fmu-v2/default.cmake +++ b/boards/px4/fmu-v2/default.cmake @@ -8,7 +8,7 @@ px4_add_board( ROMFS ROMFSROOT px4fmu_common BOOTLOADER ${PX4_SOURCE_DIR}/ROMFS/px4fmu_common/extras/px4fmuv3_bl.bin - IO px4io-v2_default + IO px4_io-v2_default #TESTING CONSTRAINED_FLASH #UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v2/lpe.cmake b/boards/px4/fmu-v2/lpe.cmake index 0877a4a32760a77b2be47c5219b8f7f3ffaa37f2..9bb6134251880a145e7d245ee54d37f387252175 100644 --- a/boards/px4/fmu-v2/lpe.cmake +++ b/boards/px4/fmu-v2/lpe.cmake @@ -8,7 +8,7 @@ px4_add_board( ROMFS ROMFSROOT px4fmu_common BOOTLOADER ${PX4_SOURCE_DIR}/ROMFS/px4fmu_common/extras/px4fmuv3_bl.bin - IO px4io-v2_default + IO px4_io-v2_default #TESTING #UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v2/nuttx-config/Kconfig b/boards/px4/fmu-v2/nuttx-config/Kconfig index f9f0c5e6a840f0b466da3c5ba3e9158e67321257..6ce42aecf44a223d66f7227414bd1d597044fdfe 100644 --- a/boards/px4/fmu-v2/nuttx-config/Kconfig +++ b/boards/px4/fmu-v2/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if ARCH_BOARD_PX4FMU_V2 +if ARCH_BOARD_PX4_FMU_V2 config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/fmu-v2/nuttx-config/include/board.h b/boards/px4/fmu-v2/nuttx-config/include/board.h index ba906c4bbd14be0eb3796e20ed16e819d51709e6..6930f4412baa97ba7fea43711f820efea2408264 100644 --- a/boards/px4/fmu-v2/nuttx-config/include/board.h +++ b/boards/px4/fmu-v2/nuttx-config/include/board.h @@ -1,5 +1,5 @@ /************************************************************************************ - * nuttx-configs/px4fmu-v2/include/board.h + * nuttx-configs/px4_fmu-v2/include/board.h * include/arch/board/board.h * * Copyright (C) 2009 Gregory Nutt. All rights reserved. diff --git a/boards/px4/fmu-v2/nuttx-config/nsh/defconfig b/boards/px4/fmu-v2/nuttx-config/nsh/defconfig index 31984e90695ca32fc3092dfa5b326a60b72be43a..532695283ba70cd5ee1b6870b2d86c59e3f80e6e 100644 --- a/boards/px4/fmu-v2/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v2/nuttx-config/nsh/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V2=y -CONFIG_ARCH_BOARD="px4fmu-v2" +CONFIG_ARCH_BOARD_PX4_FMU_V2=y +CONFIG_ARCH_BOARD="px4_fmu-v2" # # Custom Board Configuration diff --git a/boards/px4/fmu-v2/nuttx-config/scripts/ld.script b/boards/px4/fmu-v2/nuttx-config/scripts/ld.script index b80c0c23bd8a8d2e8fc2c7d40d842b38953677e8..c4e1cc90e7703a46971490679d15ddfe62886594 100644 --- a/boards/px4/fmu-v2/nuttx-config/scripts/ld.script +++ b/boards/px4/fmu-v2/nuttx-config/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * nuttx-configs/px4fmu-v2/scripts/ld.script + * nuttx-configs/px4_fmu-v2/scripts/ld.script * * Copyright (C) 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> diff --git a/boards/px4/fmu-v2/src/board_config.h b/boards/px4/fmu-v2/src/board_config.h index bce4f8f6e4957efeb7e8931852916fe7add5660f..4a1cd206f8ccc42139ad5e5337fb8ecbd7a67981 100644 --- a/boards/px4/fmu-v2/src/board_config.h +++ b/boards/px4/fmu-v2/src/board_config.h @@ -450,7 +450,7 @@ #define PWMIN_TIMER_CHANNEL 2 #define GPIO_PWM_IN GPIO_TIM4_CH2IN_2 -#define BOARD_NAME "PX4FMU_V2" +#define BOARD_NAME "PX4_FMU_V2" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/px4/fmu-v2/src/init.c b/boards/px4/fmu-v2/src/init.c index a031f8dbfab62dbf644cd881b29c267a204f0d56..49c37cc398cb52a663e2e6abab08a11d874ba1cb 100644 --- a/boards/px4/fmu-v2/src/init.c +++ b/boards/px4/fmu-v2/src/init.c @@ -440,7 +440,7 @@ __EXPORT int board_app_initialize(uintptr_t arg) default: - /* questionable px4fmu-v2 hardware, try forcing regular FMUv2 (not much else we can do) */ + /* questionable px4_fmu-v2 hardware, try forcing regular FMUv2 (not much else we can do) */ message("\nbad version detected, forcing to fmu-v2"); hw_version = HW_VER_FMUV2_STATE; diff --git a/boards/px4/fmu-v2/test.cmake b/boards/px4/fmu-v2/test.cmake index 5c032c3e01ce3795c5895b101491a752216b138f..fb5af393bcf9162d045440a2495b200f4b69db5c 100644 --- a/boards/px4/fmu-v2/test.cmake +++ b/boards/px4/fmu-v2/test.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_test - IO px4io-v2_default + IO px4_io-v2_default TESTING #UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v3/default.cmake b/boards/px4/fmu-v3/default.cmake index b2646ad6d09b0580b2e4543d7b0d8895311ba26e..7bb815c8b6ecbd36255a1863e5f5f17e54f07d78 100644 --- a/boards/px4/fmu-v3/default.cmake +++ b/boards/px4/fmu-v3/default.cmake @@ -9,7 +9,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v3/nuttx-config/Kconfig b/boards/px4/fmu-v3/nuttx-config/Kconfig index f9f0c5e6a840f0b466da3c5ba3e9158e67321257..6ce42aecf44a223d66f7227414bd1d597044fdfe 100644 --- a/boards/px4/fmu-v3/nuttx-config/Kconfig +++ b/boards/px4/fmu-v3/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if ARCH_BOARD_PX4FMU_V2 +if ARCH_BOARD_PX4_FMU_V2 config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/fmu-v3/nuttx-config/include/board.h b/boards/px4/fmu-v3/nuttx-config/include/board.h index 827d4f12219bd1d16e44797c32aeddf147e6a942..9d180ab981ecdf439861971d3152488638a9c1bb 100644 --- a/boards/px4/fmu-v3/nuttx-config/include/board.h +++ b/boards/px4/fmu-v3/nuttx-config/include/board.h @@ -1,5 +1,5 @@ /************************************************************************************ - * nuttx-configs/px4fmu-v3/include/board.h + * nuttx-configs/px4_fmu-v3/include/board.h * include/arch/board/board.h * * Copyright (C) 2009 Gregory Nutt. All rights reserved. diff --git a/boards/px4/fmu-v3/nuttx-config/nsh/defconfig b/boards/px4/fmu-v3/nuttx-config/nsh/defconfig index 629b05cbfeb4ae2c868e3ddea48d767063ce313c..39e07adbba153c428dd1e389b35a4f9a5b502f2f 100644 --- a/boards/px4/fmu-v3/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v3/nuttx-config/nsh/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V3=y -CONFIG_ARCH_BOARD="px4fmu-v3" +CONFIG_ARCH_BOARD_PX4_FMU_V3=y +CONFIG_ARCH_BOARD="px4_fmu-v3" # # Custom Board Configuration diff --git a/boards/px4/fmu-v3/nuttx-config/stackcheck/defconfig b/boards/px4/fmu-v3/nuttx-config/stackcheck/defconfig index 4773d2b3e79cd19410f2639d4ab2b2589bc7ed2e..c936c3a89b97244ea426a41e9a7c6de96b622287 100644 --- a/boards/px4/fmu-v3/nuttx-config/stackcheck/defconfig +++ b/boards/px4/fmu-v3/nuttx-config/stackcheck/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V3=y -CONFIG_ARCH_BOARD="px4fmu-v3" +CONFIG_ARCH_BOARD_PX4_FMU_V3=y +CONFIG_ARCH_BOARD="px4_fmu-v3" # # Custom Board Configuration diff --git a/boards/px4/fmu-v3/rtps.cmake b/boards/px4/fmu-v3/rtps.cmake index 21ddccc054bd3d048e48db7349e63397fffa61ce..aa5e1da25f8eb1387b70d0ab6e5d4b11fa867ee3 100644 --- a/boards/px4/fmu-v3/rtps.cmake +++ b/boards/px4/fmu-v3/rtps.cmake @@ -9,7 +9,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v3/src/board_config.h b/boards/px4/fmu-v3/src/board_config.h index bce4f8f6e4957efeb7e8931852916fe7add5660f..4a1cd206f8ccc42139ad5e5337fb8ecbd7a67981 100644 --- a/boards/px4/fmu-v3/src/board_config.h +++ b/boards/px4/fmu-v3/src/board_config.h @@ -450,7 +450,7 @@ #define PWMIN_TIMER_CHANNEL 2 #define GPIO_PWM_IN GPIO_TIM4_CH2IN_2 -#define BOARD_NAME "PX4FMU_V2" +#define BOARD_NAME "PX4_FMU_V2" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/px4/fmu-v3/src/init.c b/boards/px4/fmu-v3/src/init.c index a031f8dbfab62dbf644cd881b29c267a204f0d56..49c37cc398cb52a663e2e6abab08a11d874ba1cb 100644 --- a/boards/px4/fmu-v3/src/init.c +++ b/boards/px4/fmu-v3/src/init.c @@ -440,7 +440,7 @@ __EXPORT int board_app_initialize(uintptr_t arg) default: - /* questionable px4fmu-v2 hardware, try forcing regular FMUv2 (not much else we can do) */ + /* questionable px4_fmu-v2 hardware, try forcing regular FMUv2 (not much else we can do) */ message("\nbad version detected, forcing to fmu-v2"); hw_version = HW_VER_FMUV2_STATE; diff --git a/boards/px4/fmu-v3/stackcheck.cmake b/boards/px4/fmu-v3/stackcheck.cmake index e0034ddbd0458c71c0059237ee32d9f31cc7a45b..6de18393259ef3c660f6ddf2242283789568a7be 100644 --- a/boards/px4/fmu-v3/stackcheck.cmake +++ b/boards/px4/fmu-v3/stackcheck.cmake @@ -9,7 +9,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING #UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v4/nuttx-config/nsh/defconfig b/boards/px4/fmu-v4/nuttx-config/nsh/defconfig index 8c7c3ae2a51d3b8f9e11b65882e6736680531c04..a4f6689709ab836e8edb5fecf50df89973bbfab4 100644 --- a/boards/px4/fmu-v4/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v4/nuttx-config/nsh/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V4=y -CONFIG_ARCH_BOARD="px4fmu-v4" +CONFIG_ARCH_BOARD_PX4_FMU_V4=y +CONFIG_ARCH_BOARD="px4_fmu-v4" # # Custom Board Configuration diff --git a/boards/px4/fmu-v4/nuttx-config/stackcheck/defconfig b/boards/px4/fmu-v4/nuttx-config/stackcheck/defconfig index 3d4ad4271cb786c03e76cfe5216daec53b0dcb17..e6b3bf1f6a2f7635a63c6653e03cf1848b464b97 100644 --- a/boards/px4/fmu-v4/nuttx-config/stackcheck/defconfig +++ b/boards/px4/fmu-v4/nuttx-config/stackcheck/defconfig @@ -687,8 +687,8 @@ CONFIG_RAM_SIZE=262144 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V4=y -CONFIG_ARCH_BOARD="px4fmu-v4" +CONFIG_ARCH_BOARD_PX4_FMU_V4=y +CONFIG_ARCH_BOARD="px4_fmu-v4" # # Custom Board Configuration diff --git a/boards/px4/fmu-v4/src/board_config.h b/boards/px4/fmu-v4/src/board_config.h index bcfffe64d8d98b7a35f0f2399e6c568b6bf7e301..52bd98fd4352f890fd3bd69c4d19e2124b565426 100644 --- a/boards/px4/fmu-v4/src/board_config.h +++ b/boards/px4/fmu-v4/src/board_config.h @@ -306,7 +306,7 @@ #define SPEKTRUM_RX_AS_UART() /* Can be left as uart */ #define SPEKTRUM_OUT(_one_true) px4_arch_gpiowrite(GPIO_PPM_IN_AS_OUT, (_one_true)) -#define BOARD_NAME "PX4FMU_V4" +#define BOARD_NAME "PX4_FMU_V4" /** * By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) diff --git a/boards/px4/fmu-v4pro/default.cmake b/boards/px4/fmu-v4pro/default.cmake index 25a0f58517e08d785d94b139f63f0c71579a19dd..be45096474a37f3958306aea19bc365241c17c27 100644 --- a/boards/px4/fmu-v4pro/default.cmake +++ b/boards/px4/fmu-v4pro/default.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v4pro/nuttx-config/Kconfig b/boards/px4/fmu-v4pro/nuttx-config/Kconfig index 9af3690362de0056d8d36e0f9dff383a444a35d4..90db796740505d4c654869c4016b267188321a2b 100644 --- a/boards/px4/fmu-v4pro/nuttx-config/Kconfig +++ b/boards/px4/fmu-v4pro/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if ARCH_BOARD_PX4FMU_V4PRO +if ARCH_BOARD_PX4_FMU_V4PRO config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/fmu-v4pro/nuttx-config/include/board.h b/boards/px4/fmu-v4pro/nuttx-config/include/board.h index 18b3239f1af2263bee3aabe79c8a0607bbb52257..59585d700acd29093c3602dc662a23947eb4709a 100644 --- a/boards/px4/fmu-v4pro/nuttx-config/include/board.h +++ b/boards/px4/fmu-v4pro/nuttx-config/include/board.h @@ -1,5 +1,5 @@ /************************************************************************************ - * configs/px4fmu-v4pro/include/board.h + * configs/px4_fmu-v4pro/include/board.h * include/arch/board/board.h * * Copyright (C) 2009, 2016 Gregory Nutt. All rights reserved. @@ -261,7 +261,7 @@ #define BOARD_FLASH_WAITSTATES 5 /* LED definitions ******************************************************************/ -/* The px4fmu-v4pro board has numerous LEDs. +/* The px4_fmu-v4pro board has numerous LEDs. * FMU_LED_RED, FMU_LED_GREEN & FMU_LED_BLUE are directly connected and * can be controlled by software. * diff --git a/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig b/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig index c51929df1ce9e896c36894b50459d29af456f8e3..09e2cb0e0aacb67166b8a00b93a68713f0c9c0ef 100644 --- a/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig @@ -691,8 +691,8 @@ CONFIG_RAM_SIZE=393216 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V4PRO=y -CONFIG_ARCH_BOARD="px4fmu-v4pro" +CONFIG_ARCH_BOARD_PX4_FMU_V4PRO=y +CONFIG_ARCH_BOARD="px4_fmu-v4pro" # # Custom Board Configuration diff --git a/boards/px4/fmu-v4pro/rtps.cmake b/boards/px4/fmu-v4pro/rtps.cmake index c03492ba11eff001c30544a5d0382ec180a654e4..ac57d4debf555b5ce532673bdf6c29878e28fd85 100644 --- a/boards/px4/fmu-v4pro/rtps.cmake +++ b/boards/px4/fmu-v4pro/rtps.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m4 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v4pro/src/board_config.h b/boards/px4/fmu-v4pro/src/board_config.h index 745440d696f0ad42ba78413ea709288321799d81..7b37d07c0bd2f2a6ef022a7776eec77a04e1a472 100644 --- a/boards/px4/fmu-v4pro/src/board_config.h +++ b/boards/px4/fmu-v4pro/src/board_config.h @@ -318,7 +318,7 @@ * the connector interface and Spektrum requires VDD 3v3 to be controllable */ -#define BOARD_NAME "PX4FMU_V4PRO" +#define BOARD_NAME "PX4_FMU_V4PRO" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/px4/fmu-v5/default.cmake b/boards/px4/fmu-v5/default.cmake index 8ede289eab9e1c947d0d1cfe84e30a63c754d7a5..e0a56347ab26cb5712a9bcc479dd6aa70b835359 100644 --- a/boards/px4/fmu-v5/default.cmake +++ b/boards/px4/fmu-v5/default.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m7 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v5/nuttx-config/Kconfig b/boards/px4/fmu-v5/nuttx-config/Kconfig index de411fc4d0eee181a515a0210d7ab56855a1fad3..7aeca6fc449792ae29f8ecf4239e2bcdb06c1603 100644 --- a/boards/px4/fmu-v5/nuttx-config/Kconfig +++ b/boards/px4/fmu-v5/nuttx-config/Kconfig @@ -3,7 +3,7 @@ # see misc/tools/kconfig-language.txt. # -if ARCH_BOARD_PX4FMU_V5 +if ARCH_BOARD_PX4_FMU_V5 config BOARD_HAS_PROBES bool "Board provides GPIO or other Hardware for signaling to timing analyze." diff --git a/boards/px4/fmu-v5/nuttx-config/include/board.h b/boards/px4/fmu-v5/nuttx-config/include/board.h index 79b2ee955ee19f3f995bfab93a2d06c409f59a7e..c31dedcd20fad9c314a22c19e375d06c9d2c0fab 100644 --- a/boards/px4/fmu-v5/nuttx-config/include/board.h +++ b/boards/px4/fmu-v5/nuttx-config/include/board.h @@ -1,5 +1,5 @@ /************************************************************************************ - * nuttx-configs/px4fmu-v5/include/board.h + * nuttx-configs/px4_fmu-v5/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: David Sidrane <david_s5@nscdg.com> @@ -32,8 +32,8 @@ * POSSIBILITY OF SUCH DAMAGE. * ************************************************************************************/ -#ifndef __NUTTX_CONFIG_PX4FMU_V5_INCLUDE_BOARD_H -#define __NUTTX_CONFIG_PX4FMU_V5_INCLUDE_BOARD_H +#ifndef __NUTTX_CONFIG_PX4_FMU_V5_INCLUDE_BOARD_H +#define __NUTTX_CONFIG_PX4_FMU_V5_INCLUDE_BOARD_H /************************************************************************************ * Included Files @@ -53,7 +53,7 @@ ************************************************************************************/ /* Clocking *************************************************************************/ -/* The px4fmu-v5 board provides the following clock sources: +/* The px4_fmu-v5 board provides the following clock sources: * * X301: 16 MHz crystal for HSE * @@ -271,7 +271,7 @@ #define BOARD_FLASH_WAITSTATES 7 /* LED definitions ******************************************************************/ -/* The px4fmu-v5 board has numerous LEDs but only three, LED_GREEN a Green LED, LED_BLUE +/* The px4_fmu-v5 board has numerous LEDs but only three, LED_GREEN a Green LED, LED_BLUE * a Blue LED and LED_RED a Red LED, that can be controlled by software. * * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in any way. @@ -570,4 +570,4 @@ void stm32_boardinitialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /*__NUTTX_CONFIG_PX4FMU_V5_INCLUDE_BOARD_H */ +#endif /*__NUTTX_CONFIG_PX4_FMU_V5_INCLUDE_BOARD_H */ diff --git a/boards/px4/fmu-v5/nuttx-config/nsh/defconfig b/boards/px4/fmu-v5/nuttx-config/nsh/defconfig index 1b9ff698c0603f8943eef934484651eac8315987..43abf8fb4d756c46ab93262b1ad3cb3ad099cefb 100644 --- a/boards/px4/fmu-v5/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v5/nuttx-config/nsh/defconfig @@ -504,8 +504,8 @@ CONFIG_RAM_SIZE=245760 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V5=y -CONFIG_ARCH_BOARD="px4fmu-v5" +CONFIG_ARCH_BOARD_PX4_FMU_V5=y +CONFIG_ARCH_BOARD="px4_fmu-v5" # # Common Board Options diff --git a/boards/px4/fmu-v5/nuttx-config/stackcheck/defconfig b/boards/px4/fmu-v5/nuttx-config/stackcheck/defconfig index 0f21bb753ecaa0fcc9626df412cb04ad6ee5d38f..ba7b68308c18c148c2ecf12c5f6d683cab053f1e 100644 --- a/boards/px4/fmu-v5/nuttx-config/stackcheck/defconfig +++ b/boards/px4/fmu-v5/nuttx-config/stackcheck/defconfig @@ -504,8 +504,8 @@ CONFIG_RAM_SIZE=245760 # # Board Selection # -CONFIG_ARCH_BOARD_PX4FMU_V5=y -CONFIG_ARCH_BOARD="px4fmu-v5" +CONFIG_ARCH_BOARD_PX4_FMU_V5=y +CONFIG_ARCH_BOARD="px4_fmu-v5" # # Common Board Options diff --git a/boards/px4/fmu-v5/rtps.cmake b/boards/px4/fmu-v5/rtps.cmake index a4500fb1db51e32e44ba899aa51669b0c0404082..5bc0dd8ea505f3ef449ea725105710c78da303de 100644 --- a/boards/px4/fmu-v5/rtps.cmake +++ b/boards/px4/fmu-v5/rtps.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m7 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING UAVCAN_INTERFACES 2 diff --git a/boards/px4/fmu-v5/src/board_config.h b/boards/px4/fmu-v5/src/board_config.h index ebc37ac2ef27249355eab2ec56f4256e61fe3618..fb75b6108bbbfdee04d3ce0015c54034f6805cb2 100644 --- a/boards/px4/fmu-v5/src/board_config.h +++ b/boards/px4/fmu-v5/src/board_config.h @@ -602,7 +602,7 @@ # warning SDIO initialization cannot be perfomed on the IDLE thread #endif -#define BOARD_NAME "PX4FMU_V5" +#define BOARD_NAME "PX4_FMU_V5" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/px4/fmu-v5/stackcheck.cmake b/boards/px4/fmu-v5/stackcheck.cmake index e0c2955a95af44a8f3214a479577be0c4d32c140..b9907fadb227210135a24ce03157d7453abc86cb 100644 --- a/boards/px4/fmu-v5/stackcheck.cmake +++ b/boards/px4/fmu-v5/stackcheck.cmake @@ -7,7 +7,7 @@ px4_add_board( ARCH cortex-m7 ROMFS ROMFSROOT px4fmu_common - IO px4io-v2_default + IO px4_io-v2_default TESTING #UAVCAN_INTERFACES 2 diff --git a/boards/px4/io-v2/nuttx-config/nsh/defconfig b/boards/px4/io-v2/nuttx-config/nsh/defconfig index 6d9cb2a8ea6d4c8d857caeba05586d15d2737e70..6e976d004b1e9105140b6b97cffac62d09871e71 100644 --- a/boards/px4/io-v2/nuttx-config/nsh/defconfig +++ b/boards/px4/io-v2/nuttx-config/nsh/defconfig @@ -567,8 +567,8 @@ CONFIG_RAM_SIZE=8192 # # Board Selection # -CONFIG_ARCH_BOARD_PX4IO_V2=y -CONFIG_ARCH_BOARD="px4io-v2" +CONFIG_ARCH_BOARD_PX4_IO_V2=y +CONFIG_ARCH_BOARD="px4_io-v2" # # Custom Board Configuration diff --git a/boards/px4/raspberrypi/src/board_config.h b/boards/px4/raspberrypi/src/board_config.h index d43354ba45b44cc6f5755a2246e7aa7e5759a242..39c1c1f2111fdc6a7b9fe1deb66d446cc8d04ca5 100644 --- a/boards/px4/raspberrypi/src/board_config.h +++ b/boards/px4/raspberrypi/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "RPIID00000000000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_RPI -#define BOARD_NAME "RPI" +#define BOARD_NAME "RASPBERRYPI" #define BOARD_HAS_NO_RESET #define BOARD_HAS_NO_BOOTLOADER diff --git a/boards/px4/sitl/src/board_config.h b/boards/px4/sitl/src/board_config.h index b20098427a5fea386d2dd4f20ffd7b52fd60c990..81f84878fc36778f551f32688539e3a4af003740 100644 --- a/boards/px4/sitl/src/board_config.h +++ b/boards/px4/sitl/src/board_config.h @@ -42,7 +42,7 @@ #define BOARD_OVERRIDE_UUID "SIMULATIONID0000" // must be of length 16 #define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_SITL -#define BOARD_NAME "SITL" +#define BOARD_NAME "PX4_SITL" #define BOARD_BATTERY1_V_DIV (10.177939394f) #define BOARD_BATTERY1_A_PER_V (15.391030303f) #define BOARD_HAS_NO_RESET diff --git a/boards/stm/32f4discovery/nuttx-config/nsh/defconfig b/boards/stm/32f4discovery/nuttx-config/nsh/defconfig index f9cc94f9cf1b548308237421c7b7b5f510bd7b0a..99d90ab01fbc71581833cffd55ac62eb49e38ded 100644 --- a/boards/stm/32f4discovery/nuttx-config/nsh/defconfig +++ b/boards/stm/32f4discovery/nuttx-config/nsh/defconfig @@ -649,8 +649,8 @@ CONFIG_RAM_SIZE=196608 # # Board Selection # -CONFIG_ARCH_BOARD_STM32F4DISCOVERY=y -CONFIG_ARCH_BOARD="stm32f4discovery" +CONFIG_ARCH_BOARD_STM_32F4DISCOVERY=y +CONFIG_ARCH_BOARD="stm_32f4discovery" # # Custom Board Configuration diff --git a/boards/stm/32f4discovery/src/board_config.h b/boards/stm/32f4discovery/src/board_config.h index f83aca7a74cfa5dc4693d1e60dc599d101580588..d3a4e85cf908b64b87c7280e36e612881c8819be 100644 --- a/boards/stm/32f4discovery/src/board_config.h +++ b/boards/stm/32f4discovery/src/board_config.h @@ -81,7 +81,7 @@ #define HRT_TIMER 8 /* use timer8 for the HRT */ #define HRT_TIMER_CHANNEL 1 /* use capture/compare channel */ -#define BOARD_NAME "PX4_STM32F4DISCOVERY" +#define BOARD_NAME "STM_32F4DISCOVERY" __BEGIN_DECLS diff --git a/boards/stm/nucleo-F767ZI/nuttx-config/nsh/defconfig b/boards/stm/nucleo-F767ZI/nuttx-config/nsh/defconfig index 5c6526596e14ef4cfb3351646028de5e8b84178c..fdcdf433e4f463468b634c95b387b78c88ec0c72 100644 --- a/boards/stm/nucleo-F767ZI/nuttx-config/nsh/defconfig +++ b/boards/stm/nucleo-F767ZI/nuttx-config/nsh/defconfig @@ -503,8 +503,8 @@ CONFIG_RAM_SIZE=245760 # # Board Selection # -CONFIG_ARCH_BOARD_STMNUCLEO-F767ZI=y -CONFIG_ARCH_BOARD="stmnucleo-F767ZI" +CONFIG_ARCH_BOARD_STM_NUCLEO-F767ZI=y +CONFIG_ARCH_BOARD="stm_nucleo-F767ZI" # # Common Board Options diff --git a/boards/stm/nucleo-F767ZI/src/board_config.h b/boards/stm/nucleo-F767ZI/src/board_config.h index 50279f79e9950b3fb2801b11787664fcb2f2c8e4..b8ebe1e0a51ef7d7a15539d5bf0bb9690b605c44 100644 --- a/boards/stm/nucleo-F767ZI/src/board_config.h +++ b/boards/stm/nucleo-F767ZI/src/board_config.h @@ -312,7 +312,7 @@ __BEGIN_DECLS # warning SDIO initialization cannot be perfomed on the IDLE thread #endif -#define BOARD_NAME "PX4NUCLEOF767ZI_V1" +#define BOARD_NAME "STM_NUCLEOF767ZI" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) * this board support the ADC system_power interface, and therefore diff --git a/boards/thiemar/s2740vc-v1/nuttx-config/Kconfig b/boards/thiemar/s2740vc-v1/nuttx-config/Kconfig index e35ca2f922aab752f0dc1e6672f9c1cc408191cd..b29c11cb7c642103a852b6fc0d9496b3a1e83bbb 100644 --- a/boards/thiemar/s2740vc-v1/nuttx-config/Kconfig +++ b/boards/thiemar/s2740vc-v1/nuttx-config/Kconfig @@ -3,6 +3,6 @@ # see misc/tools/kconfig-language.txt. # -if CONFIG_ARCH_BOARD_S2740VC_V1 +if CONFIG_ARCH_BOARD_THIEMAR_S2740VC_V1 endif diff --git a/boards/thiemar/s2740vc-v1/nuttx-config/nsh/defconfig b/boards/thiemar/s2740vc-v1/nuttx-config/nsh/defconfig index d89ea0a8926aefcfc3af121d2c963cdbe2b9abff..ed68dc3480977987b82f0d04fb20deb2c24d2832 100644 --- a/boards/thiemar/s2740vc-v1/nuttx-config/nsh/defconfig +++ b/boards/thiemar/s2740vc-v1/nuttx-config/nsh/defconfig @@ -567,8 +567,8 @@ CONFIG_RAM_SIZE=16384 # # Board Selection # -CONFIG_ARCH_BOARD_S2740VC_V1=y -CONFIG_ARCH_BOARD="thiemars2740vc-v1" +CONFIG_ARCH_BOARD_THIEMAR_S2740VC_V1=y +CONFIG_ARCH_BOARD="thiemar_s2740vc-v1" # # Custom Board Configuration diff --git a/boards/thiemar/s2740vc-v1/src/board_config.h b/boards/thiemar/s2740vc-v1/src/board_config.h index 24b3e496646d989e9d6c74ec3d572057086a47ce..379b52a556c2d11e0d3e5e6aaf34e7d80debb90b 100644 --- a/boards/thiemar/s2740vc-v1/src/board_config.h +++ b/boards/thiemar/s2740vc-v1/src/board_config.h @@ -80,7 +80,7 @@ GPIO_PORTB | GPIO_PIN6 | GPIO_OUTPUT_CLEAR) -#define BOARD_NAME "S2740VC_V1" +#define BOARD_NAME "THIEMAR_S2740VC_V1" __BEGIN_DECLS diff --git a/cmake/px4_add_board.cmake b/cmake/px4_add_board.cmake index df30166b4586cc0bffa1031bd664d0dddff49382..02f0e94958314208f116d3f766eb3519868ed9fd 100644 --- a/cmake/px4_add_board.cmake +++ b/cmake/px4_add_board.cmake @@ -62,7 +62,7 @@ include(px4_base) # # Example: # px4_add_board( -# BOARD px4fmu-v2_default +# BOARD px4_fmu-v2_default # OS nuttx # ) # @@ -107,7 +107,7 @@ function(px4_add_board) if(BOARD_OVERRIDE) set(PX4_BOARD ${BOARD_OVERRIDE} CACHE STRING "PX4 board" FORCE) else() - set(PX4_BOARD ${VENDOR}${MODEL} CACHE STRING "PX4 board" FORCE) + set(PX4_BOARD ${VENDOR}_${MODEL} CACHE STRING "PX4 board" FORCE) endif() if(LABEL) diff --git a/cmake/px4_base.cmake b/cmake/px4_base.cmake index d6fdbcf86685a433607a739b8d7956fba6ad6f0f..ec5e5d77995ce467f9ef031b93084d0e056c2a31 100644 --- a/cmake/px4_base.cmake +++ b/cmake/px4_base.cmake @@ -364,7 +364,7 @@ endfunction() # # Example: # px4_add_common_flags( -# BOARD px4fmu-v2 +# BOARD px4_fmu-v2 # C_FLAGS CMAKE_C_FLAGS # CXX_FLAGS CMAKE_CXX_FLAGS # OPTIMIZATION_FLAGS optimization_flags diff --git a/eclipse.cproject b/eclipse.cproject index dfd1ee00651b19b2d15aaa1fa8ddae9542997d1b..711a641270c969619453f3c370fb325d7cb26bd5 100644 --- a/eclipse.cproject +++ b/eclipse.cproject @@ -34,8 +34,8 @@ <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/src/include}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/uORB/topics}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware}""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/src/modules/systemlib/param""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/src/modules/systemlib/param""/> </option> <option id="gnu.cpp.compiler.option.preprocessor.def.1050909243" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols"> <listOptionValue builtIn="false" value="__PX4_POSIX=1"/> @@ -55,8 +55,8 @@ <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/src/include}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/uORB/topics}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware}""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/src/modules/systemlib/param""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/src/modules/systemlib/param""/> </option> <option id="gnu.c.compiler.option.preprocessor.def.symbols.734675451" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols"> <listOptionValue builtIn="false" value="__PX4_POSIX=1"/> @@ -83,8 +83,8 @@ <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/src/include}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware/uORB/topics}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/PX4-Firmware}""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/""/> - <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4sitl_default/src/modules/systemlib/param""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/""/> + <listOptionValue builtIn="false" value=""${git_work_tree}/build/px4_sitl_default/src/modules/systemlib/param""/> </option> <inputType id="cdt.managedbuild.tool.gnu.assembler.input.674673703" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> </tool> @@ -110,17 +110,17 @@ <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"> <buildTargets> - <target name="px4fmu-v2_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> + <target name="px4_fmu-v2_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <buildCommand>make</buildCommand> - <buildTarget>px4fmu-v2_default</buildTarget> + <buildTarget>px4_fmu-v2_default</buildTarget> <stopOnError>true</stopOnError> <useDefaultCommand>true</useDefaultCommand> <runAllBuilders>true</runAllBuilders> </target> - <target name="px4fmu-v4_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> + <target name="px4_fmu-v4_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <buildCommand>make</buildCommand> <buildArguments/> - <buildTarget>px4fmu-v4_default</buildTarget> + <buildTarget>px4_fmu-v4_default</buildTarget> <stopOnError>true</stopOnError> <useDefaultCommand>true</useDefaultCommand> <runAllBuilders>true</runAllBuilders> @@ -132,10 +132,10 @@ <useDefaultCommand>true</useDefaultCommand> <runAllBuilders>true</runAllBuilders> </target> - <target name="px4sitl_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> + <target name="px4_sitl_default" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <buildCommand>make</buildCommand> <buildArguments/> - <buildTarget>px4sitl_default</buildTarget> + <buildTarget>px4_sitl_default</buildTarget> <stopOnError>true</stopOnError> <useDefaultCommand>true</useDefaultCommand> <runAllBuilders>true</runAllBuilders> diff --git a/eclipse.project b/eclipse.project index c9dc7302130f2e3a4ef7992327f07c2ac79e8a16..0172fa8ceb13163d2ba68dfe9d55c5dd2bb33c88 100644 --- a/eclipse.project +++ b/eclipse.project @@ -59,11 +59,11 @@ <variableList> <variable> <name>uORB_LOC</name> - <value>$%7BPROJECT_LOC%7D/build/px4sitl_default/uORB</value> + <value>$%7BPROJECT_LOC%7D/build/px4_sitl_default/uORB</value> </variable> <variable> <name>uORB_SRC</name> - <value>$%7BPROJECT_LOC%7D/build/px4sitl_default/msg/topics_sources</value> + <value>$%7BPROJECT_LOC%7D/build/px4_sitl_default/msg/topics_sources</value> </variable> </variableList> </projectDescription> diff --git a/platforms/nuttx/CMakeLists.txt b/platforms/nuttx/CMakeLists.txt index 8c514ddba264055b734aa3860ad977fb9ed0576c..a38813bc8eae687f80ba84532fc91f4d1870badf 100644 --- a/platforms/nuttx/CMakeLists.txt +++ b/platforms/nuttx/CMakeLists.txt @@ -35,7 +35,7 @@ include(cygwin_cygpath) add_subdirectory(src) -set(FW_NAME ${PX4_BOARD_VENDOR}${PX4_BOARD_MODEL}_${PX4_BOARD_LABEL}.elf) +set(FW_NAME ${PX4_BOARD_VENDOR}_${PX4_BOARD_MODEL}_${PX4_BOARD_LABEL}.elf) add_executable(${FW_NAME} ${PX4_SOURCE_DIR}/src/platforms/empty.c) add_dependencies(${FW_NAME} git_nuttx nuttx_build) @@ -281,7 +281,8 @@ if (BLOATY_PROGRAM) # bloaty compare with last master build add_custom_target(bloaty_compare_master - COMMAND wget --no-verbose https://s3.amazonaws.com/px4-travis/Firmware/master/nuttx_${FW_NAME} -O master_${FW_NAME} + #COMMAND wget --no-verbose https://s3.amazonaws.com/px4-travis/Firmware/master/${FW_NAME} -O master_${FW_NAME} + COMMAND wget --no-verbose https://s3.amazonaws.com/px4-travis/Firmware/master/nuttx_${PX4_BOARD_VENDOR}${PX4_BOARD_MODEL}_${PX4_BOARD_LABEL}.elf -O master_${FW_NAME} COMMAND ${BLOATY_PROGRAM} -d symbols -n 50 -C full -s vm $<TARGET_FILE:${FW_NAME}> -- master_${FW_NAME} DEPENDS ${FW_NAME} WORKING_DIRECTORY ${PX4_BINARY_DIR} diff --git a/platforms/nuttx/Debug/poor-mans-profiler.sh b/platforms/nuttx/Debug/poor-mans-profiler.sh index c5efc21c73cc0360e22fd75bc2ad397ac512deb1..a96db837d6fa375dcac4731d7fb8fe91d1306b0a 100755 --- a/platforms/nuttx/Debug/poor-mans-profiler.sh +++ b/platforms/nuttx/Debug/poor-mans-profiler.sh @@ -77,7 +77,7 @@ do shift done -[[ -z "$elf" ]] && die "Please specify the ELF file location, e.g.: build/px4fmu-v4_default/px4fmu-v4_default.elf" +[[ -z "$elf" ]] && die "Please specify the ELF file location, e.g.: build/px4_fmu-v4_default/px4_fmu-v4_default.elf" # # Temporary files diff --git a/platforms/nuttx/NuttX/CMakeLists.txt b/platforms/nuttx/NuttX/CMakeLists.txt index ffa4312f2dd6fecbec68c2b16d41537423681252..71c17fa763731e21e239137440040b9212ecd34b 100644 --- a/platforms/nuttx/NuttX/CMakeLists.txt +++ b/platforms/nuttx/NuttX/CMakeLists.txt @@ -4,7 +4,7 @@ px4_add_git_submodule(TARGET git_nuttx PATH "nuttx") px4_add_git_submodule(TARGET git_nuttx_apps PATH "apps") if(NOT PX4_BOARD) - message(FATAL_ERROR "PX4_BOARD must be set (eg px4fmu-v2)") + message(FATAL_ERROR "PX4_BOARD must be set (eg px4_fmu-v2)") endif() project(NuttX_${PX4_BOARD} LANGUAGES ASM C CXX) diff --git a/platforms/nuttx/cmake/px4_add_board_os.cmake b/platforms/nuttx/cmake/px4_add_board_os.cmake index 052a4912c912047ef4ee10b8303d15540738394c..f38c027b70372ec54babd1b98759eb6c376c6890 100644 --- a/platforms/nuttx/cmake/px4_add_board_os.cmake +++ b/platforms/nuttx/cmake/px4_add_board_os.cmake @@ -62,7 +62,7 @@ include(px4_base) # # Example: # px4_add_board_os( -# BOARD px4fmu-v2_default +# BOARD px4_fmu-v2_default # OS nuttx # ) # diff --git a/platforms/nuttx/cmake/px4_impl_os.cmake b/platforms/nuttx/cmake/px4_impl_os.cmake index 9472ac77040d9324df9e627e26e23c9e5f149a85..5210465a200b00c520690362d2e82f6d4d3dfeda 100644 --- a/platforms/nuttx/cmake/px4_impl_os.cmake +++ b/platforms/nuttx/cmake/px4_impl_os.cmake @@ -159,7 +159,7 @@ endfunction() # OUT : the target list # # Example: -# px4_os_prebuild_targets(OUT target_list BOARD px4fmu-v2) +# px4_os_prebuild_targets(OUT target_list BOARD px4_fmu-v2) # function(px4_os_prebuild_targets) px4_parse_function_args( diff --git a/platforms/nuttx/src/px4_layer/CMakeLists.txt b/platforms/nuttx/src/px4_layer/CMakeLists.txt index 19dd2da80662fc4e619810dd49388c08a43b3bde..f78535ba013b6c4047f85add95e9ba64bbe90d96 100644 --- a/platforms/nuttx/src/px4_layer/CMakeLists.txt +++ b/platforms/nuttx/src/px4_layer/CMakeLists.txt @@ -32,7 +32,7 @@ ############################################################################ # skip for px4_layer support on an IO board -if (NOT ${PX4_BOARD} MATCHES "px4io") +if (NOT ${PX4_BOARD} MATCHES "px4_io") add_library(px4_layer px4_nuttx_tasks.c diff --git a/platforms/posix/CMakeLists.txt b/platforms/posix/CMakeLists.txt index c8d56e7c2783c774b0da09a45f0741e494cc94cc..c4eff411f289327ab419aff92b709789307cb98d 100644 --- a/platforms/posix/CMakeLists.txt +++ b/platforms/posix/CMakeLists.txt @@ -21,7 +21,7 @@ px4_posix_generate_alias( PREFIX ${PX4_SHELL_COMMAND_PREFIX} ) -if (("${PX4_BOARD}" STREQUAL "atlflighteagle") OR ("${PX4_BOARD}" STREQUAL "atlflightexcelsior")) +if (("${PX4_BOARD}" STREQUAL "atlflight_eagle") OR ("${PX4_BOARD}" STREQUAL "atlflight_excelsior")) include(fastrpc) include(linux_app) @@ -109,7 +109,7 @@ if (("${PX4_BOARD}" MATCHES "raspberrypi") OR ("${PX4_BOARD}" MATCHES "navio2")) USES_TERMINAL ) -elseif ("${PX4_BOARD}" MATCHES "bbblue") +elseif ("${PX4_BOARD}" MATCHES "beaglebone_blue") target_link_libraries(px4 PRIVATE robotcontrol) add_custom_target(upload @@ -178,9 +178,9 @@ elseif ("${PX4_BOARD}" MATCHES "sitl") # sitl_gazebo built plugins install( DIRECTORY - ${PROJECT_SOURCE_DIR}/build/px4sitl_default/build_gazebo + ${PROJECT_SOURCE_DIR}/build/px4_sitl_default/build_gazebo DESTINATION - ${PROJECT_NAME}/build/px4sitl_default + ${PROJECT_NAME}/build/px4_sitl_default FILES_MATCHING PATTERN "CMakeFiles" EXCLUDE PATTERN "*.so" diff --git a/platforms/posix/cmake/px4_add_board_os.cmake b/platforms/posix/cmake/px4_add_board_os.cmake index 90d4acca8a321bcf4af0bb0da6aec0cc85212ab5..90f06f5ce2e3305b45f5500f366e2bd9d10e9d9d 100644 --- a/platforms/posix/cmake/px4_add_board_os.cmake +++ b/platforms/posix/cmake/px4_add_board_os.cmake @@ -62,7 +62,7 @@ include(px4_base) # # Example: # px4_add_board_os( -# BOARD px4fmu-v2_default +# BOARD px4_fmu-v2_default # OS nuttx # ) # diff --git a/platforms/posix/cmake/px4_impl_os.cmake b/platforms/posix/cmake/px4_impl_os.cmake index acbc0d29378d2d7dc6c24d54f7fcc3e807896284..8c1d3b6f16420ad652fe9a483f01debac1fa6e2c 100644 --- a/platforms/posix/cmake/px4_impl_os.cmake +++ b/platforms/posix/cmake/px4_impl_os.cmake @@ -403,7 +403,7 @@ function(px4_os_add_flags) # TODO: Wmissing-field-initializers ignored on older toolchain, can be removed eventually list(APPEND added_cxx_flags -Wno-missing-field-initializers) - elseif ("${PX4_BOARD}" MATCHES "ocpoc") + elseif ("${PX4_BOARD}" MATCHES "aerotenna_ocpoc") add_definitions( -D__PX4_POSIX_OCPOC @@ -412,7 +412,7 @@ function(px4_os_add_flags) -D__PX4_POSIX ) - elseif ("${PX4_BOARD}" STREQUAL "bbblue") + elseif ("${PX4_BOARD}" STREQUAL "beaglebone_blue") add_definitions( -D__PX4_POSIX_BBBLUE @@ -473,7 +473,7 @@ endfunction() # OUT : the target list # # Example: -# px4_os_prebuild_targets(OUT target_list BOARD px4fmu-v2) +# px4_os_prebuild_targets(OUT target_list BOARD px4_fmu-v2) # function(px4_os_prebuild_targets) px4_parse_function_args( diff --git a/platforms/qurt/cmake/px4_add_board_os.cmake b/platforms/qurt/cmake/px4_add_board_os.cmake index 975aec42ddbc75e920ca78b639ff88041ccfbc7d..f9db97ce3b2c529baa9f8b838f0b876580def5a9 100644 --- a/platforms/qurt/cmake/px4_add_board_os.cmake +++ b/platforms/qurt/cmake/px4_add_board_os.cmake @@ -62,7 +62,7 @@ include(px4_base) # # Example: # px4_add_board_os( -# BOARD px4fmu-v2_default +# BOARD px4_fmu-v2_default # OS nuttx # ) # diff --git a/platforms/qurt/cmake/px4_impl_os.cmake b/platforms/qurt/cmake/px4_impl_os.cmake index 8e4db781e35bc6157318a34e226a816b140e3be9..2652ee92eef27f9cd799c3b8e046b7f61ebdb4b3 100644 --- a/platforms/qurt/cmake/px4_impl_os.cmake +++ b/platforms/qurt/cmake/px4_impl_os.cmake @@ -227,7 +227,7 @@ endfunction() # OUT : the target list # # Example: -# px4_os_prebuild_targets(OUT target_list BOARD px4fmu-v2) +# px4_os_prebuild_targets(OUT target_list BOARD px4_fmu-v2) # function(px4_os_prebuild_targets) px4_parse_function_args( diff --git a/src/drivers/boards/common/board_common.h b/src/drivers/boards/common/board_common.h index 1e4afa8623b11ec972cee9c11a9493d18fb5aa22..8fdf2208daf1660c42dafd08f931b99a06c0f0f0 100644 --- a/src/drivers/boards/common/board_common.h +++ b/src/drivers/boards/common/board_common.h @@ -255,7 +255,7 @@ # else /* Use PX4IO FW search paths defaults based on version */ # if BOARD_USES_PX4IO_VERSION == 2 -# define PX4IO_FW_SEARCH_PATHS {"/etc/extras/px4io-v2_default.bin", "/fs/microsd/px4io2.bin", "/fs/microsd/px4io.bin", nullptr } +# define PX4IO_FW_SEARCH_PATHS {"/etc/extras/px4_io-v2_default.bin", "/fs/microsd/px4io2.bin", "/fs/microsd/px4io.bin", nullptr } # endif # endif #endif diff --git a/src/drivers/camera_trigger/camera_trigger_params.c b/src/drivers/camera_trigger/camera_trigger_params.c index e6f6f018bde65da22d525e6ea3ec1b50ca682c6b..3b17756f0f6eb83fb4ec99b0c1a46a8ef700d156 100644 --- a/src/drivers/camera_trigger/camera_trigger_params.c +++ b/src/drivers/camera_trigger/camera_trigger_params.c @@ -112,8 +112,8 @@ PARAM_DEFINE_INT32(TRIG_MODE, 0); /** * Camera trigger pin * - * Selects which pin is used, ranges from 1 to 6 (AUX1-AUX6 on px4fmu-v2 and the rail - * pins on px4fmu-v4). The PWM interface takes two pins per camera, while relay + * Selects which pin is used, ranges from 1 to 6 (AUX1-AUX6 on px4_fmu-v2 and the rail + * pins on px4_fmu-v4). The PWM interface takes two pins per camera, while relay * triggers on every pin individually. Example: Value 56 would trigger on pins 5 and 6. * For GPIO mode Pin 6 will be triggered followed by 5. With a value of 65 pin 5 will * be triggered followed by 6. Pins may be non contiguous. I.E. 16 or 61. diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 2a65cf02151545ba10faecacb739bcc4084e47cb..5cd47fe69fdae15e03250b65dd41debb35d751f0 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -2008,7 +2008,7 @@ PX4IO::io_reg_modify(uint8_t page, uint8_t offset, uint16_t clearbits, uint16_t int PX4IO::print_debug() { -#ifdef CONFIG_ARCH_BOARD_PX4FMU_V2 +#ifdef CONFIG_ARCH_BOARD_PX4_FMU_V2 int io_fd = -1; if (io_fd <= 0) { diff --git a/src/drivers/samv7/adc/adc.cpp b/src/drivers/samv7/adc/adc.cpp index 834dce06d845654ff77930dae2c28bcbef22eff0..bf20e8e161155af2f68f770b347ce1576b1964cb 100644 --- a/src/drivers/samv7/adc/adc.cpp +++ b/src/drivers/samv7/adc/adc.cpp @@ -315,7 +315,7 @@ ADC::_tick() void ADC::update_system_power(void) { -#ifdef CONFIG_ARCH_BOARD_PX4FMU_V2 +#ifdef CONFIG_ARCH_BOARD_PX4_FMU_V2 system_power_s system_power; system_power.timestamp = hrt_absolute_time(); @@ -348,7 +348,7 @@ ADC::update_system_power(void) _to_system_power = orb_advertise(ORB_ID(system_power), &system_power); } -#endif // CONFIG_ARCH_BOARD_PX4FMU_V2 +#endif // CONFIG_ARCH_BOARD_PX4_FMU_V2 } uint16_t diff --git a/src/lib/parameters/CMakeLists.txt b/src/lib/parameters/CMakeLists.txt index bfac359edb588d30ca42aa4c9c9c8dab6bbe1dbb..81502e8b9fbc82d33345e8e34d7aec1ad8fea7d9 100644 --- a/src/lib/parameters/CMakeLists.txt +++ b/src/lib/parameters/CMakeLists.txt @@ -125,7 +125,7 @@ if(${PX4_PLATFORM} STREQUAL "nuttx") endif() # TODO: find a better way to do this -if (NOT "${PX4_BOARD}" MATCHES "px4io") +if (NOT "${PX4_BOARD}" MATCHES "px4_io") add_library(parameters ${SRCS} px4_parameters.c diff --git a/src/modules/commander/commander_helper.cpp b/src/modules/commander/commander_helper.cpp index 486739caf2b7d203619c59e2d0e53b17a64f4bb0..a10475c42d86ac2d0dc14466a05e95d26d4fc980 100644 --- a/src/modules/commander/commander_helper.cpp +++ b/src/modules/commander/commander_helper.cpp @@ -279,7 +279,6 @@ int led_init() led_control.timestamp = hrt_absolute_time(); led_control_pub = orb_advertise_queue(ORB_ID(led_control), &led_control, LED_UORB_QUEUE_LENGTH); -#if !defined(CONFIG_ARCH_BOARD_RPI) && !defined(CONFIG_ARCH_BOARD_BBBLUE) /* first open normal LEDs */ DevMgr::getHandle(LED0_DEVICE_PATH, h_leds); @@ -305,7 +304,6 @@ int led_init() /* switch amber off */ led_off(LED_AMBER); -#endif return 0; } @@ -313,9 +311,7 @@ int led_init() void led_deinit() { orb_unadvertise(led_control_pub); -#if !defined(CONFIG_ARCH_BOARD_RPI) && !defined(CONFIG_ARCH_BOARD_BBBLUE) DevMgr::releaseHandle(h_leds); -#endif } int led_toggle(int led) diff --git a/src/modules/systemlib/CMakeLists.txt b/src/modules/systemlib/CMakeLists.txt index 1dccad1454ca4345b9fcb7dbec91f24ed02d2efb..0a61c6455b63166eb234dc0b81d7c3a97c3c4e4a 100644 --- a/src/modules/systemlib/CMakeLists.txt +++ b/src/modules/systemlib/CMakeLists.txt @@ -51,7 +51,7 @@ else() endif() # TODO: find a better way to do this -if (NOT "${PX4_BOARD}" MATCHES "px4io") +if (NOT "${PX4_BOARD}" MATCHES "px4_io") px4_add_library(systemlib ${SRCS}) else() add_library(systemlib ${PX4_SOURCE_DIR}/src/platforms/empty.c) diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index f0d0cf768c70b659d839dcd68063f33f230df29d..478027765c7e3414175b16a68cd4fe40dc6e4bbf 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -173,7 +173,7 @@ int UavcanNode::getHardwareVersion(uavcan::protocol::HardwareVersion &hwver) int rv = -1; if (UavcanNode::instance()) { - if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) { + if (!std::strncmp(px4_board_name(), "PX4_FMU_V2", 9)) { hwver.major = 2; } else { diff --git a/src/systemcmds/ver/ver.c b/src/systemcmds/ver/ver.c index 0baca8bd170c80aafa322a15628f1971a5579415..eee12123c1ea5247c3679f49e9ccf469e28feb3a 100644 --- a/src/systemcmds/ver/ver.c +++ b/src/systemcmds/ver/ver.c @@ -80,7 +80,7 @@ static void usage(const char *reason) PRINT_MODULE_USAGE_COMMAND_DESCR("all", "Print all versions"); PRINT_MODULE_USAGE_COMMAND_DESCR("hwcmp", "Compare hardware version (returns 0 on match)"); PRINT_MODULE_USAGE_ARG("<hw> [<hw2>]", - "Hardware to compare against (eg. PX4FMU_V4). An OR comparison is used if multiple are specified", false); + "Hardware to compare against (eg. PX4_FMU_V4). An OR comparison is used if multiple are specified", false); PRINT_MODULE_USAGE_COMMAND_DESCR("hwtypecmp", "Compare hardware type (returns 0 on match)"); PRINT_MODULE_USAGE_ARG("<hwtype> [<hwtype2>]", "Hardware type to compare against (eg. V2). An OR comparison is used if multiple are specified", false); @@ -108,7 +108,7 @@ int ver_main(int argc, char *argv[]) } } else { - PX4_ERR("Not enough arguments, try 'ver hwcmp PX4FMU_V2'"); + PX4_ERR("Not enough arguments, try 'ver hwcmp PX4_FMU_V2'"); } return 1; diff --git a/test/rostest_px4_run.sh b/test/rostest_px4_run.sh index 44f4f8b882bc192296fee97c2c01d7048b70831b..ea638f70b756c58236a3a9617b0e98cce86dbc88 100755 --- a/test/rostest_px4_run.sh +++ b/test/rostest_px4_run.sh @@ -4,7 +4,7 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) PX4_SRC_DIR=${DIR}/.. source /opt/ros/kinetic/setup.bash -source ${PX4_SRC_DIR}/Tools/setup_gazebo.bash ${PX4_SRC_DIR} ${PX4_SRC_DIR}/build/px4sitl_default +source ${PX4_SRC_DIR}/Tools/setup_gazebo.bash ${PX4_SRC_DIR} ${PX4_SRC_DIR}/build/px4_sitl_default export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:${PX4_SRC_DIR}:${PX4_SRC_DIR}/Tools/sitl_gazebo