Beat Küng
99a682e7a7
fix px4_task_spawn_cmd: memory leak, if one of the pthread_* calls fails
2016-05-03 17:34:42 +02:00
Julian Oes
e3c9135ac2
param_shmem: fix bug where params didn't stick
...
There was the case where a param was changed on the Linux side but the
change did not get saved on the DSP side because the param was not in
the local list of changed params on the DSP side. On save, the param
index is now refreshed, and param_get is called on all params that have
changed. This is a hacky workaround but resolves the problem for now.
2016-04-26 10:21:01 +02: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
a302e79bb6
param_shmem: be less chatty, printf cleanup
2016-04-24 20:03:10 +02:00
Daniel Agar
3a209d71af
fix clang size error
2016-04-11 18:01:48 +02:00
Julian Oes
2bce8f2803
muorb: abs time on aDSP in sync with Linux side
...
This adds a call on startup of the muorb on the aDSP side to use an
offset for hrt_absolute_call(). This means that the hrt_absolute_call()
on the appsproc (Linux) side should now match the one on the aDSP
(QURT) side.
The accuracy still needs to be determined.
2016-04-08 15:51:16 +02:00
Julian Oes
9c8f67dfb8
platforms: fix build for QURT
2016-04-06 11:18:24 +02:00
Lorenz Meier
9c9ca9211f
HRT fix for negative time instrumentation
2016-04-05 19:09:30 -07:00
Lorenz Meier
5828c7fa4f
system_time: Use more strict time
2016-04-05 19:09:30 -07:00
Lorenz Meier
0baa625681
Adjustements and improvements in the simulation interface
2016-04-05 19:09:30 -07:00
Daniel Agar
ce8eb0edd8
unit tests -Werror
2016-03-14 09:15:02 +01:00
Julian Oes
022ced3648
shmem: don't do locking for now
...
The locking seems to be broken, therefore refrain from using it.
2016-03-09 11:07:34 -08:00
Julian Oes
070e71ed55
px4_layer: astyle
2016-03-09 09:53:27 -08:00
Julian Oes
8b19d249b2
px4_layer: better printfs for shmem_posix.c
2016-03-09 09:53:27 -08:00
Julian Oes
3e964ef85d
POSIX config: param shem define was lost
2016-03-09 09:53:27 -08:00
Lorenz Meier
be3863d99f
Fix formatting
2016-02-21 20:41:00 +01:00
Lorenz Meier
9f5469ab1f
Workaround for stack size setting on OS X
2016-02-21 20:28:24 +01:00
jwilson
75fad09263
Fixed problem causing a failure to obtain the shared memory lock on the AppsProc.
2016-02-19 16:59:49 +01:00
Julian Oes
8f26735255
POSIX: add px4_clock_settime stub for Mac
2016-02-19 16:59:48 +01:00
Julian Oes
68a85a7215
px4_layer: astyle
2016-02-19 16:59:48 +01:00
Julian Oes
928a31b59a
QURT: use drv_hrt.c from POSIX
2016-02-19 16:59:47 +01:00
Mark Charlebois
d29a2ecfac
Set stack size to minimum valid size if less requested
...
The stack size cannot be less than PTHREAD_STACK_MIN.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:47 +01:00
Mark Charlebois
791ec37f43
Code formatter fixes
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:46 +01:00
Mark Charlebois
caa94d58a6
Manually integrated Jim's changes from integrate2_jim branch
...
Signed-off-by: Jim Wilson <jywilson99@hotmail.com >
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:46 +01:00
Mark Charlebois
ff0618a8ff
Set the stack size for qurt
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:45 +01:00
Mark Charlebois
2c4187f21f
Resolved missing symbols for qurt build
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:45 +01:00
Mark Charlebois
dab1f835c7
Code cleanup and ifdefs required for qurt build
...
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.
Changes include code cleanup for shmem_posix.c.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:45 +01:00
Mark Charlebois
8b22bde071
Code format fixes
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:45 +01:00
Mark Charlebois
014f15d8b0
Rebase changes on upstream master
...
This brings in many of the changes from the PX4 fork on ATLFLight.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:43 +01:00
Mark Charlebois
a495e3442c
Resolved missing symbols for qurt build
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:43 +01:00
Mark Charlebois
fea910d45a
Code cleanup and ifdefs required for qurt build
...
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.
Changes include code cleanup for shmem_posix.c.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:43 +01:00
Mark Charlebois
5846a22a8f
Code format fixes
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:42 +01:00
Mark Charlebois
9f3bf8e9f4
Rebase changes on upstream master
...
This brings in many of the changes from the PX4 fork on ATLFLight.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:41 +01:00
Lorenz Meier
39ee36a8ea
Pre-empt HRT execution in SITL if simulator is slow
2016-02-05 09:24:59 +01:00
Lorenz Meier
5f93f04627
HRT: Fix code style
2016-02-05 09:16:53 +01:00
Lorenz Meier
61fac4a127
HRT: Support delay API
2016-02-05 00:53:08 +01:00
Mark Charlebois
5bc2019fd5
Fixes for qurt build
...
Added missing functions that were added for other targets but not for qurt.
Added workaround for missing sem_timedwait(). This may have a performance
impact until a sem_timedwait is supported.
std::to_string is not supported by the hexagon compiler
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-01-08 08:49:36 +01:00
Lorenz Meier
2e10351fcc
Fix HRT abstraction for Mac OS
2015-12-06 11:40:22 +01:00
tumbili
f91af2221f
fix sem error for linux
2015-12-01 16:51:38 +01:00
Lorenz Meier
a54b40c457
Do not redefine GNU source in platform for POSIX
2015-12-01 13:50:12 +01:00
Lorenz Meier
855dcf7069
Add missing header for Linux
2015-12-01 13:41:48 +01:00
Lorenz Meier
069ebebb27
PX4 layer: Code style fixes
2015-12-01 12:44:06 +01:00
Lorenz Meier
85079125f4
posix tasks: Add px4_prctl() call
2015-12-01 12:03:21 +01:00
Lorenz Meier
72287aab3f
Main app: set thread name
2015-12-01 12:02:43 +01:00
Lorenz Meier
cf17ef4d41
PX4 semaphores: Add excellent debugging output on failure for Mac OS
2015-12-01 10:28:05 +01:00
Lorenz Meier
0c2b6bf9d1
POSIX: Set the thread name for better debugging
2015-12-01 10:27:39 +01:00
Mark Charlebois
1aeca4f64d
Fixed code format and removed unused std::list
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-23 23:09:10 -08:00
Lorenz Meier
a7cb170cc4
PX4 semaphores: Formatting fix
2015-11-23 22:05:17 +01:00
Lorenz Meier
e2894c4a46
Added timed wait semaphore
2015-11-23 19:50:44 +01:00