Commit Graph

25 Commits

Author SHA1 Message Date
Mark Charlebois 9074d3dd8e Adding in DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 13:21:13 +01:00
tumbili b081c5c33b added signal handler for floating point exceptions 2015-10-23 14:00:24 +02:00
Lorenz Meier d60f201dc8 POSIX: Fix formatting 2015-10-19 13:35:46 +02:00
Lorenz Meier 4dce80423c POSIX: Do not exit script on error 2015-09-16 18:51:31 +02:00
Lorenz Meier e697cabb6a POSIX: Exit on failure if not running as daemon. This is to ensure errors do not go unnoticed during bench testing 2015-09-12 17:12:16 +02:00
Lorenz Meier 12372d7de6 POSIX: Abort script on executable failure 2015-09-12 16:58:14 +02:00
Lorenz Meier 63f9a1e609 POSIX: 1) Really exit on CTRL-C, 2) Clean up boot log, 3) add eye-candy! 2015-09-12 15:45:19 +02:00
Lorenz Meier 779efc1cbc POSIX: Fix shell printing 2015-09-12 12:11:17 +02:00
Lorenz Meier 8d0ecda8c6 Add additional delay to system startup to overcome sensor init noise. Needs a proper solution 2015-09-06 15:53:13 +02:00
Lorenz Meier 54209af679 POSIX: Improve shell so it does not spam the user, enable CTRL-C to actually quit the application. Twiddle the app boot delay to avoid a race with the commander app. Needs a proper fix on the startup sequencing. 2015-09-06 15:37:35 +02:00
Mark Charlebois 2579b29691 POSIX: Fix for daemon mode to process commands after init
Commands were being processed before init was called.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-30 00:18:41 -07:00
Mark Charlebois d94aa84657 Add daemon mode to posix build
In order to use upstart to run PX4 it needs to run in daemon mode.
Added ability to test if a task is running in order to gracefully
shut down muorb.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-28 16:06:36 -07:00
Lorenz Meier e30c822068 POSIX: Throw an error if the startup script is not present 2015-08-28 10:47:25 +02:00
Lorenz Meier 16cb971d63 POSIX: Increase app start spacing 2015-07-09 00:48:53 +02:00
Lorenz Meier fc3a85311d POSIX: Run main apps delayed 2015-07-09 00:01:34 +02:00
Lorenz Meier 46a6082a26 POSIX: remove shell delay 2015-07-04 08:09:31 -07:00
Lorenz Meier 0499ddb1dd POSIX: Add debug output to show where the app returns 2015-07-04 07:25:08 -07:00
Lorenz Meier cddfcb35d8 Posix main: Only delay app startup 50 ms 2015-06-27 11:55:21 -07:00
Lorenz Meier ab550bcbbf POSIX: Force shell to not immediately return 2015-06-24 09:32:27 +02:00
tumbili 4aa4038e27 increase number of arguments passable to apps 2015-06-08 22:21:59 -07:00
Mark Charlebois 5299f76706 POSIX: initialize before running script
The initialization functions were called after the script
commands were run causing a deadlock waiting for an
uninitialized semaphore.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 09:51:31 -07:00
Mark Charlebois e24405d374 POSIX: fixed hrt call and workqueue implementation
The HRT call processing normally happens via HW timer interrupt
handler. Since the POSIX port has no ISR handling, the HP work
queue is used.

Instead of irq_save() and irq_restore() calls to disable/enable
interrupts, a mutex is used to protect each queue.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 00:27:14 -07:00
Mark Charlebois a284a7b6d9 POSIX: added separators between commands run from shell
Output a separator and the command called to make the ouput easier
to read.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-27 14:03:23 -07:00
Mark Charlebois 9ec7020e02 Make a local function static
platforms/posix/main.cpp had a local function that wasn't static.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-22 08:31:41 -07:00
Mark Charlebois f3b5076d70 Linux to posix conversion
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.

There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 09:53:09 -07:00