Commit Graph

964 Commits

Author SHA1 Message Date
Julian Oes 89661b2d9a df_mpu9250_wrapper: use all accel/gyro data
Use the data which has been filtered by the integrator for the
instantanous values instead of only 1 out of 32 samples.

This is to better support estimators and modules other than ekf2 which
uses the integrated gyro/accel values anyway.
2016-05-12 12:41:40 +02:00
Beat Küng 42a9d5651f platform: some code cleanup for px4_{posix,qurt}_tasks.cpp
- __BEGIN_DECLS is for declarations not definitions
- getprogname() declaration is in err.h
2016-05-11 15:56:50 +02:00
Beat Küng 77c61260df px4_task_spawn_cmd: handle case properly when running out of unused taskmap items 2016-05-11 15:56:50 +02:00
Beat Küng d3068b4337 px4_task_spawn_cmd: fix memory leak on posix 2016-05-11 15:56:50 +02:00
Julian Oes 6c61b67fd5 shmem: fix eagle build 2016-05-05 14:28:35 +02:00
Lorenz Meier 34ba80ea9d Remove attributes warning for Snapdragon 2016-05-05 14:09:18 +02:00
Lorenz Meier 084dfb4026 Fix Snapdragon no-packed 2016-05-05 14:02:31 +02:00
Daniel Agar 7aa6e85563 enable Wshadow 2016-05-05 13:32:42 +02:00
jwilson c87a8bedb6 Adding config changes to allow PX4 to be built for the Excelsior board. 2016-05-05 08:34:31 +02:00
Julian Oes aafcae7e6f MPU9250: integrate using the FIFO sample interval
Instead of calculating time offsets between samples, it is easier just
to assume a constant sampling time. Then all samples can be integrated,
and published every forth time the FIFO buffer has been emptied.

The sampling in the sensor happens at 8kHz, the driver empties the
buffer at 1kHz, and publishes (and resets the integration) at 250 Hz.
2016-05-04 22:28:19 +02:00
Beat Küng 44a0981c14 fix px4_task_spawn_cmd: unlock mutex if pthread_create fails 2016-05-03 17:34:42 +02:00
Beat Küng 99a682e7a7 fix px4_task_spawn_cmd: memory leak, if one of the pthread_* calls fails 2016-05-03 17:34:42 +02:00
Beat Küng c942266aa6 fix airspeedsim: add missing return 2016-05-03 17:34:41 +02:00
Beat Küng 1ce5d795be orb: move SmartLock into global space and use it also for NuttX 2016-04-29 11:15:16 +02:00
Beat Küng 4269db73a0 refactor semaphore: move into separate file 2016-04-29 11:15:15 +02:00
Julian Oes 0c0d251003 Intersil wrapper continued
* Qflight: add intersil sensor driver

* df_isl_wrapper: change driver lib name to isl

* posix-config: add df_isl_wrapper start command to eagle startup

* isl_wrapper: cleanup isl wrapper

* isl: remove unused option -R

* isl: change the driver name to isl29501

* DriverFramework: updated submodule again

This is to get the latest `make fix-style` changes.

* df_isl29501_wrapper: rename wrapper all the way
2016-04-28 15:31:40 +02:00
Julian Oes ea3adee28a shmem_qurt: fix format 2016-04-26 10:23:39 +02:00
Julian Oes e3c9135ac2 param_shmem: fix bug where params didn't stick
There was the case where a param was changed on the Linux side but the
change did not get saved on the DSP side because the param was not in
the local list of changed params on the DSP side. On save, the param
index is now refreshed, and param_get is called on all params that have
changed. This is a hacky workaround but resolves the problem for now.
2016-04-26 10:21:01 +02:00
Julian Oes 5e5af9c37f posix px4_layer: fix Mac build 2016-04-25 06:21:36 -07:00
Julian Oes ee57055b99 posix px4_layer: fix linking error on QURT 2016-04-25 06:21:36 -07:00
Julian Oes 0031220c1a df_mpu9250_wrapper: add reporting for range hits
We now send log messages over mavlink in case excessive vibrations are
detected.
2016-04-25 12:48:48 +02:00
Julian Oes 84c87696fe df_mpu9250_wrapper: use the elapsed counter 2016-04-25 12:48:48 +02:00
Julian Oes 20e494410a df_mpu9250_wrapper: add an info function 2016-04-25 12:48:48 +02:00
Julian Oes 23f882063e df_mpu9250_wrapper: also free the perf_counters 2016-04-25 12:48:48 +02:00
Julian Oes d55b4802f1 df_mpu9250_wrapper: add perf counters 2016-04-25 12:48:48 +02:00
Julian Oes 08a1941fd6 df_mpu9250_wrapper: fix style 2016-04-25 12:48:48 +02:00
Julian Oes 75444ae084 df_mpu9250_wrapper: use FIFO time offsets
- Make use of the FIFO time offsets provided by the MPU9250 driver.
  It allows to use proper dt for the integration.
