Commit Graph

12946 Commits

Author SHA1 Message Date
Mark Charlebois 834e3c0587 SITL: updated README and rc.S
Changed rc.S to rcS.

Updated README.md to explain the require directory structure and
where to run mainapp from for SITL to work correctly.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 15:48:12 -07:00
Lorenz Meier 2e5d2c1cbe Merge pull request #2385 from mcharleb/SITL-readme-fix
SITL: fixed path to mainapp in documentation
2015-06-16 00:11:25 +02:00
Mark Charlebois 8ddfcb7f4b SITL: fixed path to mainapp in documentation
The updated path os Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 13:50:50 -07:00
Lorenz Meier de8464e3ed Merge pull request #2383 from tumbili/gps_sim
add simulated gps driver to startup for SITL
2015-06-15 22:07:05 +02:00
tumbili e6cee32952 add simulated gps driver to startup for SITL 2015-06-15 21:59:58 +02:00
Lorenz Meier dc839b67e8 Fix POSIX README.md path 2015-06-15 21:36:42 +02:00
Lorenz Meier 48bf40d5d1 POSIX: Add initial SITL instructions 2015-06-15 21:35:10 +02:00
Lorenz Meier 829d830d43 Merge pull request #2378 from mcharleb/sitl-rename
SITL: changed posix_default to posix_sitl
2015-06-15 20:18:51 +02:00
Lorenz Meier 5eee806adf Merge pull request #2380 from PX4/dma_hotfix
This is a temporary hot fix for lost data
2015-06-15 20:16:56 +02:00
David Sidrane e7a3674c1d This is a temporary hot fix for lost data 2015-06-15 07:03:14 -10:00
Mark Charlebois 729653ba71 SITL: changed posix_default to posix_sitl
The SITL build is now the default posix build.

The linker script for posix was moved to makefiles/posix.
The rc.S file was moved to posix-configs/SITL/init/
The POSIXTEST board definition is now SITL

To run the SITL test run:

make sitlrun

This replaces the make posixrun target.

The build directory is now Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 09:51:07 -07:00
Ban Siesta 3489c3de1c uORBDevices_posix: copied over fixes from uORBDevices_nuttx 2015-06-15 18:34:52 +02:00
Ban Siesta 21d9bd70a3 uORBDevices_nuttx: Fixed the bug that a publisher had to be started
before an advertiser for multi_pub/subs.

