Commit Graph

2449 Commits

Author SHA1 Message Date
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
Benoit Landry 10b9fde169 parameters for esc duty cycles 2016-04-18 23:43:05 +02:00
Andrew Tridgell 3bad8131cf px4io: don't call io_set_rc_config when rc config disabled 2016-04-18 18:44:05 +02:00
Andrew Tridgell cc0fbdd549 px4fmu: added SET_MODE ioctl
this gives control over timer capture driver
2016-04-18 11:45:44 +02:00
Andrew Tridgell e60f2c3f41 drv_pwm: added new PWM_SERVO_SET_MODE ioctl 2016-04-18 11:45:44 +02:00
Andrew Tridgell c66fab01e5 drv_pwm: expand range of PWM ioctl indexes
we had run out of them. _IOC_MASK is 0xFF, so we can add an extra 16
without an issue
2016-04-18 11:45:13 +02:00
Andrew Tridgell fde635ef5a px4iofirmware: fixed display of sbus rate in px4io status 2016-04-18 11:43:24 +02:00
Andrew Tridgell c5f5b9f53c drv_pwm_output: added IOCTL for SBUS rate 2016-04-18 11:43:24 +02:00
Andrew Tridgell 30ce7fdd48 px4io: display SBUS rate in px4io status 2016-04-18 11:43:24 +02:00
Andrew Tridgell 6290e621d4 px4io: added control for setting SBUS rate 2016-04-18 11:43:24 +02:00
Andrew Tridgell 05790ff540 px4fmu: prevent checking of safety switch parameter in main loop 2016-04-18 11:41:01 +02:00
Andrew Tridgell 3fda934d1b px4io: on config error ask IO to reboot to bootloader
this allows us to update fw when core config settings have changed,
such as the actuators/servos change that happened recently
2016-04-18 11:40:07 +02:00
Andrew Tridgell 85e8cd89b6 px4io: set reasonable default voltage scaling
needed for when px4 param system not available in ardupilot
2016-04-18 11:39:37 +02:00
Andrew Tridgell 5928569321 px4fmu: fixed signed/unsigned comparison 2016-04-18 11:39:06 +02:00
Andrew Tridgell 05c282e761 stm32: fixed build errors with more warnings enabled
needed for ArduPilot build
2016-04-18 11:36:28 +02:00