-
Notifications
You must be signed in to change notification settings - Fork 15.8k
feat(boards): add Amovlab Flycore support #27407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
amovlgf
wants to merge
22
commits into
PX4:main
Choose a base branch
from
amovlgf:pr/amovlab-flycore-board
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,773
−0
Open
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
eaf09cc
board(amovlab): add Flycore FMU support
amovlgf 00c80b1
board(amovlab): polish Flycore board port and docs
amovlgf a487416
Update boards/amovlab/flycore/src/hw_config.h
amovlgf 58539ea
Update boards/amovlab/flycore/src/hw_config.h
amovlgf 4b2471a
docs(docs): Subedit/prettier
hamishwillee ecd2b48
docs: expand Amovlab Flycore documentation
amovlgf 1e8e5b1
docs: fix Flycore documentation links
amovlgf fa3f0cf
docs: add Flycore product image
amovlgf f5aec27
docs(docs): subedit
hamishwillee b90cb28
docs: document Flycore connector types
amovlgf 2222534
docs: clarify Flycore connector standard note
amovlgf 022faec
boards: address Flycore bootloader and config review
amovlgf 85f6d0e
boards: update Flycore USB vendor string
amovlgf c36f460
boards: update Flycore board ID
amovlgf 07a8646
docs: update Flycore board ID
amovlgf 4c2b4b4
boards: update Flycore bootloader binary
amovlgf 444cc48
boards: update Flycore USB VID/PID
amovlgf 7040988
Add Flycore license overview and update USB PID
amovlgf dcbe5fa
boards: enable pthread mutex types for Flycore
amovlgf f3a2e13
Merge remote-tracking branch 'upstream/main' into pr/amovlab-flycore-…
amovlgf 9a3e282
boards: use allocated Flycore USB PID
amovlgf cf52439
Merge upstream/main into pr/amovlab-flycore-board
amovlgf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,83 @@ | ||||||
| CONFIG_BOARD_TOOLCHAIN="arm-none-eabi" | ||||||
| CONFIG_BOARD_ARCHITECTURE="cortex-m7" | ||||||
| CONFIG_BOARD_SERIAL_GPS1="/dev/ttyS2" | ||||||
| CONFIG_BOARD_SERIAL_TEL1="/dev/ttyS0" | ||||||
| CONFIG_BOARD_SERIAL_TEL2="/dev/ttyS1" | ||||||
| CONFIG_BOARD_SERIAL_TEL3="/dev/ttyS3" | ||||||
| CONFIG_BOARD_SERIAL_GPS2="/dev/ttyS5" | ||||||
| CONFIG_BOARD_SERIAL_RC="/dev/ttyS4" | ||||||
| CONFIG_COMMON_INS=y | ||||||
| CONFIG_DRIVERS_ADC_BOARD_ADC=y | ||||||
| CONFIG_DRIVERS_BAROMETER_MS5611=y | ||||||
| CONFIG_COMMON_DISTANCE_SENSOR=y | ||||||
| CONFIG_COMMON_MAGNETOMETER=y | ||||||
| CONFIG_COMMON_TELEMETRY=y | ||||||
| CONFIG_DRIVERS_CDCACM_AUTOSTART=y | ||||||
| CONFIG_DRIVERS_DSHOT=y | ||||||
| CONFIG_DRIVERS_GPS=y | ||||||
| CONFIG_DRIVERS_IMU_BOSCH_BMI088=y | ||||||
| CONFIG_DRIVERS_IMU_INVENSENSE_ICM42688P=y | ||||||
|
farhangnaderi marked this conversation as resolved.
|
||||||
| CONFIG_DRIVERS_LIGHTS_RGBLED=y | ||||||
| CONFIG_DRIVERS_LIGHTS_RGBLED_AW2023=y | ||||||
| CONFIG_DRIVERS_PWM_OUT=y | ||||||
| CONFIG_COMMON_RC=y | ||||||
| CONFIG_DRIVERS_RC_INPUT=y | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PX4's current Kconfig symbol is |
||||||
| CONFIG_DRIVERS_TONE_ALARM=y | ||||||
| CONFIG_DRIVERS_UAVCAN=y | ||||||
| CONFIG_BOARD_UAVCAN_TIMER_OVERRIDE=6 | ||||||
| CONFIG_MODULES_AIRSPEED_SELECTOR=y | ||||||
| CONFIG_MODULES_BATTERY_STATUS=y | ||||||
| CONFIG_MODULES_COMMANDER=y | ||||||
| CONFIG_MODULES_CONTROL_ALLOCATOR=y | ||||||
| CONFIG_MODULES_DATAMAN=y | ||||||
| CONFIG_MODULES_EKF2=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_LATERAL_LONGITUDINAL_CONTROL=y | ||||||
| CONFIG_MODULES_FW_MODE_MANAGER=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_ROVER_POS_CONTROL=y | ||||||
| CONFIG_MODULES_SENSORS=y | ||||||
| CONFIG_MODULES_TEMPERATURE_COMPENSATION=y | ||||||
| CONFIG_MODULES_UXRCE_DDS_CLIENT=y | ||||||
| CONFIG_NUM_MISSION_ITMES_SUPPORTED=1000 | ||||||
| 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_NSHTERM=y | ||||||
| CONFIG_SYSTEMCMDS_PARAM=y | ||||||
| CONFIG_SYSTEMCMDS_PERF=y | ||||||
| CONFIG_SYSTEMCMDS_REBOOT=y | ||||||
| CONFIG_SYSTEMCMDS_SD_BENCH=y | ||||||
| CONFIG_SYSTEMCMDS_SERIAL_TEST=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 hidden or 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": 1218, | ||
| "magic": "AMOVLABv1", | ||
| "description": "Firmware for the AMOVLAB Flycore board", | ||
| "image": "", | ||
| "build_time": 0, | ||
| "summary": "AMOVLAB Flycore", | ||
| "version": "0.1", | ||
| "image_size": 0, | ||
| "image_maxsize": 1966080, | ||
| "git_identity": "", | ||
| "board_revision": 0 | ||
| } |
This file contains hidden or 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,18 @@ | ||
| #!/bin/sh | ||
| # | ||
| # board specific defaults | ||
| # | ||
| # No onboard magnetometer; yaw uses GPS when available unless the user adds | ||
| # an external compass module (see amovlab_flycore.md). | ||
| #------------------------------------------------------------------------------ | ||
|
|
||
| if ver hwtypecmp FLYCORE000000 | ||
| then | ||
| param set-default SYS_AUTOSTART 4014 | ||
| fi | ||
|
|
||
| param set-default BAT1_V_DIV 10.89 | ||
| param set-default BAT1_A_PER_V 36.367515152 | ||
|
|
||
| # Multicopter Position Control control and Land Detector | ||
| param set-default MPC_LAND_CRWL 0.5 |
This file contains hidden or 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,21 @@ | ||
| #!/bin/sh | ||
| # | ||
| # AMOVLAB FLYCORE specific board sensors init | ||
| # | ||
| # Onboard: BMI088 + ICM42688P + MS5611 (no magnetometer). | ||
| # External I2C1 / I2C4 can host an optional GPS/compass module if the user | ||
| # installs one; default firmware does not start magnetometer drivers here. | ||
| # COMMON_MAGNETOMETER is enabled in the build so optional modules can be | ||
| # started manually from NSH if needed. | ||
| #------------------------------------------------------------------------------ | ||
| board_adc start | ||
|
|
||
| # Internal SPI1 bus BMI088 accel/gyro | ||
| bmi088 -A -R 2 -s start | ||
| bmi088 -G -R 2 -s start | ||
|
|
||
| # Internal SPI2 bus ICM42688p | ||
| icm42688p -R 4 -s start | ||
|
|
||
| # Internal barometer on SPI1 | ||
| ms5611 -s start |
This file contains hidden or 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 hidden or 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,91 @@ | ||
| # | ||
| # 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_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/amovlab/flycore/nuttx-config" | ||
| CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y | ||
| CONFIG_ARCH_BOARD_CUSTOM_NAME="px4" | ||
| CONFIG_ARCH_CHIP="stm32h7" | ||
| CONFIG_ARCH_CHIP_STM32H743VI=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=95150 | ||
| CONFIG_BOARD_RESET_ON_ASSERT=2 | ||
| CONFIG_CDCACM=y | ||
| CONFIG_CDCACM_IFLOWCONTROL=y | ||
| CONFIG_CDCACM_PRODUCTID=0xF1C0 | ||
| CONFIG_CDCACM_PRODUCTSTR="PX4 BL AMOV FLYCORE" | ||
| CONFIG_CDCACM_RXBUFSIZE=600 | ||
| CONFIG_CDCACM_TXBUFSIZE=12000 | ||
| CONFIG_CDCACM_VENDORID=0x1209 | ||
| CONFIG_CDCACM_VENDORSTR="Amovlab" | ||
| 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_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_UART7=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_UART7_RXBUFSIZE=512 | ||
| CONFIG_UART7_TXBUFSIZE=512 | ||
| CONFIG_USBDEV=y | ||
| CONFIG_USBDEV_BUSPOWERED=y | ||
| CONFIG_USBDEV_MAXPOWER=500 | ||
| CONFIG_USEC_PER_TICK=1000 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.