Commit Graph
112 Commits
Author SHA1 Message Date
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
Lorenz Meier 2730d8ab20 Fix HRT init compile error 2015-11-22 15:50:14 +01:00
Lorenz Meier 17882cee78 Fix Travis build error 2015-11-22 15:17:07 +01:00
Lorenz Meier 65cca56c29 Code style fix 2015-11-22 14:07:27 +01:00
Lorenz Meier 9c13e4c4be Fix race in task create 2015-11-22 14:01:52 +01:00
Lorenz Meier 734ec9094e Posix tasks: Initialization and locking 2015-11-22 14:01:52 +01:00
Lorenz Meier e3b13e1324 HRT: initialize queue 2015-11-22 14:01:52 +01:00
Lorenz Meier cda3c28661 HRT driver: Initialize work struct 2015-11-22 14:01:52 +01:00
jgoppert ca5a2d1fca Fixed some sitl init bugs. 2015-11-07 11:49:06 -05:00
Lorenz Meier 63bc4e0202 Fix HRT format 2015-11-07 10:14:46 +01:00