Commit Graph

1780 Commits

Author SHA1 Message Date
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
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
Lorenz Meier fe82b412f6 Merge pull request #2269 from mcharleb/uorb-posix-fix
Created px4_access to handle check of virtual files
2015-06-04 08:39:56 +02:00
Mark Charlebois f985a48fbc Created px4_access to handle check of virtual files
uORBManager_posix.cpp did a stat to see if a file exists but the
file is actually a virtual file. Using stat was incorrect because
it required a stat buffer that was never used. The POSIX access
function is a better choice so I created a px4_access version to
handle virtual files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 16:22:14 -07:00
Mark Charlebois b4152f3daa POSIX: Fixed output for list_topics, list_devices, etc
Removed extra carriage returns in output strings

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:37 +00:00
Luis Rodrigues f3b392513d fixed timming issued in I2C whoami communication 2015-06-02 10:32:57 +02:00
Lorenz Meier 6a35887f54 Merge pull request #2260 from Terabee/master
fixed timming issued in I2C whoami communication
2015-06-02 01:32:47 -07:00
Lorenz Meier f54080bd43 Merge pull request #2226 from rmackay9/orig-precland6
Driver for the IR Lock vision sensor (derivative of the Pixy vision sensor)
2015-06-02 01:31:01 -07:00
Luis Rodrigues 70bfb42956 fixed timming issued in I2C whoami communication 2015-05-31 21:09:21 +02:00
Mark Charlebois 6343b2c56f px4_poll fix - was sleeping for usec instead of ms
There was a conversion error in the timeout (in ms)
passed in and the ts.tv_nsec field of the struct timeval.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-29 13:26:29 -07:00
Mark Whitehorn 61904d3106 fix type mismatch 2015-05-29 10:05:29 -06:00
Randy Mackay 7dcef40516 irlock: report target in radians 2015-05-29 16:50:48 +09:00