Commit Graph

11494 Commits

Author SHA1 Message Date
Beat Küng 78d357cb0c logger: free up ~200B stack size
we now use the already existing buffer for logging messages, which is
allocated on the heap.
In fact, stack usage was too high before this, now it's ok again.
2016-06-06 23:27:16 +02:00
Beat Küng febe75bb12 logger: don't use uint8_t buffer[msg_size]; (it's C99 not C++)
Also, it's not clear where the allocation was. It looks like it was on
the heap, but the compiler could decide to put it on the stack. This is
very bad for us because we use fixed size stacks with tights bounds. So if
a user specifies a large topic to log, it could have crashed.

Now the allocation is on the heap and the user can specify any size of
topic to log (as long as there is enough memory).
2016-06-06 23:27:16 +02:00
Beat Küng 8ef493c82d logger: use local time if orb_copy(vehicle_gps_position) fails for -t option
orb_copy can fail if there is no advertiser yet
2016-06-06 23:27:16 +02:00
Beat Küng b51ec04938 logger: fix alignment issue in data message header 2016-06-06 23:27:16 +02:00
James Goppert 5ec7de3a5a Make LPE est always log. (#4749)
This is a trivial change so I'm going to merge to help address edge cases in users logs.
2016-06-06 14:12:18 -05:00
Lorenz Meier 66db577c7d Tone down mavlink message 2016-06-05 14:37:47 +02:00
Lorenz Meier ff4f27b05e MAVLink app: Add option to configure broadcast, default to off 2016-06-05 12:39:33 +02:00
CAI Dongcai f8ff667dde pwm steps bugs fixed (#4719)
fix the divide 0 bug in using "pwm steps" in NSH, and add it's
description
2016-06-05 12:08:31 +02:00
BharathR f06e6f0ce1 Fixed actuator controls struct in Snapdragon legacy uart_esc driver wrapper (#4724) 2016-06-03 10:22:09 +02:00
Beat Küng fc2d2c6ce0 gps: update drivers submodule 2016-06-02 09:26:03 +02:00
Beat Küng b226f7d13d gps: call fsync after injecting gps data
This is to minimize delay
2016-06-02 09:26:03 +02:00
Beat Küng 25cff52019 RTCM: use MAVLINK_MSG_ID_GPS_RTCM_DATA mavlink message (supports fragmentation) 2016-06-02 09:26:03 +02:00
Beat Küng 0e3d660ccd logger refactor: add ulog_ prefix to struct names and header length 2016-06-02 07:32:49 +02:00
Beat Küng 078e79f294 mavlink_log.c: fix coding style 2016-06-02 07:32:49 +02:00
Beat Küng 034772056a logger: prepare for replay: add replayed file to the log, use _replayed as file name suffix 2016-06-02 07:32:49 +02:00
Beat Küng 069dd01cb0 logger: subscribe to mavlink_log messages and write them to the log 2016-06-02 07:32:49 +02:00
Beat Küng 659ac8faf2 refactor logger: use static fields & move them to source file
avoids multiple declarations of...
2016-06-02 07:32:49 +02:00
Beat Küng 43d734ef43 orb: consistently use unsigned int for queue_size 2016-06-02 07:24:44 +02:00
Beat Küng 392c32d316 uORBTest_UnitTest.cpp: fix style 2016-06-02 07:24:44 +02:00
Beat Küng 79b3766544 orb: add unit tests for queuing, including tests with poll & notify interface
Both succeed under Posix & NuttX (Pixracer)
2016-06-02 07:24:44 +02:00
Beat Küng 5b1273e334 orb: add optional queuing of messages
This adds two uORB API calls:
- orb_advertise_queue
- orb_advertise_multi_queue

Both add a queue_size parameter to define a maximum number of buffered
item. The existing orb calls use all a queue size of one and thus their
behavior is unchanged. If a writer publishes too fast, the oldest elements
from the queue are silently dropped.
The returned timestamp is always the one from the latest message in the
queue.

Queue size can be set via ioctl during advertisement phase. After that it
cannot be changed anymore.
2016-06-02 07:24:44 +02:00
Kabir Mohammed 69976caca9 param : fix shell handler instructions (#4716) 2016-06-02 06:37:19 +02:00
Mark Charlebois 30a3311fe6 Fixed qurt_eagle_travis build
Added missing stub function and added SDK 2 and 3 support.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-06-01 23:50:28 +02:00
Mark Charlebois 02e3f28d87 Added back support for SDK 2.0 as well as 3.0
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-06-01 23:50:28 +02:00
Mark Charlebois 6ac0eabb5a Changes required to support Hexagon SDK 3.0
The inc and lib directories were renamed to incs and libs.

This requires an updated cmake_hexagon and come changes to qurt paths in
PX4.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-06-01 23:50:28 +02:00
David Sidrane a7946aa771 Fixed Spelling (#4713) 2016-06-01 06:35:42 -10:00
Julian Oes 64109daff8 land_detector: fix timestamp type (#4710)
The overflow of the uint32_t lead to the land_detector start getting
aborted.
2016-06-01 17:15:27 +02:00
Lorenz Meier f79adacc9b FMUv4: Save 3KB of RAM 2016-06-01 17:12:52 +02:00
Lorenz Meier ae5527fac7 FMUv2: Save 3KB of RAM 2016-06-01 17:12:34 +02:00
Lorenz Meier eb7970bee2 MindPX: Save 3KB of RAM 2016-06-01 17:12:19 +02:00
Lorenz Meier 8f4ca16bae FMUv1: Fix board config 2016-06-01 17:12:02 +02:00
Julian Oes 144b0a179a df_hmc5883_wrapper: fix wrong variable name 2016-06-01 08:39:10 +02:00
Julian Oes 3e176fa91f df_mpu9250_wrapper: usage is info 2016-06-01 08:39:10 +02:00
Julian Oes d5a7aaa09d df_hmc5883_wrapper: rotation on driver level 2016-06-01 08:39:10 +02:00
Julian Oes 969940e98a df_mpu9250_wrapper: add rotation to internal mag 2016-06-01 08:39:10 +02:00
Kabir Mohammed a7ae7907f7 add rotation support to mpu9250 wrapper 2016-06-01 08:39:10 +02:00
David Sidrane 69d0a78c54 Update adc.cpp 2016-06-01 08:36:58 +02:00
David Sidrane 9833ef13fb Update adc.cpp 2016-06-01 08:36:58 +02:00
David Sidrane 08f0cc1b24 Print the DMA usage in top via instrumentation interface 2016-06-01 08:35:34 +02:00
David Sidrane b54ec99d22 Move the DMA allocation to a common code and provide an instrumentation interface 2016-06-01 08:35:34 +02:00
Julian Oes 99cf6758d2 DF driver wrappers: whitespace fixes 2016-05-31 16:43:13 +02:00
Julian Oes 4e54bed051 df_mpu9250_wrapper: bool comparison without ==
I prefer this way because I think it's more readable.
2016-05-31 16:43:13 +02:00
Julian Oes b0b7832048 DF driver wrappers: advertise with actual data 2016-05-31 16:43:13 +02:00
Julian Oes c170657dff DriverFramework: update submodule
This brings MPU9250 mag support with the correct scaling in place.
2016-05-31 16:43:13 +02:00
jwilson 76095ebba5 Responding to PR feedback. All items resolved.
Signed-off-by: jwilson <jwilson@qti.qualcomm.com>
2016-05-31 16:43:12 +02:00
jwilson 67ea3d6ec6 Fixing function which retrievs mag calibration values.
Signed-off-by: jwilson <jwilson@qti.qualcomm.com>
2016-05-31 16:43:12 +02:00
jwilson c6250657eb Added mag support to the DriverFramework mpu9250 driver. Shortened parameter names for legacy drivers. Added temporary ifdef's in the calibration code for Snapdragon Flight builds.
Signed-off-by: jwilson <jwilson@qti.qualcomm.com>
2016-05-31 16:43:12 +02:00
Michael Schäuble d9422e0296 Add Parrot Bebop as build target (#4698)
* Add parrot bebop build structure

* Add upload functionality to bebop build

* Add modules and commands to bebop build
2016-05-31 13:04:22 +02:00
Roman Bapst 292b35d06d updated matrix lib: (#4631)
- better documentation in header files
2016-05-30 23:31:06 +02:00
Beat Küng 8c9b272545 mavlink udp: avoid spamming the console when disconnecting the Network or bcast addr not found (#4611) 2016-05-30 21:53:37 +02:00