Commit Graph

3340 Commits

Author SHA1 Message Date
Lorenz Meier 8bb9707f3f FMU: Allow to pre-arm the non-throttle channels with the safety switch 2015-07-06 12:08:31 +02:00
Simon Laube d9e6cb0f58 implemented retrying the connection to the px4flow sensor before giving up. 2015-07-04 18:27:01 +02:00
Simon Laube dac74db104 change the nested if structure which tries all i2c busses to a loop. 2015-07-04 18:26:52 +02:00
Lorenz Meier 969d6cd563 Merge pull request #2499 from leitwert/feature/retry-start-px4flow
Feature: Retry start px4flow
2015-07-04 18:26:14 +02:00
Lorenz Meier ce439345c5 HIL driver: Fix build breakage 2015-07-02 11:19:57 +02:00
Lorenz Meier 20de4aaaa5 HIL driver: Output zero like the other actuator drivers do when not armed 2015-07-02 11:04:59 +02:00
Lorenz Meier 234990fbe4 Merge branch 'release_v1.0.0' of github.com:PX4/Firmware 2015-07-02 01:00:06 +02:00
Lorenz Meier 509ec90b76 Merge pull request #2406 from mcharleb/logging-v3
Improved logging with both compile and runtime level filtering
2015-07-01 23:31:50 +02:00
Lorenz Meier 9c7450248f Merge pull request #2498 from mcharleb/bringup-m5
POSIX: Critical fix for vdev_posix
2015-07-01 15:13:29 +02:00
Mark Charlebois 14bf8bb277 POSIX: Critical fix for vdev_posix
Last fix for vdev_posix.cpp introduced a sleep from within
a HRT work item callback which blocks the HRT queue.

The code in uORBDevices_posix.cpp that handles message
throttling was commented out for posix. The code was re-enabled
and now seems to work.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-30 12:08:42 -07:00
Lorenz Meier 428bd0a9ec Merge pull request #2497 from mcharleb/bringup-m5
Bringup m5
2015-06-30 20:02:57 +02:00
Simon Laube 7a93348340 implemented retrying the connection to the px4flow sensor before giving up. 2015-06-30 18:28:19 +02:00
Simon Laube 93dfc435a4 change the nested if structure which tries all i2c busses to a loop. 2015-06-30 17:53:19 +02:00
Lorenz Meier 1b4405ee3a FMU driver: Set throttle to zero if in PWM ramp mode 2015-06-30 09:51:19 +02:00
Mark Charlebois da2ac877f8 POSIX: Changed px4_poll to use hrt_work queue
QuRT's pthread_cancel implementation is lacking, and causes px4_poll to
always wait for the maximumn timeout. A cleaner implementation is provided
that uses the HRT work queue for posix targets.

In the future the posix code should be rtefactiored so that qurt (and other)
implementations that are duplicated, use the posix implementation.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-29 19:08:06 -07:00
Lorenz Meier d19de58102 Merge branch 'master' of github.com:PX4/Firmware into master_release 2015-06-27 11:54:17 -07:00
Lorenz Meier 4cf9976ad8 Merge branch 'master_release' of github.com:PX4/Firmware into master_release 2015-06-30 15:43:53 +02:00
Lorenz Meier 50ba1f7365 merged release_v1.0.0 into master 2015-06-30 15:30:45 +02:00
Lorenz Meier 5b354b9631 PWM driver: Fix _IOC to _PX4_IOC for getting servo rate 2015-06-29 16:10:40 +02:00
Andrew Tridgell 5e27b7bc31 ms5611: fixed the i2c device on NuttX. This was left-over debugging noise from the POSIX bringup. 2015-06-27 15:11:03 +02:00
Lorenz Meier af28016a10 Merge pull request #2236 from TSC21/drivers_cleanup
drivers: added validity check
2015-06-26 07:39:09 +02:00
Lorenz Meier 51055a16fc L3GD20: Set max offset for gyro to 25 degrees per second based on comment from mailing list about datasheet ratings. 2015-06-26 07:08:54 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier ef6092afd9 HMC5883: Calculate correct scaling to apply using multiplication 2015-06-25 14:44:23 +02:00
Lorenz Meier cae604ac1f HMC5883: Increase the number of calibration cycles to ensure a stable result 2015-06-25 14:44:23 +02:00
tumbili 7043869237 VDev:
- increase max number of devices to 200
- increase max number of file descriptors to 200
- add warning if number of file descriptor exceeds max value
2015-06-23 18:32:40 +02:00
tumbili 52b0f17ff3 increase highest pwm to 2150 2015-06-23 12:30:47 +02:00
Lorenz Meier 27cec4a977 VDev POSIX: Fix non-POSIX conformant return value handling 2015-06-19 11:52:07 -07:00
Lorenz Meier d81d20ff0e VDev: Add missing break 2015-06-19 11:51:37 -07:00
tumbili 12feef85bf lower lowest allowed max pwm value to be able to cut rear motors for firefly6 in fw mode 2015-06-19 00:04:24 +02:00
Mark Charlebois 1a8703ec1c Improved logging with both compile and runtime level filtering
The device level debug will have to be removed and the debugging
can be based on this new logging structure which can tell where
an error (or debug output) occured whch the current implmentation
cannot.

