Commit Graph

2463 Commits

Author SHA1 Message Date
Lorenz Meier ebaca071f6 Battery charge estimation: Factor in voltage drop for idle props 2016-05-06 18:14:34 +02:00
Lorenz Meier dd774a60e3 IO driver: Reduce perf counters 2016-05-05 20:08:11 +02:00
Lorenz Meier e250d12184 Board drivers: Shorten perf names 2016-05-05 20:06:42 +02:00
Julian Oes bdaa1b58f6 uart_esc: fix eagle build 2016-05-05 14:28:20 +02:00
Daniel Agar 7aa6e85563 enable Wshadow 2016-05-05 13:32:42 +02:00
Julian Oes f528c63030 integrator: add a put method for known intervals
This adds a second put method to the integrator class. This allows to
integrate with known intervals between samples, rather than based on
timestamps. This makes integrating the samples coming out of the MPU9250
FIFO buffer easier.
2016-05-04 22:28:19 +02:00
Lorenz Meier 6b756ca95a FMU driver: Do not fake RSSI values, but report that we have no proper RSSI available 2016-05-01 16:55:42 +02:00
Lorenz Meier 887dfd1ec4 Fix RSSI lower bound 2016-05-01 16:42:30 +02:00
Lorenz Meier 4ec4deabbd FMU driver: Make auto-detection of analog RSSI more stable 2016-05-01 16:36:15 +02:00
Lorenz Meier 34081c1d3c FMU: Fix rc lost flag handing 2016-05-01 16:24:33 +02:00
Lorenz Meier bdd2070dd7 FMU driver: Report RSSI for RC
Move RSSI sampling into FMU driver from sensors
2016-05-01 15:48:50 +02:00
Lorenz Meier 3335d32c0a ADC driver: Publish via uORB 2016-05-01 15:48:50 +02:00
Lorenz Meier b5b4769d1f Enable RSSI sampling on Pixracer 2016-05-01 14:23:25 +02:00
Andrew Tridgell 82aca3d65c FMUv4: enable RSSI analog input pin 2016-05-01 14:22:58 +02:00
thedevleon 9ff6751eb5 hotfix for frsky dport telemetry (#4409) 2016-05-01 00:41:17 +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 9a0cff2a00 vdev: add a SmartLock class that automatically unlocks when going out of scope 2016-04-29 11:15:15 +02:00
Beat Küng aacfd8d553 orb: add some comments about locking 2016-04-29 11:15:15 +02:00
Lorenz Meier 5bcdfed203 Improve trigger meta 2016-04-27 19:57:26 +02:00
David Sidrane 161f92250f Update CMakeLists.txt (#4377)
Removes warning as Cmake now using STACK_MAIN
2016-04-27 08:29:06 +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 2e476ce6bf gps/devices: updated submodule
This includes the mtk bugfix for Snapdragon.
2016-04-25 06:21:36 -07:00
Julian Oes c975d01200 gps: fix Snapdragon build 2016-04-25 06:21:36 -07: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
Julian Oes fa6fe4ca96 px4io: small change after perf_counter API change 2016-04-25 12:48:48 +02:00
Julian Oes d824ca3a14 integrator: fix style 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
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 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
Leon b781006e20 Increase sending of navstate and gpsfix to 2 Hz 2016-04-25 07:55:53 +02:00
Leon 5d114d3984 Small improvements and corrections
Added more SPort GPS Sensors

Fix code style

Adding DIY IDs

Moved navstate and gpsfix away from Temp1 and Temp2 to their own IDs

More consistent names

Fix codestyle

Rebase work off master frsky_telemetry driver

Fixed code-style error

forgot something
2016-04-25 07:55:49 +02:00
Robert Dickenson 2dac97fe68 Add required rotation option to driver startup command and fix a couple of details in warnings/comments 2016-04-22 10:30:19 +02:00
Robert Dickenson 91241626a9 change type mag_scale to type struct mag_calibration_s for compatibility with master (only noted this thanks to travis build test) 2016-04-22 10:30:19 +02:00
Robert Dickenson cb3c625ea4 Apply AStyle to fixup formating 2016-04-22 10:30:19 +02:00
Robert Dickenson 630146686e Comment out line which checks for attempt to set sampling rate beyond that supported by device. 2016-04-22 10:30:19 +02:00
Robert Dickenson 45a601b9c1 New driver for the LIS3MDL magnetometer. 2016-04-22 10:30:19 +02:00
Julian Oes 88626cf5f1 px4io: remove leftover printf 2016-04-21 13:34:46 +02:00
Julian Oes 482ce55d57 px4io: allow 0 as a PWM signal 2016-04-21 13:32:38 +02:00
Julian Oes d5cc9e0873 snapdragon_rc_pwm: allow the driver to be stopped 2016-04-21 13:00:08 +02:00
Lorenz Meier ef69f74977 Do not use low level debug output on USB resume 2016-04-21 10:35:57 +02:00
Lorenz Meier c8c7c84110 Simplify ADC driver 2016-04-21 10:35:44 +02:00
Nicolae Rosia fff535857d drivers/gps: fix segfault when parsing arguments
running gps command without parameters results in segfault
due to illegal access to unallocated memory

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2016-04-20 21:50:10 +02:00