-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
3,772 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
############################################################################ | ||
# | ||
# Copyright (c) 2024 PX4 Development Team. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# 3. Neither the name PX4 nor the names of its contributors may be | ||
# used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
############################################################################ | ||
|
||
add_subdirectory(pwm_voltage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_BOARD_TOOLCHAIN="arm-none-eabi" | ||
CONFIG_BOARD_ARCHITECTURE="cortex-m7" | ||
CONFIG_BOARD_ROMFSROOT="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
############################################################################ | ||
# | ||
# Copyright (c) 2024 PX4 Development Team. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# 3. Neither the name PX4 nor the names of its contributors may be | ||
# used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
############################################################################ | ||
|
||
|
||
set(PX4_FW_NAME ${PX4_BINARY_DIR}/${PX4_BOARD_VENDOR}_${PX4_BOARD_MODEL}_${PX4_BOARD_LABEL}.px4) | ||
|
||
add_custom_target(upload_skynode_usb | ||
COMMAND ${PX4_SOURCE_DIR}/Tools/auterion/upload_skynode.sh --file=${PX4_FW_NAME} | ||
DEPENDS ${PX4_FW_NAME} | ||
COMMENT "Uploading PX4" | ||
USES_TERMINAL | ||
) | ||
|
||
add_custom_target(upload_skynode_wifi | ||
COMMAND ${PX4_SOURCE_DIR}/Tools/auterion/upload_skynode.sh --file=${PX4_FW_NAME} --wifi | ||
DEPENDS ${PX4_FW_NAME} | ||
COMMENT "Uploading PX4" | ||
USES_TERMINAL | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
CONFIG_BOARD_TOOLCHAIN="arm-none-eabi" | ||
CONFIG_BOARD_ARCHITECTURE="cortex-m7" | ||
CONFIG_BOARD_ETHERNET=y | ||
CONFIG_BOARD_SERIAL_GPS1="/dev/ttyS0" | ||
CONFIG_BOARD_SERIAL_GPS2="/dev/ttyS6" | ||
CONFIG_BOARD_SERIAL_TEL1="/dev/ttyS5" | ||
CONFIG_BOARD_SERIAL_TEL2="/dev/ttyS3" | ||
CONFIG_BOARD_SERIAL_TEL3="/dev/ttyS1" | ||
CONFIG_DRIVERS_ADC_ADS1115=y | ||
CONFIG_DRIVERS_ADC_BOARD_ADC=y | ||
CONFIG_DRIVERS_BAROMETER_BMP581=y | ||
CONFIG_DRIVERS_BAROMETER_INVENSENSE_ICP201XX=y | ||
CONFIG_DRIVERS_CAMERA_CAPTURE=y | ||
CONFIG_DRIVERS_CAMERA_TRIGGER=y | ||
CONFIG_DRIVERS_CDCACM_AUTOSTART=y | ||
CONFIG_COMMON_DIFFERENTIAL_PRESSURE=y | ||
CONFIG_COMMON_DISTANCE_SENSOR=y | ||
CONFIG_DRIVERS_DSHOT=y | ||
CONFIG_DRIVERS_GPS=y | ||
CONFIG_DRIVERS_IMU_BOSCH_BMI088=y | ||
CONFIG_DRIVERS_IMU_INVENSENSE_ICM20948=y | ||
CONFIG_DRIVERS_IMU_INVENSENSE_IIM42652=y | ||
CONFIG_COMMON_INS=y | ||
CONFIG_COMMON_LIGHT=y | ||
CONFIG_COMMON_MAGNETOMETER=y | ||
CONFIG_DRIVERS_OSD_MSP_OSD=y | ||
CONFIG_DRIVERS_PWM_OUT=y | ||
CONFIG_DRIVERS_RC_INPUT=y | ||
CONFIG_DRIVERS_SAFETY_BUTTON=y | ||
CONFIG_DRIVERS_TONE_ALARM=y | ||
CONFIG_DRIVERS_UAVCAN=y | ||
CONFIG_BOARD_UAVCAN_TIMER_OVERRIDE=2 | ||
CONFIG_MODULES_AIRSPEED_SELECTOR=y | ||
CONFIG_MODULES_BATTERY_STATUS=y | ||
CONFIG_MODULES_CAMERA_FEEDBACK=y | ||
CONFIG_MODULES_COMMANDER=y | ||
CONFIG_MODULES_CONTROL_ALLOCATOR=y | ||
CONFIG_MODULES_DATAMAN=y | ||
CONFIG_MODULES_EKF2=y | ||
CONFIG_MODULES_ESC_BATTERY=y | ||
CONFIG_MODULES_EVENTS=y | ||
CONFIG_MODULES_FLIGHT_MODE_MANAGER=y | ||
CONFIG_MODULES_FW_ATT_CONTROL=y | ||
CONFIG_MODULES_FW_AUTOTUNE_ATTITUDE_CONTROL=y | ||
CONFIG_MODULES_FW_POS_CONTROL=y | ||
CONFIG_MODULES_FW_RATE_CONTROL=y | ||
CONFIG_MODULES_GIMBAL=y | ||
CONFIG_MODULES_GYRO_CALIBRATION=y | ||
CONFIG_MODULES_LAND_DETECTOR=y | ||
CONFIG_MODULES_LANDING_TARGET_ESTIMATOR=y | ||
CONFIG_MODULES_LOAD_MON=y | ||
CONFIG_MODULES_LOGGER=y | ||
CONFIG_MODULES_MAG_BIAS_ESTIMATOR=y | ||
CONFIG_MODULES_MANUAL_CONTROL=y | ||
CONFIG_MODULES_MAVLINK=y | ||
CONFIG_MODULES_MC_ATT_CONTROL=y | ||
CONFIG_MODULES_MC_AUTOTUNE_ATTITUDE_CONTROL=y | ||
CONFIG_MODULES_MC_HOVER_THRUST_ESTIMATOR=y | ||
CONFIG_MODULES_MC_POS_CONTROL=y | ||
CONFIG_MODULES_MC_RATE_CONTROL=y | ||
CONFIG_MODULES_NAVIGATOR=y | ||
CONFIG_MODULES_RC_UPDATE=y | ||
CONFIG_MODULES_SENSORS=y | ||
CONFIG_MODULES_TEMPERATURE_COMPENSATION=y | ||
CONFIG_MODULES_UXRCE_DDS_CLIENT=y | ||
CONFIG_MODULES_VTOL_ATT_CONTROL=y | ||
CONFIG_SYSTEMCMDS_ACTUATOR_TEST=y | ||
CONFIG_SYSTEMCMDS_BSONDUMP=y | ||
CONFIG_SYSTEMCMDS_DMESG=y | ||
CONFIG_SYSTEMCMDS_GPIO=y | ||
CONFIG_SYSTEMCMDS_HARDFAULT_LOG=y | ||
CONFIG_SYSTEMCMDS_I2CDETECT=y | ||
CONFIG_SYSTEMCMDS_LED_CONTROL=y | ||
CONFIG_SYSTEMCMDS_MFT=y | ||
CONFIG_SYSTEMCMDS_MTD=y | ||
CONFIG_SYSTEMCMDS_NETMAN=y | ||
CONFIG_SYSTEMCMDS_NSHTERM=y | ||
CONFIG_SYSTEMCMDS_PARAM=y | ||
CONFIG_SYSTEMCMDS_PERF=y | ||
CONFIG_SYSTEMCMDS_REBOOT=y | ||
CONFIG_SYSTEMCMDS_SYSTEM_TIME=y | ||
CONFIG_SYSTEMCMDS_TOP=y | ||
CONFIG_SYSTEMCMDS_TOPIC_LISTENER=y | ||
CONFIG_SYSTEMCMDS_TUNE_CONTROL=y | ||
CONFIG_SYSTEMCMDS_UORB=y | ||
CONFIG_SYSTEMCMDS_VER=y | ||
CONFIG_SYSTEMCMDS_WORK_QUEUE=y |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"board_id": 7000, | ||
"magic": "PX4FWv1", | ||
"description": "Firmware for the CUAVX7HNano board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "CUAV7Nano", | ||
"version": "0.1", | ||
"image_size": 0, | ||
"image_maxsize": 1966080, | ||
"git_identity": "", | ||
"board_revision": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# | ||
# board specific defaults | ||
#------------------------------------------------------------------------------ | ||
|
||
# Mavlink ethernet (CFG 1000) | ||
param set-default MAV_2_CONFIG 1000 | ||
param set-default MAV_2_BROADCAST 1 | ||
param set-default MAV_2_MODE 0 | ||
param set-default MAV_2_RADIO_CTL 0 | ||
param set-default MAV_2_RATE 100000 | ||
param set-default MAV_2_REMOTE_PRT 14550 | ||
param set-default MAV_2_UDP_PRT 14550 | ||
|
||
param set-default BAT1_V_DIV 31 | ||
param set-default BAT1_A_PER_V 24 | ||
|
||
param set-default USB_MAV_MODE 5 | ||
|
||
safety_button start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
# | ||
# CUAV 7-Nano specific board sensors init | ||
#------------------------------------------------------------------------------ | ||
|
||
if param compare -s ADC_ADS1115_EN 1 | ||
then | ||
ads1115 start -X | ||
board_adc start -n | ||
else | ||
board_adc start | ||
fi | ||
|
||
iim42652 -s -R 22 start | ||
bmi088 -A -R 29 -s start | ||
bmi088 -G -R 29 -s start | ||
|
||
ist8310 -I -R 18 start | ||
|
||
bmp581 -s start | ||
icp201xx -I start | ||
|
||
# CUAV pwm voltage 3.3V/5V switch | ||
pwm_voltage_apply | ||
|
||
# External compass on GPS1/I2C1: standard CUAV GPS/compass puck (with lights, safety button, and buzzer) | ||
ist8310 -X -b 1 -R 10 start | ||
|
||
netman update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# For a description of the syntax of this configuration file, | ||
# see misc/tools/kconfig-language.txt. | ||
# | ||
config BOARD_HAS_PROBES | ||
bool "Board provides GPIO or other Hardware for signaling to timing analyze." | ||
default y | ||
---help--- | ||
This board provides GPIO FMU-CH1-5, CAP1-6 as PROBE_1-11 to provide timing signals from selected drivers. | ||
|
||
config BOARD_USE_PROBES | ||
bool "Enable the use the board provided FMU-CH1-5, CAP1-6 as PROBE_1-11" | ||
default n | ||
depends on BOARD_HAS_PROBES | ||
|
||
---help--- | ||
Select to use GPIO FMU-CH1-5, CAP1-6 to provide timing signals from selected drivers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# | ||
# This file is autogenerated: PLEASE DO NOT EDIT IT. | ||
# | ||
# You can use "make menuconfig" to make any modifications to the installed .config file. | ||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your | ||
# modifications. | ||
# | ||
# CONFIG_DEV_CONSOLE is not set | ||
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set | ||
# CONFIG_DISABLE_PTHREAD is not set | ||
# CONFIG_SPI_EXCHANGE is not set | ||
# CONFIG_STM32H7_SYSCFG is not set | ||
CONFIG_ARCH="arm" | ||
CONFIG_ARCH_BOARD_CUSTOM=y | ||
CONFIG_ARCH_BOARD_CUSTOM_DIR="../../../../boards/cuav/7-nano/nuttx-config" | ||
CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y | ||
CONFIG_ARCH_BOARD_CUSTOM_NAME="px4" | ||
CONFIG_ARCH_CHIP="stm32h7" | ||
CONFIG_ARCH_CHIP_STM32H753II=y | ||
CONFIG_ARCH_CHIP_STM32H7=y | ||
CONFIG_ARCH_INTERRUPTSTACK=768 | ||
CONFIG_ARMV7M_BASEPRI_WAR=y | ||
CONFIG_ARMV7M_ICACHE=y | ||
CONFIG_ARMV7M_MEMCPY=y | ||
CONFIG_ARMV7M_USEBASEPRI=y | ||
CONFIG_BOARDCTL=y | ||
CONFIG_BOARDCTL_RESET=y | ||
CONFIG_BOARD_ASSERT_RESET_VALUE=0 | ||
CONFIG_BOARD_INITTHREAD_PRIORITY=254 | ||
CONFIG_BOARD_LATE_INITIALIZE=y | ||
CONFIG_BOARD_LOOPSPERMSEC=22114 | ||
CONFIG_BOARD_RESET_ON_ASSERT=2 | ||
CONFIG_CDCACM=y | ||
CONFIG_CDCACM_IFLOWCONTROL=y | ||
CONFIG_CDCACM_PRODUCTID=0x004c | ||
CONFIG_CDCACM_PRODUCTSTR="PX4 BL CUAV 7 Nano" | ||
CONFIG_CDCACM_RXBUFSIZE=600 | ||
CONFIG_CDCACM_TXBUFSIZE=12000 | ||
CONFIG_CDCACM_VENDORID=0x3163 | ||
CONFIG_CDCACM_VENDORSTR="CUAV" | ||
CONFIG_DEBUG_FULLOPT=y | ||
CONFIG_DEBUG_SYMBOLS=y | ||
CONFIG_DEBUG_TCBINFO=y | ||
CONFIG_DEFAULT_SMALL=y | ||
CONFIG_EXPERIMENTAL=y | ||
CONFIG_FDCLONE_DISABLE=y | ||
CONFIG_FDCLONE_STDIO=y | ||
CONFIG_HAVE_CXX=y | ||
CONFIG_HAVE_CXXINITIALIZE=y | ||
CONFIG_IDLETHREAD_STACKSIZE=750 | ||
CONFIG_INIT_ENTRYPOINT="bootloader_main" | ||
CONFIG_INIT_STACKSIZE=3194 | ||
CONFIG_LIBC_FLOATINGPOINT=y | ||
CONFIG_LIBC_LONG_LONG=y | ||
CONFIG_LIBC_STRERROR=y | ||
CONFIG_MEMSET_64BIT=y | ||
CONFIG_MEMSET_OPTSPEED=y | ||
CONFIG_PREALLOC_TIMERS=50 | ||
CONFIG_PTHREAD_MUTEX_ROBUST=y | ||
CONFIG_PTHREAD_STACK_MIN=512 | ||
CONFIG_RAM_SIZE=245760 | ||
CONFIG_RAM_START=0x20010000 | ||
CONFIG_RAW_BINARY=y | ||
CONFIG_SERIAL_TERMIOS=y | ||
CONFIG_SIG_DEFAULT=y | ||
CONFIG_SIG_SIGALRM_ACTION=y | ||
CONFIG_SIG_SIGUSR1_ACTION=y | ||
CONFIG_SIG_SIGUSR2_ACTION=y | ||
CONFIG_SPI=y | ||
CONFIG_STACK_COLORATION=y | ||
CONFIG_START_DAY=30 | ||
CONFIG_START_MONTH=11 | ||
CONFIG_STDIO_BUFFER_SIZE=32 | ||
CONFIG_STM32H7_BKPSRAM=y | ||
CONFIG_STM32H7_DMA1=y | ||
CONFIG_STM32H7_DMA2=y | ||
CONFIG_STM32H7_OTGFS=y | ||
CONFIG_STM32H7_PROGMEM=y | ||
CONFIG_STM32H7_SERIAL_DISABLE_REORDERING=y | ||
CONFIG_STM32H7_TIM1=y | ||
CONFIG_STM32H7_UART5=y | ||
CONFIG_SYSTEMTICK_HOOK=y | ||
CONFIG_SYSTEM_CDCACM=y | ||
CONFIG_TASK_NAME_SIZE=24 | ||
CONFIG_TTY_SIGINT=y | ||
CONFIG_TTY_SIGINT_CHAR=0x03 | ||
CONFIG_TTY_SIGTSTP=y | ||
CONFIG_UART5_RXBUFSIZE=512 | ||
CONFIG_UART5_RXDMA=y | ||
CONFIG_UART5_TXBUFSIZE=512 | ||
CONFIG_UART5_TXDMA=y | ||
CONFIG_USBDEV=y | ||
CONFIG_USBDEV_BUSPOWERED=y | ||
CONFIG_USBDEV_MAXPOWER=500 | ||
CONFIG_USEC_PER_TICK=1000 |
Oops, something went wrong.