- Got rid of the unnecessary perf_counters for now.
- Properly use the changed integrator lib.
- Provide integral_dt for ekf2.
2016-04-25 12:48:48 +02:00
Beat Küng 7ef718912a drv_gps.h: cleanup the file, remove unneeded stuff 2016-04-25 09:48:24 +02:00
Julian Oes a302e79bb6 param_shmem: be less chatty, printf cleanup 2016-04-24 20:03:10 +02:00
Mark Charlebois 169259059b Updated cmake_hexagon and all the associated files that use it
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-04-18 23:40:56 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes a325b77adf ros-commander: refactor changes 2016-04-11 18:01:49 +02:00
Daniel Agar 3a209d71af fix clang size error 2016-04-11 18:01:48 +02:00
Beat Küng 458feb0a44 fix gpssim: properly handle the case where gpssim is not running 2016-04-11 11:23:01 +02:00
Lorenz Meier b3b22b1c2c Airspeed driver: Proper start handling 2016-04-08 17:23:59 -07:00
Julian Oes 36d580bdc8 DF wrappers: use abs time instead of DF timestamp
The timestamp in the DriverFramework is not the same as the one
provided by hrt_absolute_time() in PX4. Because we are publishing on the
PX4 side, let's also use the timestamp from there.
2016-04-08 15:51:16 +02:00
Julian Oes 2bce8f2803 muorb: abs time on aDSP in sync with Linux side
This adds a call on startup of the muorb on the aDSP side to use an
offset for hrt_absolute_call(). This means that the hrt_absolute_call()
on the appsproc (Linux) side should now match the one on the aDSP
(QURT) side.
The accuracy still needs to be determined.
2016-04-08 15:51:16 +02:00
Julian Oes 9c8f67dfb8 platforms: fix build for QURT 2016-04-06 11:18:24 +02:00
Nicolas de Palezieux 00352565ee added I2C driver for TeraRanger One 2016-04-06 10:35:38 +02:00
Lorenz Meier 9c9ca9211f HRT fix for negative time instrumentation 2016-04-05 19:09:30 -07:00
Lorenz Meier 5828c7fa4f system_time: Use more strict time 2016-04-05 19:09:30 -07:00
Lorenz Meier b2029f7a35 POSIX: Fix code style of main app 2016-04-05 19:09:30 -07:00
Lorenz Meier 437041f302 POSIX API extensions 2016-04-05 19:09:30 -07:00
Lorenz Meier 0baa625681 Adjustements and improvements in the simulation interface 2016-04-05 19:09:30 -07:00
Julian Oes ee7b9751ce px4_layer: removed leftover printf lie 2016-03-27 12:40:10 +02:00
Julian Oes cf98894a23 df_mpu9250_wrapper: disable coning correction
The coning correction for the accel int slipped in by accident.
2016-03-27 12:40:10 +02:00
Julian Oes b04cfd3eee df_mpu9250_wrapper: publish at 250 Hz 2016-03-27 12:40:10 +02:00
Julian Oes 393bcad4b6 df_mpu9250_wrapper: add delta angles for MPU9250 2016-03-27 12:40:10 +02:00
Julian Oes a6af53bcb4 df_mpu9250_wrapper: reset calibration if no params 2016-03-24 13:08:31 +01:00
Julian Oes 1b5210ca13 sensors/calibration: use params in DF wrappers
Instead of using a uORB topic with the calibration values published in
sensors and consumed by the DriverFramework driver wrappers, let's just
use the the params directly. This is quite a rough change and needs
definitely some cleanup and refactoring.
2016-03-24 13:08:31 +01:00