10924 Commits

Author SHA1 Message Date
Lorenz Meier
2fff2d4eac Robustify single mode selection. Fixes #4364 2016-04-26 09:11:35 +02:00
Mark Whitehorn
1a5040b9d2 only call fsync in NUTTX builds 2016-04-25 21:51:09 +02:00
Mark Whitehorn
6f20b9e1df fix unused variable error 2016-04-25 21:51:09 +02:00
Mark Whitehorn
4cf427510e fix problem with log_file_path and add msg timestamps 2016-04-25 21:51:09 +02:00
Andrew Tridgell
6552f925f8 px4fmu: allow control of safety state on FMUv4
allows for MAVLink control of safety state
2016-04-25 17:25:47 +02:00
Nicolas de Palezieux
9199c5ec17 changed parameters to int32_t to prevent stack smashing 2016-04-25 16:16:04 +02:00
Nicolas de Palezieux
b1c6a2c7ab ensure PWM_DISARMED value is sent to ESCs if snapdragon does not send anything else 2016-04-25 16:11:49 +02:00
Julian Oes
f454d74a51 mavlink: fix Snapdragon build 2016-04-25 15:35:22 +02:00
Julian Oes
2e476ce6bf gps/devices: updated submodule
This includes the mtk bugfix for Snapdragon.
2016-04-25 06:21:36 -07: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
c975d01200 gps: fix Snapdragon build 2016-04-25 06:21:36 -07:00
Lorenz Meier
14a20e3112 MAVLink streams: Better log file handling 2016-04-25 14:46:15 +02:00
Beat Küng
b855d76f28 fix gps: subscribe to topics in the gps thread instead of the shell thread
NuttX does not inherit file descriptors when creating new tasks.
2016-04-25 13:35:41 +02:00
Beat Küng
58a7db51c3 gps: add RTCM message rate to the 'gps status' command 2016-04-25 13:35:41 +02:00
Beat Küng
acc40c8217 orb unittest: increase waiting time so that test does not fail on slow devices
This test failed on the pixracer because the subscriber thread was too slow
and thus orb messages got lost. This behavior is expected, but the test
should not fail because of that, so we increase the sleeping time.
2016-04-25 13:35:41 +02: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
1cf7de8fdb perf_counter: perf_print_counter now works on QURT 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
4ac67f69d1 DriverFramework: updated submodule
This brings the latest renamed counters.
2016-04-25 12:48:48 +02:00
Julian Oes
944acfaf75 simulator: change after perf_counter API change 2016-04-25 12:48:48 +02:00
Julian Oes
fa6fe4ca96 px4io: small change after perf_counter API change 2016-04-25 12:48:48 +02:00
Julian Oes
662c097803 perf_counter: add function to set a count
This needed the set function which sets elapsed to change the name to
avoid ambiguities.
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
Julian Oes
d824ca3a14 integrator: fix style 2016-04-25 12:48:48 +02:00
Julian Oes
544f0b70a9 DriverFramework: updated submodule
This brings error counters and timestamp offsets between FIFO samples.
2016-04-25 12:48:48 +02:00
Julian Oes
302bf879de integrator: improvements and cleanup
The integrator had an untested read mode which did not apply the coning
correction. Instead of keeping two integrals (auto/read) it is now one
and the reset mechanism can be selected by setting the
auto_reset_interval to 0 to disable it or some positive number else.

Also, the integrator could potentially explode if a (single) timestamp
was wrong, so before the last integrated one. This is now caught with a
dt of 0 instead of inf/nan.
2016-04-25 12:48:48 +02:00
Julian Oes
f91be1e281 DriverFramework: updated submodule
This raises the sampling frequency from 500 Hz to 8kHz using the FIFO
buffer.
2016-04-25 12:48:48 +02:00
Beat Küng
afefa4d2a0 gps: use a max poll timeout of 50ms to check for orb msgs more often
Before this, I measured a max time spent in poll of 197ms. By checking at
least every 50ms we make sure to not lose any orb messages.
2016-04-25 09:48:24 +02:00
Beat Küng
f62324c8a6 mavlink_receiver.cpp: use sizeof(gps_inject_data_topic.data) instead of hardcoded size 2016-04-25 09:48:24 +02:00
Beat Küng
6029551c63 gps & mavlink receiver: use C arrays instead of std::array<> 2016-04-25 09:48:24 +02:00
Beat Küng
4cf08ba580 gps handleInjectDataTopic: repeatedly check for new orb messages
Without that there were still lost messages, now it's all fine (tested
under Linux)
2016-04-25 09:48:24 +02:00
Beat Küng
c8f2a7ea02 update gps submodule (fix coding style) 2016-04-25 09:48:24 +02:00
Beat Küng
1085f33f88 gps: remove the old driver files 2016-04-25 09:48:24 +02:00
Beat Küng
7ef718912a drv_gps.h: cleanup the file, remove unneeded stuff 2016-04-25 09:48:24 +02:00
Beat Küng
1013ae7d49 gps: major restructuring & extension of ubx driver: use a submodule for gps drivers
The gps drivers are now in a platform-independent submodule because they
are used in QGroundControl as well
2016-04-25 09:48:24 +02:00
Beat Küng
b427f5c90d mavlink_receiver.cpp: fix coding style 2016-04-25 09:48:24 +02:00
Beat Küng
5b684a77f4 mavlink_receiver.cpp: remove __BEGIN_DECLS, __END_DECLS
This is the wrong usage of the macros and not needed at this place
2016-04-25 09:48:24 +02:00
Beat Küng
5cf351f585 orb: add gps_inject_data message & publish from mavlink 2016-04-25 09:48:24 +02:00
Lorenz Meier
faa85a2eba Battery: Add proper units 2016-04-25 09:36:28 +02:00
Lorenz Meier
388d29baec MC pos control: Show normalized units properly 2016-04-25 09:35:58 +02:00
Lorenz Meier
9b71379ea6 FW pos control: Show normalized units properly 2016-04-25 09:35:41 +02:00
Lorenz Meier
aa6168963a Land detectorr: Fix units, complete meta data for decent user representation 2016-04-25 09:35:23 +02:00
Lorenz Meier
3598d1e291 Fix typo in param meta 2016-04-25 08:44:51 +02:00
Lorenz Meier
c7df99030a Commander: Limit data link loss params to save ranges 2016-04-25 08:44:51 +02:00
Lorenz Meier
dc635b460c Update FIirmware param meta 2016-04-25 08:44:51 +02:00