The one limitation is the new macros cannot take a char* for the
format parameter. It must be an actual string literal because it
is concatenated with other strings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-17 13:28:27 -07:00
Lorenz Meier 7c8ea1f680 Merge pull request #2370 from PX4/mission_feedback
Mission feedback
2015-06-16 18:18:05 +02:00
Mark Charlebois 729653ba71 SITL: changed posix_default to posix_sitl
The SITL build is now the default posix build.

The linker script for posix was moved to makefiles/posix.
The rc.S file was moved to posix-configs/SITL/init/
The POSIXTEST board definition is now SITL

To run the SITL test run:

make sitlrun

This replaces the make posixrun target.

The build directory is now Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 09:51:07 -07:00
Lorenz Meier 73d179fb59 MS5611 driver: Fix reeset logic via I2C, minor code style fixes. Fixes #2007, identified by Kirill-ka 2015-06-15 17:28:26 +02:00
Lorenz Meier 21ca431131 Tone alarm: Add home set tune 2015-06-15 17:28:05 +02:00
Lorenz Meier b06a533555 OS X porting: Make unit tests compile on OS X 2015-06-13 11:07:17 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier 085a69383a Merged master 2015-06-12 13:40:47 +02:00
Lorenz Meier 0bfc727584 Add more functionality to HIL driver 2015-06-12 13:30:44 +02:00
Lorenz Meier 863a6e8811 HIL driver: Fix boot order race 2015-06-12 09:27:50 +02:00
Lorenz Meier 3f4b5fcb72 HIL driver: Fix boot order race 2015-06-12 09:27:15 +02:00
Mark Charlebois 83bcb95999 POSIX: Added sleep command
The baro was not fully initialized when the sensors module tried to
open it. Added a sleep command and a sleep 2 to rc.S so the baro
is initialized by the time the sensors module tried to read it.

Fixed other noisy errors

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 17:28:46 -07:00
Lorenz Meier 8259102bf1 PX4 IO driver: Fix TRIM upload 2015-06-09 23:06:01 +02:00
Lorenz Meier 284da7d344 PX4IO driver: Support trim values 2015-06-09 14:19:00 +02:00
tumbili a5c214a7bb use orb_advertise_multi:
- subscribe to actuator controls after topic has been advertised
2015-06-08 22:21:59 -07:00
Mark Charlebois 6cb26de74c Multi-uORB support changes - part 1
This adds support for a dynamic build for QuRT and initial
Multi-uORB changes to enable communication between the DSP and
the application processor.

This part of the changes do not affect the POSIX build. This is
enablement for the QuRT build using Multi-uORB. The second part
of the changes will be added in a new module under src/modules.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois 99c066c39c HIL: Cleanup creation and initialization
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
tumbili 3d44384731 temporarily don't use multi advert because doesn't work 2015-06-08 22:21:58 -07:00
tumbili fb778af8b3 increase max file descriptors to 100 2015-06-08 22:21:58 -07:00
Lorenz Meier 126ad2247e PX4IO: Code style fixes 2015-06-05 22:45:06 +02:00