Skip to content
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

[WIP]: deprecate DriverFramework mpu9250 driver #19

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
97445b6
commander preflightcheck update orb usage to uORB::SubscriptionData
dagar Jul 28, 2019
ff8e70f
jenkins: archive catkin test logs on failure
lamping7 Jul 28, 2019
f432f74
ulanding: refactor driver to utilize ScheduledWorkQueue class inherit…
mcsauder Jul 28, 2019
09eaef8
sih: move to PX4Accelerometer/PX4Gyroscope/PX4Magnetometer/PX4Baromet…
dagar Jun 1, 2019
be99d2f
sih: fix code style
dagar Jun 1, 2019
f0cdd9b
MPC_Z_VEL_I: changed default from 0.02 to 0.1
RomanBapst Jul 23, 2019
a5d3e10
MPC_MAN_Y_MAX: changed default from 200 to 150 deg/s
RomanBapst Jul 23, 2019
81ae850
changed defaults of MPC acceleration limit parameters
RomanBapst Jul 23, 2019
77fd290
added default expo for yaw and x/y/z velocity demand in position mode
RomanBapst Jul 23, 2019
a807158
increase default fixed wing rate controller I term
RomanBapst Jul 23, 2019
b75d2ce
set trajectory generating flight task as default (MPC_POS_MODE = 3)
RomanBapst Jul 23, 2019
203d932
osd/atxxxx move to new WQ and uORB::Subscription
dagar Jun 4, 2019
87200d7
lsm303d driver move to PX4Accelerometer/PX4Magnetometer and cleanup
dagar Jul 27, 2019
7553112
lsm303d split out header and main
dagar Jul 27, 2019
ca74b3f
Update submodule nuttx to latest Mon Jul 29 12:38:24 UTC 2019
PX4BuildBot Jul 29, 2019
0dc8119
listener print strings
dagar May 30, 2019
0e949a3
task_stack_info increase task_name length to match NuttX CONFIG_TASK_…
dagar May 30, 2019
13e777c
px4_fmuv5x:Use slot 0 with SDMMC2
davids5 Jul 26, 2019
7eb7db4
px4_fmuv5x:Fixed SDMMC DMA
davids5 Jul 26, 2019
7c1d616
px4_fmuv5x:Fix GPS
davids5 Jul 26, 2019
72c742f
px4_fmuv5x:Update to master single wire
davids5 Jul 26, 2019
25b95dc
px4fmu-v5x:Fix up start script
davids5 Jul 27, 2019
423dd23
fmu-v5x:SPI fix Typo on SPI4 causing assertion
davids5 Jul 30, 2019
0300a38
fmuv5x:Missing define PX4_SPI_BUS_SENSORS
davids5 Jul 30, 2019
a90c87a
px4fmu-v5x:BMI055->BMI088 (#12582)
davids5 Jul 30, 2019
487addb
rc.autostart: add error reporting (#12527)
garfieldG Jul 31, 2019
eaaf66e
INA226::init Restored return OK in trigger mode
Jul 31, 2019
1600b0f
Mavlink FTP - return ENOENT when directory doesn't exist (#12589)
MatejFranceskin Jul 31, 2019
e9397ee
ll40ls: fix LIDAR-Lite v3 initialization (#12453)
dvornikov-aa Jul 31, 2019
29c50da
ll40ls: cleanup and create PX4Rangerfinder helper class (#12567)
dagar Jul 31, 2019
7789e2d
sensors: mag reload calibration parameters when first seen (#12586)
Lepetshan Jul 31, 2019
bc9fb26
commander esc_calibration move to uORB::Subscrition
dagar Jul 28, 2019
4bf9344
camera_trigger: move to new WQ and uORB::Subscription
dagar Aug 1, 2019
5d986f2
posix: add argument to change the CWD (#12482)
lamping7 Aug 1, 2019
d0f1a55
manual_contol_setpoint: fix mode slot numbering (#12578)
MaEtUgR Aug 1, 2019
f7c9acb
Update submodule nuttx to latest Thu Aug 1 18:09:20 EDT 2019 (#12603)
dagar Aug 1, 2019
8609be2
Update submodule v2.0 to latest Thu Aug 1 18:09:13 EDT 2019
PX4BuildBot Aug 1, 2019
e0c85c8
ll40ls: correct a write_reg issue (#12604)
mcsauder Aug 2, 2019
eda49a4
PixArt PAW3902 optical motion tracking driver (#12576)
dagar Aug 2, 2019
c2a5fc0
Jenkinsfile-SITL_tests: bump kinetic container to 2019-07-29 tag
mrivi Aug 2, 2019
14501df
update local_planner ci to avoidance stable release 0.3.0
mrivi Aug 2, 2019
959a35b
add safe_landing_planner to CI
mrivi Aug 2, 2019
39a5799
Mavlink: fixed temperature for batteries (#12605)
Aug 2, 2019
5f96240
Update submodule DriverFramework to latest Fri Aug 2 08:39:05 EDT 2019
PX4BuildBot Aug 2, 2019
d301c22
Bosch BMI088 initial driver
ksschwabe Jul 31, 2019
846cdc2
[WIP]: deprecate DriverFramework mpu9250 driver
dagar Jun 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .ci/Jenkinsfile-SITL_tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline {
stage('Build') {
agent {
docker {
image 'px4io/px4-dev-ros-kinetic:2019-03-08'
image 'px4io/px4-dev-ros-kinetic:2019-07-29'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
}
}
Expand Down Expand Up @@ -93,6 +93,13 @@ pipeline {
vehicle: "iris_obs_avoid",
run_script: "rostest_avoidance_run.sh"
],
[
name: "MC_safe_landing",
test: "mavros_posix_test_safe_landing.test",
mission: "MC_safe_landing",
vehicle: "iris_obs_avoid",
run_script: "rostest_avoidance_run.sh"
],

]

Expand Down Expand Up @@ -123,7 +130,7 @@ def createTestNode(Map test_def) {
return {
node {
cleanWs()
docker.image("px4io/px4-dev-ros-kinetic:2019-03-08").inside('-e HOME=${WORKSPACE}') {
docker.image("px4io/px4-dev-ros-kinetic:2019-07-29").inside('-e HOME=${WORKSPACE}') {
stage(test_def.name) {
def run_script = test_def.get('run_script', 'rostest_px4_run.sh')
def test_ok = true
Expand Down
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ pipeline {
always {
sh 'rm -rf catkin_ws'
}
failure {
archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.xml, .ros/**/*.log')
}
}
options {
checkoutToSubdirectory('catkin_ws/src/Firmware')
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ tests_offboard: rostest

tests_avoidance: rostest
@"$(SRC_DIR)"/test/rostest_avoidance_run.sh mavros_posix_test_avoidance.test
@"$(SRC_DIR)"/test/rostest_avoidance_run.sh mavros_posix_test_safe_landing.test

python_coverage:
@mkdir -p "$(SRC_DIR)"/build/python_coverage
Expand Down
19 changes: 15 additions & 4 deletions Tools/px4airframes/rcout.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def __init__(self, groups, board, post_start=False):
"# 12000 .. 12999 Octo Cox\n"
"# 13000 .. 13999 VTOL\n"
"# 14000 .. 14999 Tri Y\n"
""
""
"cd /etc/init.d/airframes\n"
"\n")
result += "\n"
result += "set AIRFRAME none\n"
result += "\n"
for group in groups:
result += "# GROUP: %s\n\n" % group.GetName()
for param in group.GetParams():
Expand Down Expand Up @@ -62,14 +62,25 @@ def __init__(self, groups, board, post_start=False):
result += "# %s\n" % param.GetName()
result += "if param compare SYS_AUTOSTART %s\n" % id_val
result += "then\n"
result += "\tsh %s\n" % path
result += "\tset AIRFRAME %s\n" % path
result += "fi\n"

#if long_desc is not None:
# result += "# %s\n" % long_desc
result += "\n"

result += "\n"
result += "\n"
result += "if [ ${AIRFRAME} != none ]\n"
result += "then\n"
result += "\tsh /etc/init.d/airframes/${AIRFRAME}\n"
if not post_start:
result += "else\n"
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\" >> $LOG_FILE\n"
result += "\ttone_alarm ${TUNE_ERR}\n"
result += "fi\n"
result += "unset AIRFRAME"
self.output = result

def Save(self, filename):
Expand Down
4 changes: 4 additions & 0 deletions boards/aerotenna/ocpoc/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
#define ADC_AIRSPEED_VOLTAGE_CHANNEL 11

// SPI
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS, 1)

#include <system_config.h>
#include <drivers/boards/common/board_common.h>
2 changes: 1 addition & 1 deletion boards/aerotenna/ocpoc/ubuntu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers
gps
#imu # all available imu drivers
imu/mpu9250
lights/rgbled
linux_pwm_out
linux_sbus
Expand All @@ -24,7 +25,6 @@ px4_add_board(
#telemetry # all available telemetry drivers

DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
mpu9250
ms5611
hmc5883

Expand Down
2 changes: 1 addition & 1 deletion boards/atlflight/eagle/qurt-default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ px4_add_board(

DRIVERS
gps
imu/mpu9250
spektrum_rc
qshell/qurt
snapdragon_pwm_out

DF_DRIVERS
mpu9250
bmp280
hmc5883
trone
Expand Down
4 changes: 4 additions & 0 deletions boards/atlflight/eagle/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
#define PX4_I2C_BUS_LED 3
#define PX4_NUMBER_I2C_BUSES 3

// SPI
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS, 1)

#include <system_config.h>
#include <drivers/boards/common/board_common.h>
2 changes: 1 addition & 1 deletion boards/atlflight/excelsior/qurt-default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ px4_add_board(

DRIVERS
gps
imu/mpu9250
spektrum_rc
qshell/qurt
snapdragon_pwm_out

DF_DRIVERS
mpu9250
bmp280
hmc5883
trone
Expand Down
2 changes: 1 addition & 1 deletion boards/beaglebone/blue/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers
gps
#imu # all available imu drivers
imu/mpu9250
#magnetometer # all available magnetometer drivers
pwm_out_sim
#telemetry # all available telemetry drivers
Expand All @@ -24,7 +25,6 @@ px4_add_board(
linux_sbus

DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
mpu9250
bmp280

MODULES
Expand Down
2 changes: 1 addition & 1 deletion boards/beaglebone/blue/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers
gps
#imu # all available imu drivers
imu/mpu9250
#magnetometer # all available magnetometer drivers
pwm_out_sim
#telemetry # all available telemetry drivers
Expand All @@ -22,7 +23,6 @@ px4_add_board(
linux_sbus

DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
mpu9250
bmp280

MODULES
Expand Down
2 changes: 1 addition & 1 deletion boards/emlid/navio2/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers
gps
#imu # all available imu drivers
imu/mpu9250
#magnetometer # all available magnetometer drivers
pwm_out_sim
#telemetry # all available telemetry drivers
Expand All @@ -27,7 +28,6 @@ px4_add_board(
hmc5883
isl29501
lsm9ds1
mpu9250
ms5611
trone

Expand Down
2 changes: 1 addition & 1 deletion boards/emlid/navio2/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers
gps
#imu # all available imu drivers
imu/mpu9250
#magnetometer # all available magnetometer drivers
pwm_out_sim
#telemetry # all available telemetry drivers
Expand All @@ -25,7 +26,6 @@ px4_add_board(
hmc5883
isl29501
lsm9ds1
mpu9250
ms5611
trone

Expand Down
8 changes: 6 additions & 2 deletions boards/emlid/navio2/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@
/*
* I2C busses
*/
#define PX4_I2C_BUS_EXPANSION 1
#define PX4_NUMBER_I2C_BUSES 1
#define PX4_I2C_BUS_EXPANSION 1
#define PX4_NUMBER_I2C_BUSES 1

// SPI
#define PX4_SPI_BUS_SENSORS 0
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS, 1)

#include <system_config.h>
#include <drivers/boards/common/board_common.h>
4 changes: 2 additions & 2 deletions boards/px4/fmu-v5x/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ px4_add_board(
UAVCAN_INTERFACES 2

SERIAL_PORTS
GPS1:/dev/ttyS1
GPS1:/dev/ttyS0
TEL1:/dev/ttyS6
TEL2:/dev/ttyS4
TEL3:/dev/ttyS2
Expand All @@ -30,7 +30,7 @@ px4_add_board(
imu/adis16448
imu/adis16497
#imu # all available imu drivers
# TBD imu/bmi088 - needs bus selection
imu/bmi088
# TBD imu/ism330dlc - needs bus selection
imu/mpu6000
irlock
Expand Down
9 changes: 7 additions & 2 deletions boards/px4/fmu-v5x/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# PX4 FMUv5X specific board sensors init
#------------------------------------------------------------------------------

# Start Digital power monitors
ina226 -b 1 start
ina226 -b 2 start

# Internal SPI bus ICM-20602
mpu6000 -R 8 -s -T 20602 start

Expand All @@ -22,10 +26,11 @@ hmc5883 -C -T -X start
qmc5883 -X start

# Possible internal compass
bmm150 -C start
bmm150 start

# Possible internal Barro
bmp388 -C start
bmp388 -I start
#bmp388 -J start fixme

# Possible pmw3901 optical flow sensor
pmw3901 start
2 changes: 1 addition & 1 deletion boards/px4/fmu-v5x/nuttx-config/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
* DMAMAP_SDMMC2_2 = Channel 11, Stream 5 <- Free for other devices
*/

#define DMAMAP_SDMMC2 DMAMAP_SDMMC1_1
#define DMAMAP_SDMMC2 DMAMAP_SDMMC2_1


/* FLASH wait states
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v5x/nuttx-config/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ CONFIG_STM32F7_USART2=y
CONFIG_STM32F7_USART3=y
CONFIG_STM32F7_USART6=y
CONFIG_STM32F7_USART_BREAKS=y
CONFIG_STM32F7_USART_INVERT=y
CONFIG_STM32F7_USART_SINGLEWIRE=y
CONFIG_STM32F7_USART_SWAP=y
CONFIG_STM32F7_WWDG=y
CONFIG_SYSTEM_CDCACM=y
CONFIG_SYSTEM_NSH=y
Expand Down
20 changes: 10 additions & 10 deletions boards/px4/fmu-v5x/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
#define PX4_SPI_BUS_SENSORS1 1
#define PX4_SPI_BUS_SENSORS2 2
#define PX4_SPI_BUS_SENSORS3 3
#define PX4_SPI_BUS_MAG 4
#define PX4_SPI_BUS_SENSORS4 4

#define PX4_SPI_BUS_MAG PX4_SPI_BUS_SENSORS4
#define PX4_SPI_BUS_MEMORY 5
#define PX4_SPI_BUS_EXTERNAL1 6

Expand Down Expand Up @@ -251,8 +253,8 @@
#define PX4_SPIDEV_ISM330 PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS2,0)
#define PX4_SENSORS2_BUS_CS_GPIO {GPIO_SPI2_nCS1_ISM330}

#define PX4_SPIDEV_BMI055_GYR PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS3,0)
#define PX4_SPIDEV_BMI055_ACC PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS3,1)
#define PX4_SPIDEV_BMI088_GYR PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS3,0)
#define PX4_SPIDEV_BMI088_ACC PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS3,1)
#define PX4_SENSORS3_BUS_CS_GPIO {GPIO_SPI3_nCS2_BMI088_GYRO, GPIO_SPI3_nCS1_BMI088_ACCEL}

#define PX4_SPIDEV_BMM150 PX4_MK_SPI_SEL(PX4_SPI_BUS_SENSORS4,0)
Expand Down Expand Up @@ -512,12 +514,10 @@
#define HRT_PPM_CHANNEL /* T8C1 */ 1 /* use capture/compare channel 1 */
#define GPIO_PPM_IN /* PI5 T8C1 */ GPIO_TIM8_CH1IN_2

#define RC_UXART_BASE STM32_USART6_BASE
/* RC Serial port */

#define RC_SERIAL_PORT "/dev/ttyS5"
#define BOARD_HAS_SINGLE_WIRE 1 /* HW is capable of Single Wire */
#define BOARD_HAS_SINGLE_WIRE_ON_TX 0 /* HW default is wired as Single Wire On RX pin */
#define BOARD_HAS_RX_TX_SWAP 1 /* HW Can swap TX and RX */
#define RC_SERIAL_PORT_IS_SWAPED 1 /* Board wired with RC's TX is on cpu RX */
#define RC_SERIAL_SINGLEWIRE

/* Input Capture Channels. */
#define INPUT_CAP1_TIMER 5
Expand Down Expand Up @@ -560,8 +560,8 @@
#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 SDIO_SLOTNO 1 /* Only one slot */
#define SDIO_MINOR 1
#define SDIO_SLOTNO 0 /* Only one slot */
#define SDIO_MINOR 0

/* SD card bringup does not work if performed on the IDLE thread because it
* will cause waiting. Use either:
Expand Down
Loading