-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
New board: AIRLink board configuration added #19529
Merged
Merged
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d23528e
AIRLink board configuration added
aviaks dc0bd62
github actions: added AIRLink target
aviaks 7b5231b
boards: AIRLink board_config.h code style formatted
aviaks a8c95d3
rc.board_mavlink: removed USB mavlink start
aviaks b5386ca
defconfig: SPI2_DMA_BUFFER reduced
aviaks 4037edf
board_defaults: set logger buffer size
aviaks 6e55172
mtd: missing IMU EEPROM removed, only base EEPROM left
aviaks 134e07e
rc.board_sensors: mpu9250 magnetometer usage removed
aviaks 5c58e61
Update boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig
dagar 09975f2
run menuconfig to cleanup
dagar 656e812
Merge remote-tracking branch 'px4/master' into pr-airlink-board-support
dagar bef2d8a
delete empty rc.board_mavlink
dagar b34c475
fix copyright year and a few comments
dagar 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 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,109 @@ | ||
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/ttyS7" | ||
CONFIG_BOARD_SERIAL_TEL1="/dev/ttyS6" | ||
CONFIG_BOARD_SERIAL_TEL2="/dev/ttyS4" | ||
CONFIG_BOARD_SERIAL_TEL3="/dev/ttyS1" | ||
CONFIG_BOARD_SERIAL_PPB="/dev/ttyS3" | ||
CONFIG_DRIVERS_ADC_BOARD_ADC=y | ||
CONFIG_COMMON_BAROMETERS=y | ||
CONFIG_DRIVERS_BATT_SMBUS=y | ||
CONFIG_DRIVERS_CAMERA_CAPTURE=y | ||
CONFIG_DRIVERS_CAMERA_TRIGGER=y | ||
CONFIG_COMMON_DIFFERENTIAL_PRESSURE=y | ||
CONFIG_COMMON_DISTANCE_SENSOR=y | ||
CONFIG_DRIVERS_DSHOT=y | ||
CONFIG_DRIVERS_GPS=y | ||
CONFIG_DRIVERS_HEATER=y | ||
CONFIG_DRIVERS_IMU_BOSCH_BMI088=y | ||
CONFIG_DRIVERS_IMU_INVENSENSE_ICM20602=y | ||
CONFIG_DRIVERS_IMU_INVENSENSE_MPU9250=y | ||
CONFIG_DRIVERS_IRLOCK=y | ||
CONFIG_COMMON_LIGHT=y | ||
CONFIG_COMMON_MAGNETOMETER=y | ||
CONFIG_COMMON_OPTICAL_FLOW=y | ||
CONFIG_DRIVERS_OSD=y | ||
CONFIG_DRIVERS_PCA9685=y | ||
CONFIG_DRIVERS_PCA9685_PWM_OUT=y | ||
CONFIG_DRIVERS_PWM_INPUT=y | ||
CONFIG_DRIVERS_PWM_OUT=y | ||
CONFIG_DRIVERS_PWM_OUT_SIM=y | ||
CONFIG_DRIVERS_PX4IO=y | ||
CONFIG_DRIVERS_RC_INPUT=y | ||
CONFIG_DRIVERS_ROBOCLAW=y | ||
CONFIG_DRIVERS_RPM=y | ||
CONFIG_DRIVERS_SAFETY_BUTTON=y | ||
CONFIG_DRIVERS_SMART_BATTERY_BATMON=y | ||
CONFIG_COMMON_TELEMETRY=y | ||
CONFIG_DRIVERS_TONE_ALARM=y | ||
CONFIG_DRIVERS_UAVCAN=y | ||
CONFIG_MODULES_AIRSPEED_SELECTOR=y | ||
CONFIG_MODULES_ATTITUDE_ESTIMATOR_Q=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_L1=y | ||
CONFIG_MODULES_GIMBAL=y | ||
CONFIG_MODULES_GYRO_CALIBRATION=y | ||
CONFIG_MODULES_GYRO_FFT=y | ||
CONFIG_MODULES_LAND_DETECTOR=y | ||
CONFIG_MODULES_LANDING_TARGET_ESTIMATOR=y | ||
CONFIG_MODULES_LOAD_MON=y | ||
CONFIG_MODULES_LOCAL_POSITION_ESTIMATOR=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_SIH=y | ||
CONFIG_MODULES_TEMPERATURE_COMPENSATION=y | ||
CONFIG_MODULES_VTOL_ATT_CONTROL=y | ||
CONFIG_SYSTEMCMDS_ACTUATOR_TEST=y | ||
CONFIG_SYSTEMCMDS_BL_UPDATE=y | ||
CONFIG_SYSTEMCMDS_DMESG=y | ||
CONFIG_SYSTEMCMDS_DUMPFILE=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_MIXER=y | ||
CONFIG_SYSTEMCMDS_MOTOR_TEST=y | ||
CONFIG_SYSTEMCMDS_MTD=y | ||
CONFIG_SYSTEMCMDS_NETMAN=y | ||
CONFIG_SYSTEMCMDS_NSHTERM=y | ||
CONFIG_SYSTEMCMDS_PARAM=y | ||
CONFIG_SYSTEMCMDS_PERF=y | ||
CONFIG_SYSTEMCMDS_PWM=y | ||
CONFIG_SYSTEMCMDS_REBOOT=y | ||
CONFIG_SYSTEMCMDS_REFLECT=y | ||
CONFIG_SYSTEMCMDS_SD_BENCH=y | ||
CONFIG_SYSTEMCMDS_SD_STRESS=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_USB_CONNECTED=y | ||
CONFIG_SYSTEMCMDS_VER=y | ||
CONFIG_SYSTEMCMDS_WORK_QUEUE=y | ||
CONFIG_EXAMPLES_FAKE_GPS=y |
Binary file not shown.
Binary file added
BIN
+10.2 KB
boards/sky-drones/smartap-airlink/extras/sky-drones_smartap-airlink_bootlader.bin
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": 55, | ||
"magic": "PX4FWv1", | ||
"description": "Firmware for the SMARTAP AIRLINK board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "SMARTAP-AIRLINK", | ||
"version": "0.1", | ||
"image_size": 0, | ||
"image_maxsize": 2064384, | ||
"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,31 @@ | ||
#!/bin/sh | ||
# | ||
# board specific defaults | ||
#------------------------------------------------------------------------------ | ||
|
||
# Telemetry for onboard computer | ||
param set-default MAV_1_CONFIG 102 # TELEM2 | ||
param set-default MAV_1_MODE 0 # Normal | ||
param set-default SER_TEL2_BAUD 921600 # 921600 | ||
|
||
# Temperature stabilization | ||
param set-default SENS_EN_THERMAL 1 # Enable heater | ||
param set-default SENS_TEMP_ID 2359314 # Heated IMU ID | ||
|
||
# Battery scaling | ||
param set-default BAT_N_CELLS 4 | ||
param set-default BAT1_N_CELLS 4 | ||
|
||
param set-default BAT1_V_DIV 15.51 | ||
|
||
param set-default BAT1_A_PER_V 36.00 | ||
|
||
param set-default BAT_V_OFFS_CURR 0.413 | ||
|
||
# Disable safety switch | ||
param set-default CBRK_IO_SAFETY 22027 | ||
|
||
|
||
safety_button start | ||
|
||
set LOGGER_BUF 32 |
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,4 @@ | ||
#!/bin/sh | ||
# | ||
# board specific MAVLink startup script. | ||
#------------------------------------------------------------------------------ |
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 @@ | ||
#!/bin/sh | ||
# | ||
# SMARTAP AIRLINK specific board sensors init | ||
#------------------------------------------------------------------------------ | ||
board_adc start | ||
|
||
# Internal SPI bus MPU-9250 / SPI 2 [FPC] | ||
mpu9250 -s -b 2 -M -R 6 start | ||
|
||
# Internal SPI bus ICM-20602 / SPI 1 | ||
icm20602 -R 0 -s start | ||
|
||
# Internal SPI bus MPU-9250 / SPI 3 | ||
mpu9250 -s -b 3 -M -R 4 start | ||
|
||
# Internal compass | ||
bmm150 -I start | ||
|
||
# Internal Baro | ||
ms5611 -X start | ||
|
||
# Internal Baro | ||
bmp388 -I -a 0x77 start | ||
#bmp388 -I start | ||
|
||
# External HMC5983 | ||
hmc5883 -T -X -R 4 start | ||
dagar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# External LIS3MDL | ||
lis3mdl -R 2 -X start | ||
|
||
# NCP5623 Led driver | ||
rgbled_ncp5623c -X -a 0x38 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,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-8, CAP1 as PROBE_1-9 to provide timing signals from selected drivers. | ||
|
||
config BOARD_USE_PROBES | ||
bool "Enable the use the board provided FMU-CH1-8, CAP1 as PROBE_1-9" | ||
default n | ||
depends on BOARD_HAS_PROBES | ||
|
||
---help--- | ||
Select to use GPIO FMU-CH1-8, CAP1 to provide timing signals from selected drivers. |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would skip the mpu9250 mag if you have another internal magnetometer working. Long story, but when the mpu9250 ak8963 is enabled it disrupts the FIFO output and you don't get clean 8 kHz raw data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you plot
vehicle_imu_status.gyro_raw_rate_hz
or look atsensors status
you'll be able to see the difference.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Then it makes sense indeed. I would still prefer to have magnetometer enabled on one mpu9250 but not on both for redundancy in addition to onboard bmm150.