-
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.
boards: bluerobotics: Add navigator board support
- Loading branch information
1 parent
891d5d7
commit 6556feb
Showing
15 changed files
with
661 additions
and
2 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
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(neopixel) |
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,53 @@ | ||
############################################################################ | ||
# | ||
# Copyright (c) 2020 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. | ||
# | ||
############################################################################ | ||
|
||
if(DEFINED ENV{AUTOPILOT_HOST}) | ||
set(AUTOPILOT_HOST $ENV{AUTOPILOT_HOST}) | ||
else() | ||
set(AUTOPILOT_HOST "raspberrypi") | ||
endif() | ||
|
||
if(DEFINED ENV{AUTOPILOT_USER}) | ||
set(AUTOPILOT_USER $ENV{AUTOPILOT_USER}) | ||
else() | ||
set(AUTOPILOT_USER "pi") | ||
endif() | ||
|
||
add_custom_target(upload | ||
COMMAND rsync -arh --progress | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/rpi/navigator/*.config ${PX4_BINARY_DIR}/etc # source | ||
"${AUTOPILOT_USER}@${AUTOPILOT_HOST}:/home/${AUTOPILOT_USER}/px4" # destination | ||
DEPENDS px4 | ||
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,78 @@ | ||
CONFIG_PLATFORM_POSIX=y | ||
CONFIG_BOARD_LINUX_TARGET=y | ||
CONFIG_BOARD_TESTING=y | ||
CONFIG_BOARD_TOOLCHAIN="arm-linux-gnueabihf" | ||
CONFIG_BOARD_ARCHITECTURE="cortex-a53" | ||
CONFIG_DRIVERS_ADC_ADS1115=y | ||
CONFIG_DRIVERS_BATT_SMBUS=y | ||
CONFIG_DRIVERS_CAMERA_TRIGGER=y | ||
CONFIG_DRIVERS_LIGHTS_NEOPIXEL=y | ||
CONFIG_DRIVERS_IMU_INVENSENSE_ICM20602=y | ||
CONFIG_DRIVERS_BAROMETER_BMP280=y | ||
CONFIG_DRIVERS_GPS=y | ||
CONFIG_DRIVERS_MAGNETOMETER_MEMSIC_MMC5983MA=y | ||
CONFIG_DRIVERS_MAGNETOMETER_AKM_AK09916=y | ||
CONFIG_DRIVERS_PCA9685_PWM_OUT=y | ||
CONFIG_PCA9685_USE_EXTERNAL_CRYSTAL=y | ||
CONFIG_DRIVERS_RC_INPUT=y | ||
CONFIG_DRIVERS_SMART_BATTERY_BATMON=y | ||
CONFIG_COMMON_RC=y | ||
CONFIG_COMMON_DIFFERENTIAL_PRESSURE=y | ||
CONFIG_COMMON_DISTANCE_SENSOR=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_EVENTS=y | ||
CONFIG_MODULES_FLIGHT_MODE_MANAGER=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_MAVLINK=y | ||
CONFIG_MODULES_MC_HOVER_THRUST_ESTIMATOR=y | ||
CONFIG_MODULES_NAVIGATOR=y | ||
CONFIG_MODULES_RC_UPDATE=y | ||
CONFIG_MODULES_SENSORS=y | ||
CONFIG_MODULES_SIMULATION_SIMULATOR_SIH=y | ||
CONFIG_MODULES_TEMPERATURE_COMPENSATION=y | ||
CONFIG_MODULES_UUV_ATT_CONTROL=y | ||
CONFIG_MODULES_UUV_POS_CONTROL=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_MANUAL_CONTROL=y | ||
CONFIG_MODULES_MC_ATT_CONTROL=y | ||
CONFIG_MODULES_MC_AUTOTUNE_ATTITUDE_CONTROL=y | ||
CONFIG_MODULES_MC_POS_CONTROL=y | ||
CONFIG_MODULES_MC_RATE_CONTROL=y | ||
CONFIG_MODULES_ROVER_POS_CONTROL=y | ||
CONFIG_MODULES_VTOL_ATT_CONTROL=y | ||
CONFIG_SYSTEMCMDS_BSONDUMP=y | ||
CONFIG_SYSTEMCMDS_DYN=y | ||
CONFIG_SYSTEMCMDS_LED_CONTROL=y | ||
CONFIG_SYSTEMCMDS_PARAM=y | ||
CONFIG_SYSTEMCMDS_PERF=y | ||
CONFIG_SYSTEMCMDS_SD_BENCH=y | ||
CONFIG_SYSTEMCMDS_SHUTDOWN=y | ||
CONFIG_SYSTEMCMDS_TOPIC_LISTENER=y | ||
CONFIG_SYSTEMCMDS_TUNE_CONTROL=y | ||
CONFIG_SYSTEMCMDS_UORB=y | ||
CONFIG_SYSTEMCMDS_VER=y | ||
CONFIG_SYSTEMCMDS_WORK_QUEUE=y | ||
CONFIG_EXAMPLES_DYN_HELLO=y | ||
CONFIG_EXAMPLES_FAKE_GPS=y | ||
CONFIG_EXAMPLES_HELLO=y | ||
CONFIG_EXAMPLES_PX4_MAVLINK_DEBUG=y | ||
CONFIG_EXAMPLES_PX4_SIMPLE_APP=y | ||
CONFIG_EXAMPLES_WORK_ITEM=y |
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 @@ | ||
#!/bin/sh | ||
# | ||
# board specific defaults | ||
#------------------------------------------------------------------------------ | ||
|
||
# system_power not implemented | ||
param set CBRK_SUPPLY_CHK 894281 | ||
|
||
# 1K + 4.7K | ||
param set BAT1_V_DIV 5.7 | ||
|
||
# Always keep current config | ||
param set SYS_AUTOCONFIG 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,7 @@ | ||
#!/bin/sh | ||
# | ||
# board specific extras init | ||
#------------------------------------------------------------------------------ | ||
|
||
rc_input start -d /dev/ttyAMA1 | ||
rc_update 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,39 @@ | ||
#!/bin/sh | ||
# | ||
# Navigator specific board sensors init | ||
#------------------------------------------------------------------------------ | ||
|
||
if ! mmc5983ma start -s -m 0 -R 4 | ||
then | ||
echo "mmc5983ma not found." | ||
fi | ||
|
||
if ! ak09916 start -I -R 6 | ||
then | ||
echo "AK09916 not found." | ||
fi | ||
|
||
if ! icm20602 start -s -m 0 -R 14 | ||
then | ||
echo "ICM20602 not found." | ||
fi | ||
|
||
if ! bmp280 start -I | ||
then | ||
echo "bmp280 not found." | ||
fi | ||
|
||
if ! ads1115 start -I -N | ||
then | ||
echo "ads1115 not found." | ||
fi | ||
|
||
if ! pca9685_pwm_out start -a 0x40 -b 4 | ||
then | ||
echo "pca9685_pwm_out not found." | ||
fi | ||
|
||
if ! neopixel start | ||
then | ||
echo "neopixel not found." | ||
fi |
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,36 @@ | ||
############################################################################ | ||
# | ||
# 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. | ||
# | ||
############################################################################ | ||
|
||
px4_add_library(arch_srgbled_dma | ||
srgbled_impl.cpp | ||
) |
Oops, something went wrong.