Commit Graph
146 Commits
Author SHA1 Message Date
Lorenz Meier 0b7f6902a9 POSIX Sim drivers: Fix formatting 2015-10-19 13:35:32 +02:00
Lorenz Meier 480bc2f3c6 POSIX Tests: Fix formatting 2015-10-19 13:35:17 +02:00
Lorenz Meier eb6553d923 Fix POSIX backtrace compile 2015-10-19 09:48:27 +02:00
Mark Charlebois 8e82ced5a4 Added backtrace function
Added PX4_BACKTRACE() to display stack trace for debugging

Added backtrace for HRT reschedule with 0 timeout

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-19 09:41:49 +02:00
Lorenz Meier 08e37f79dc Introduce jMAVSim as submodule 2015-10-17 17:33:27 +02:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Mark Charlebois 300932bde3 QuRT: fixes to unbreak cmake build for QuRT
Updated DSPAL version.
Fixed missing lib in config.
Fixed heafers for missing timespec definition.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:00 -07:00
James Goppert 2a60ffd554 Added stdc_format_macros for all inttypes.h includes. 2015-09-24 17:44:27 -04:00
James Goppert 2908a377cf Found stc macro def issue for sitl build on travis. 2015-09-24 16:43:57 -04:00
James Goppert b6d8fe3f01 Another fix for travis sitl build. 2015-09-24 16:27:09 -04:00
James Goppert e38eba0934 cmake: Fix for posix sitl. 2015-09-20 11:17:31 -04:00
Lorenz Meier b2a8dd18c0 Gyrosim: More verbose output 2015-09-20 16:43:44 +02:00
Lorenz Meier d32f9f043b HRT: Better debugging 2015-09-20 16:43:34 +02:00
Lorenz Meier fe644fb3e0 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 12:56:14 +02:00
Lorenz Meier 59f71452d7 Sensor sim: Initialize sensor data to zero 2015-09-20 12:55:48 +02:00
Lorenz Meier 8509c5f220 Fix clock generation on Mac OS X 2015-09-20 12:53:33 +02:00
Lorenz Meier 08c56085b3 Merged cmake-2 2015-09-20 11:37:28 +02:00
Lorenz Meier ddd1b82240 Simulated sensors: Publish valid data initially 2015-09-20 11:36:11 +02:00
Lorenz Meier e2332281ad Work queue: Add required POSIX header 2015-09-20 10:58:45 +02:00
Lorenz Meier c1c235edb2 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 10:34:03 +02:00
Lorenz Meier 6ef94e0dfb Merged master into cmake-2 2015-09-20 10:33:39 +02:00
Lorenz Meier d73deabf5c Work queues: Move to POSIX semaphore abstraction 2015-09-20 00:27:28 +02:00
Lorenz Meier 604644d823 POSIX: Improvements on semaphore abstraction 2015-09-20 00:26:56 +02:00
Lorenz Meier 50061a95a4 POSIX: Add sem_getvalue() abstraction 2015-09-19 18:24:14 +02:00
Lorenz Meier ef48715051 POSIX: Add pthread mutex based semaphores 2015-09-19 18:22:00 +02:00
Mark Charlebois 3a2e064c92 Fixed error due to set but unused variable
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 15:58:15 -07:00
Mark Charlebois 7d2ba97511 Fixed poll timeout bug
The SIGCONT signal was being ignored by the HRT queue thread so the
usleep was not waking up early to process new work.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 15:24:58 -07:00
Lorenz Meier 61fec78eb0 Merge branch 'master' of github.com:PX4/Firmware into cmake-2 2015-09-16 23:56:45 +02:00
Mark Charlebois 6feaccca78 posix: unit test for poll and vdev
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 14:00:51 -07:00
Lorenz Meier 4dce80423c POSIX: Do not exit script on error 2015-09-16 18:51:31 +02:00
Lorenz Meier c89f51b8ef POSIX: Fix HRT semaphores for Mac OS 2015-09-16 18:13:10 +02:00
Mark Charlebois c602d55df9 Start of poll testcase
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 08:14:44 -07: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 ceb7204590 POSIX sim: Remove unused error variables 2015-09-12 10:52:44 +02:00
Lorenz Meier 0f98a7c141 OS X: Add missing time calls 2015-09-11 21:48:06 +02:00
Mark Charlebois 7e1c984234 Hack to get posix build partially working
Created a dummy build_git_version.h so I did not have to figure out
how to generate it.

Commented out topic_listener.cpp from src/systemcmds/CMakeLists.txt
because it depends on a generated cpp file.

Link doesn't work mut many modules build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 15:39:13 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04: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
tumbili 9f90b87745 implemented driver for simulated airspeed 2015-09-04 22:34:28 +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
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Mark Charlebois faae76e3c7 Removed __PX4_QURT ifdefs from application layer
Replaced test for __PX4_QURT with test for NAV_DEBUG.

Optimized implementation to remove code when flag is not set.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-06 12:51:20 -07:00
Mark Charlebois 009f528266 Fixes for posix-arm and qurt builds
Ifdefed out deadcode in position_estimator_inav_main.c as the
deadcode does not compile for qurt.

Added fixes to get a successful build for posix-arm and qurt targets.
Removed CLOCK_REALTIME def from px4_time.h for qurt and removed unused
variables in att_est_q and mc_att_control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-05 18:34:46 -07:00