Commit Graph

28679 Commits

Author SHA1 Message Date
Lorenz Meier 851b5d02a9 Fix potential string overflow corner case 2016-04-22 09:36:07 +02:00
Lorenz Meier b046f93173 Better MAVLink app error reporting 2016-04-22 09:34:02 +02:00
Lorenz Meier 4077616264 Significantly reduce stack size needed for calibration in commander 2016-04-22 09:03:57 +02:00
Mark Whitehorn 37bd291446 fix regression which broke rattitude mode 2016-04-22 08:40:40 +02:00
Lorenz Meier c2f88c78b4 Fix battery current integration issue 2016-04-21 21:32:18 +02:00
Julian Oes 8e5091703c commander: no message due to LED/buzzer not found
The LED init and Buzzer init messages were only annoying and not helpful
on Snapdragon and SITL. Therefore they are replaced with only developer
printfs.
2016-04-21 21:22:52 +02:00
Nicolas de Palezieux 8c246b3219 mavlink_receiver: only publish the distance measurement of the mavlink flow message on uORB if they are valid
On the snapdragon, optical flow is computed in a separate process and sent to the mainapp via mavlink. Distance measurements come from a range sensor and are already published on uORB.
Here we make sure that meaningless distance values in the mavlink optical flow message do not interfere with the ones from other sources.
2016-04-21 18:18:08 +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 835ee4d709 Commander: Better status feedback about power status 2016-04-21 10:36:14 +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
Lorenz Meier 5569d5444b Fix incorrect use of constant 2016-04-21 10:02:52 +02:00
sander 3307c71e6d Additional yaw handling on land 2016-04-21 09:32:33 +02:00
sander e2812e34f8 Restore yaw orientation on RTL descend 2016-04-21 09:32:33 +02:00
sander f5d3871b9c Fix RTL vtol back transition 2016-04-21 09:32:33 +02:00
Andreas Antener e42206fc61 use waypoint type for RTL descent phase 2016-04-21 09:32:33 +02:00
Andreas Antener f224375641 VTOL: transition to MC before descent in RTL 2016-04-21 09:32:33 +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
Paul Riseborough df3dce33c7 ecl: update library reference
Improved reporting and logging of ekf2 status
2016-04-20 21:47:29 +02:00
Paul Riseborough 771d753419 sdlog2: log ekf2 GPS and control status flags 2016-04-20 21:47:29 +02:00
Paul Riseborough 631040b30b ekf2: publish filter control mode status 2016-04-20 21:47:29 +02:00
Paul Riseborough 07eb4feed8 ekf2: publish GPS check status 2016-04-20 21:47:29 +02:00
Mark Whitehorn f097e118df assign timestamp 2016-04-19 21:19:44 +02:00
Julian Oes 91133021d6 posix/qurt cmake: fix eagle upload 2016-04-19 15:10:43 +01:00
tumbili d227c61246 update all fields of the control state message 2016-04-19 13:25:41 +02:00
Sebastian Verling 184a2fa7de publishing velocity and position to control state in ekf2
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
2016-04-19 13:25:41 +02:00
Roman b1b8ab62a3 updated ecl ekf 2016-04-19 13:25:41 +02:00
Roman c6668cae6c provide ekf2 with eas2tas factor 2016-04-19 11:20:57 +02:00
Roman f5730dc7b5 updated ecl ekf 2016-04-19 11:19:36 +02:00
Beat Küng 80e05dd3a3 orb: fix memory leaks, forgotten unlock & wrong exit condition in advertisement
How can someone just add a FIXME for such a simple case?!
2016-04-19 11:12:36 +02:00
Beat Küng fdc10d212b orb: fix when orb_subscribe_multi is called before orb_advertise_multi
This fixes the previously introduced unit test. It fixes the case where
orb_subscribe_multi is called multiple times with different instances,
and no publisher advertised the topic yet. In this case all subscribers
got the same instance 0.
2016-04-19 11:12:36 +02:00
Beat Küng 8fa18f412a uorb: add unit test that currently fails (simulation of a queue with a single topic)
This fails both on NuttX & Linux
2016-04-19 11:12:36 +02:00
Beat Küng 9041b7e16d fix formatting style for uORB 2016-04-19 11:12:35 +02:00
Beat Küng 934207b518 uORB: merge the files uORBManager_{nuttx,posix}.cpp, largely the same code 2016-04-19 11:12:35 +02:00
Beat Küng c598429547 uORB doc: remove redundant doc & update existing one (describe the _multi methods) 2016-04-19 11:12:35 +02:00
Beat Küng e9019582cc uORB::DeviceMaster::ioctl: avoid operator[], since we already have the iterator
In the existing implementation, the map had to be searched twice.
2016-04-19 11:12:35 +02:00
Beat Küng 9c360e9f88 uORB: fix node_open: *instance is read even though it's an output parameter
This fixes a subtle bug: the instance parameter of orb_advertise is an output
parameter and thus its value can be random. However in node_open this value
is accessed and thus the open(...) call could succeed even though it should
not. This can happen for example if a second advertiser of a topic calls
orb_advertise_multi with *instance=0.

The existing implementation worked only because *instance was initialized
with -1 in most cases.
2016-04-19 11:12:35 +02:00
tumbili 852e33697d fixed ekf2_replay:
we are now using the vehicle_landing_detected topic
instead of getting the landed flag from the vehicle status topic
2016-04-19 10:58:14 +02:00
Benoit Landry 10b9fde169 parameters for esc duty cycles 2016-04-18 23:43:05 +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
Emmanuel Roussel b3841e5ea5 ran astyle 2016-04-18 22:27:11 +02:00
Emmanuel Roussel ec427f61c4 fix a small mistake: parameter LNDMC_FFALL_TRIG was not shown in QGC. 2016-04-18 22:27:11 +02:00
Emmanuel Roussel f350bab67b use accelerations provided by the control_state message instead of
sensor_combined
2016-04-18 22:27:11 +02:00
Emmanuel Roussel e6b3cf3ac9 Fix code style
(Ran AStyle)
2016-04-18 22:27:11 +02:00
Emmanuel Roussel 59c9f6b4fb Removed debug parts
Disable free-fall detection when threshold is 0
2016-04-18 22:27:11 +02:00
Emmanuel Roussel 776c7f5d60 Updated commander to take free-fall into account
Added free-fall status in vehicle_status topic
2016-04-18 22:27:11 +02:00
Emmanuel Roussel 98d51179ad Added time to trigger free-fall as a parameter 2016-04-18 22:27:11 +02:00
Emmanuel Roussel 78a99797fb Implemented first try on multicopter free-fall detection 2016-04-18 22:27:11 +02:00