PX4 / DriverFramework

Operating system and flight stack agnostic driver framework for POSIX (Linux, NuttX, Mac OS, QNX, VxWorks).
82 stars 132 forks source link

Add __DF_BARO_DEV, __DF_ACCEL_DEV,__DF_MAG_DEV #206

Closed crossa closed 7 years ago

crossa commented 7 years ago
  1. Add DF_BARO_DEV, DF_ACCEL_DEV,__DF_MAG_DEV definetion.

I am tring to port px4 to friendly arm nanopi neo 2 in these days . I write these 3 definetion in the cmake file and I find it is the SMART CHOICE to specify the path of driver .

The first i2c of nano pi is i2c-0 and only spidev0.0 is avaliable on nano pi . Use these 3 definetions to avoid repeated change. If who want to launch DriverFrame on another board which has difterent path of device , these 3 definetions are very useful

  1. Fixed definetion where useing __DF_RPI_SINGLE definetion. If using mpu9250,both ,mag and accl show be setted as "/dev/spidev0.1", when defining the path of device , "DF_RPI_SINGLE " should be detected ahead "DF_RPI" dectection
crossa commented 7 years ago

@julianoes https://travis-ci.org/PX4/DriverFramework/jobs/244817072.

$ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pushd . && cd ~ && mkdir -p ~/bin && wget -O ~/bin/astyle https://github.com/PX4/astyle/releases/download/2.06/astyle-linux && chmod +x ~/bin/astyle && astyle --version && popd ; fi

~/build/PX4/DriverFramework ~/build/PX4/DriverFramework

--2017-06-21 03:46:44-- https://github.com/PX4/astyle/releases/download/2.06/astyle-linux

Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113

Connecting to github.com (github.com)|192.30.253.112|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2017-06-21 03:46:44 ERROR 404: Not Found.

How can I restart the job?

julianoes commented 7 years ago

How can I restart the job?

Done.

crossa commented 7 years ago

@julianoes

https://travis-ci.org/PX4/DriverFramework/jobs/245461866 Job #854.1

$ export CXX=g++

$ export CC=gcc

$ gcc --version

gcc (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

0.05s$ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pushd . && cd ~ && mkdir -p ~/bin && wget -O ~/bin/astyle https://github.com/PX4/astyle/releases/download/2.06/astyle-linux && chmod +x ~/bin/astyle && astyle --version && popd ; fi

~/build/PX4/DriverFramework ~/build/PX4/DriverFramework

--2017-06-21 17:25:29-- https://github.com/PX4/astyle/releases/download/2.06/astyle-linux

Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112

Connecting to github.com (github.com)|192.30.253.113|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2017-06-21 17:25:29 ERROR 404: Not Found.

The command "if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pushd . && cd ~ && mkdir -p ~/bin && wget -O ~/bin/astyle https://github.com/PX4/astyle/releases/download/2.06/astyle-linux && chmod +x ~/bin/astyle && astyle --version && popd ; fi" failed and exited with 8 during .

Your build has been stopped.

julianoes commented 7 years ago

@crossa: I'm trying to fix it in #208.