This is achieved using
- A "published"  flag for each uORB device node
- A check before increasing the instance count (basically, a node is
  re-used if nothing has been published on it before which means that it
  has been created by a subscriber.
2015-06-15 18:34:52 +02:00
Ban Siesta 9ecf4345a5 ORBMap: bugfix, got rid of infinite Looping Louie 2015-06-15 18:34:51 +02:00
Ban Siesta c5fd277a9e ORBMap: whitespace 2015-06-15 18:34:51 +02:00
Ban Siesta fee8449de3 uORBDevices: astyle 2015-06-15 18:34:51 +02:00
Ban Siesta f4f761042b uORBManager: astyle 2015-06-15 18:31:01 +02:00
Ban Siesta adaaeff48a uORBTest_UnitTest: Split test function in 3 separate functions and add a
test which fails because it does the subscription before the advertisement.
2015-06-15 18:31:01 +02:00
Ban Siesta c584bab811 uORB: document ORB_MULTI_MAX_INSTANCES 2015-06-15 18:31:01 +02:00
Ban Siesta 99a442b80e uORB: bump ORB_MULTI_MAX_INSTANCES to 4 because this is needed for an extended unit-test 2015-06-15 18:31:01 +02:00
Ban Siesta 8be1b4f19c uORBTest_UnitTest: astyle 2015-06-15 18:31:01 +02:00
Ban Siesta 45f5907716 uORBTest_UnitTest: say who you are in the printf 2015-06-15 18:31:00 +02:00
Lorenz Meier 56a8f0e604 Merge pull request #2377 from mcharleb/getpid-fix
POSIX: px4_getpid() fix
2015-06-15 18:19:23 +02:00
Roman 75c1588241 only send autopilot capabilities blindly for serial connection 2015-06-15 18:03:05 +02:00
Lorenz Meier 9745d16905 Merge pull request #1977 from devbharat/fix_issue_1963
Shifted the set() function for Matrix3x3, Vector2, Vector3, Vector4 to a...
2015-06-15 17:35:40 +02:00
Mark Charlebois d66b6ea701 POSIX: px4_getpid() fix
Since the PX4 code uses both px4_task and pthread APIs,
px4_getpid() must be save to call from either context.

On posix, this means we have to always return the pthread ID.

Reverted simulator change of pthread to px4_task

There may have been side effects if this was build for a target that
has process/task scoped file descriptors. It is now safe to call
px4_getpid() from this pthread context with this change for the
posix build for px4_getpid().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 08:25:57 -07:00
Lorenz Meier 75ef0e1709 Merge pull request #2365 from PX4/master_p1
Master p1
2015-06-14 15:43:38 +02:00
Lorenz Meier 40f3b49419 POSIX: Re-load params after boot 2015-06-14 03:17:33 -07:00
Mark Charlebois 872a26e6da Fixed passed ot open() for O_CREAT
In nuttx the mode parameter to open is not required but in Linux,
and per the POSIX spec, mode is required if the O_CREAT flag is
passed.

The mode flags are different for NuttX and Linux so a new set of
PX4 defines was added:

PX4_O_MODE_777 - read, write, execute for user, group and other
PX4_O_MODE_666 - read, and write for user, group and other
PX4_O_MODE_600 - read, and write for user

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-14 11:26:40 +02:00
Mark Charlebois c6b36073fe POSIX: ifdef getreg32() calls in mcu_unique_id()
mcu_unique_id() reads registers at an invalid address in non-nuttx builds.
Added ifdef to return a dummy value for non-nuttx builds.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-14 11:26:27 +02:00
Lorenz Meier 7254f04f68 POSIX: Complete default startup config so we get a working quad setup on boot. 2015-06-13 17:08:07 -07:00
Mark Charlebois 7e7513bc15 POSIX: change pthreads to px4_tasks in simulator
The simulator was using pthread APIs directly so calls to px4_getpid()
would fail since the task ID was not known. Changed simulator to use
px4_task_spawn_cmd.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-13 16:44:29 -07:00
Lorenz Meier 7263402cec Merge pull request #2362 from PX4/master_elf_sizes
Document the the sizes of sections inside the elf files.
2015-06-13 19:38:48 +02:00
David Sidrane 447b93c090 Add size Makefile target for elf 2015-06-13 06:07:57 -10:00
Lorenz Meier 5e4ce5cf59 Add missing errno header 2015-06-13 16:36:00 +02:00
Mark Charlebois e6d9aa2b43 mavlink fix for cause of intermittent crash
If the posix target is run and the rootfs is not created, then
there is an fopen in mavlink without a return value check and then a write
to the fd. When this condition occurs it tries to write to NULL and will
segfault.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-13 07:21:45 -07:00
Lorenz Meier a1b68b5b41 POSIX: Start MAVLink app as default on UDP 2015-06-13 06:53:18 -07:00
Lorenz Meier 1522255c29 MAVLink app: Fix argument handling to work on all operating systems 2015-06-13 06:53:02 -07:00
Lorenz Meier 928648f2f5 Merge pull request #2356 from PX4/master_m
Master merge
2015-06-13 14:28:31 +02:00
Lorenz Meier 849bd4c3f7 POSIX HRT: Use correct define, formatting fixes 2015-06-13 11:43:31 +02:00
Lorenz Meier 9d0d6ba2bf EKF: Fix isfinite calls 2015-06-13 11:31:55 +02:00
Lorenz Meier b06a533555 OS X porting: Make unit tests compile on OS X 2015-06-13 11:07:17 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier 2fc069bd63 Merge pull request #2350 from PX4/master_versioning_fix
Back Port of Git Versioning - without side effects
2015-06-13 00:07:19 +02:00
Elikos default a0176474c7 fix NaN yaw breaking attitude setpoints when going back into posctl from offboard 2015-06-13 00:02:17 +02:00
Lorenz Meier 3b0d766fd8 Merge pull request #2353 from andre-nguyen/offb_NaN_fix
fix NaN yaw breaking attitude setpoints when going back into posctl from offboard
2015-06-13 00:01:24 +02:00
Lorenz Meier 938301cdec Merge pull request #2352 from PX4/version_fix_r
Merged GIT version changes
2015-06-12 20:18:40 +02:00
David Sidrane 9585bb4a3c Missing slash 2015-06-12 07:54:51 -10:00
David Sidrane 428611119f Merged GIT version changes 2015-06-12 19:32:55 +02:00
David Sidrane 5acc4ee43b Back Port of Git Versioning - without side effects Part 2 2015-06-12 06:54:04 -10:00