12737 Commits

Author SHA1 Message Date
David Sidrane
17fddb1556 Back Port of Git Versioning - without side effects Part 1 2015-06-12 06:49:15 -10:00
Lorenz Meier
bcc49268ca Merge pull request #2310 from mcharleb/bringup-m1
Bringup m1
2015-06-12 14:16:06 +02:00
Lorenz Meier
94313323aa MAVLink app: Fix sending of autopilot capabilities 2015-06-12 13:53:20 +02:00
Lorenz Meier
085a69383a Merged master 2015-06-12 13:40:47 +02:00
Lorenz Meier
3c4e25153c Merge pull request #2337 from bansiesta/readme_link
Small README.md and LICENSE.md fixes
2015-06-12 09:42:31 +02:00
Lorenz Meier
5eadda5ea5 Comment out unused pca8574 driver in boot 2015-06-12 09:31:10 +02:00
Ban Siesta
0e428a6b3b LICENSE.md: bring year up-to-date 2015-06-12 08:30:50 +01:00
Ban Siesta
7fa35e8a88 README.md: added link to LICENSE.md 2015-06-12 08:29:22 +01:00
Lorenz Meier
3f4b5fcb72 HIL driver: Fix boot order race 2015-06-12 09:27:15 +02:00
Lorenz Meier
7374aff3aa Merge pull request #2334 from PX4/master_mavlink_null_fix
Backport of Fixes mavlink_if0: invalid data rate '(null)' bug
2015-06-12 08:36:25 +02:00
Mark Charlebois
c9be962f4c POSIX: Modified posix_run.sh to create rootfs dirs
The default rootfs is now in:

Build/posix_default.build/rootfs/

The subdirs fs/microsd and eeprom are now created if they do not exist.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 21:44:21 -07:00
Mark Charlebois
4d1ae6269b POSIX: Added PX4_ROOTFSDIR to file paths
Set a default path relative to current dir for the posix target.

Running make posixrun will create the required directoroes and then run
mainapp from its build location.

PX4_ROOTFSDIR is set to nothing for nuttx.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 21:36:13 -07:00
Mark Charlebois
0c43803ec7 POSIX: Fixed syntax error in posix_apps.py
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 21:03:45 -07:00
Mark Charlebois
892a4c5f0f Merge branch 'bringup-m2' into bringup-m1 2015-06-11 20:40:35 -07:00
Mark Charlebois
aaac4708a5 Merge branch 'bringup-m1' of https://github.com/mcharleb/Firmware into bringup-m2
Conflicts:
	Tools/posix_apps.py

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 20:38:47 -07:00
Mark Charlebois
fb402bc096 POSIX: Fixed remaining broke gtests
The addition of the hrt workqueue required adding some additional files to
unittests/CMakeLists.txt

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 20:22:49 -07:00
Mark Charlebois
ea7d5070c5 POSIX: Fixed some of the failing gtests
The orb_advert_t change from int to void * required some fixups
for the gtests.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 19:42:54 -07:00
Mark Charlebois
527b97e8b4 POSIX: added tone_alarm simulator
The tone_alarm simulator was added to rc.S and the warning output for a
hrt_timer with a 0 expiry times was disabled.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 19:00:49 -07:00
David Sidrane
28d3729acd Backport of Fixes mavlink_if0: invalid data rate '(null)' bug 2015-06-11 15:43:28 -10:00
Mark Charlebois
9ef7db6a36 QuRT: Added missing hrt workqueue files
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 18:16:29 -07:00
Mark Charlebois
e4a8f32f1b QuRT: Added HRT workqueues as per POSIX
A high rate workqueue is required that acts like an interrupt handler
for a HW timer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 18:13:36 -07:00
Mark Charlebois
83bcb95999 POSIX: Added sleep command
The baro was not fully initialized when the sensors module tried to
open it. Added a sleep command and a sleep 2 to rc.S so the baro
is initialized by the time the sensors module tried to read it.

Fixed other noisy errors

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 17:28:46 -07:00
Mark Charlebois
18304a2a0d POSIX: Fixed px4_getpid() calls from shell context
When px4_getpid() was called from the shell, there was no opaque
thread ID to return. Added a special thread ID for the shell
context. This ID only works for px4_getpid() and cannot be used
for other px4_task_*() calls.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 11:36:58 -07:00
Lorenz Meier
6ba0f246f0 Merge pull request #2318 from PX4/libuavcan_update
Libuavcan submodule update
v1.0.0rc12
2015-06-11 17:04:11 +02:00
Lorenz Meier
c06d4032f4 Merge pull request #2314 from kylemanna/python2
Tools: Update python files to work with python3
2015-06-11 09:29:11 +02:00
Kyle Manna
c593451e5d Tools: Convert Python 2 syntax to Python 3 compatible
* The `print """` syntax appears invalid in Python 3 which is the
  default for the Python binary on my system (and soon many more).
* Convert the file (using `2to3`) to a version that's compatible with
  Python 2 and Python 3.
* Tested against Python 2.7.10 and 3.4.3.
2015-06-11 00:07:54 -07:00
Pavel Kirienko
67c1b230ca libuavcan submodule updated 2015-06-10 21:20:57 +03:00
Lorenz Meier
30969eb10c Navigator: Use correct open call 2015-06-10 13:20:13 +02:00
Mark Charlebois
9c90e47400 Fixed ORBMap.hpp copyright
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:36:29 -07:00
Mark Charlebois
03d7d770a6 Forgot to add ORBMap.hpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:34:34 -07:00
Mark Charlebois
4df833d25d uORB: factor out ORBMap.hpp into a separate file
The new uORB::ORBMap class was put it its own file with proper
copyright.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:31:56 -07:00
Mark Charlebois
05b6bcd168 Added missing return in ORBSet
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:16:06 -07:00
Mark Charlebois
4d28126e0a Nuttx: remove use of std::string, std::map, std::set
Nuttx complains about an unresolved _impure_ptr at link time.
This is a known issue when using STL templates in NuttX on ARM.

Created new ORBMap and ORBSet classes for NuttX.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 18:56:28 -07:00
Mark Charlebois
13dd993e01 Nuttx: mavlink fixes
Needed to ifdef SITL functionality not supoprted in NuttX build.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 16:32:22 -07:00
Mark Charlebois
980061e508 Merge pull request #15 from tumbili/mavlink_udp_cleanup
clean up mavlink network capability
2015-06-09 12:03:57 -07:00
tumbili
ac053e15da clean up mavlink network capability 2015-06-09 20:14:42 +02:00
Mark Charlebois
7bb70313da POSIX: use px4_getpid()
The posix build only has one process so calling getpid() will not
provide the expected result.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
Mark Charlebois
cb231e89f6 QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid().
The DSPAL layer provides access to usleep so an implementation is
no longer needed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
tumbili
a5c214a7bb use orb_advertise_multi:
- subscribe to actuator controls after topic has been advertised
2015-06-08 22:21:59 -07:00
tumbili
065ec5b2dc no need to send non-controls mavlink messages to jMAVSim because we can use mavlink app with udp 2015-06-08 22:21:59 -07:00
tumbili
5694e37854 fix reading baro values from simulator 2015-06-08 22:21:59 -07:00
tumbili
8eee7ba321 compute atmospheric pressure from altitude 2015-06-08 22:21:59 -07:00
Mark Charlebois
58e263d534 Added posix-arm target and refactored toolchain_* files
The toolchain_* files are target OS specific so they were moved to
the target OS subdir.

The gcc_version.* files are only cleared once per make instantiation so
a build that creates multiple HW targets will try to link with an
incompatible .o file (i.e. x86 build linking ARM .o).  I created
posix-arm as a separate target to fix this problem.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
59ad47003a mavlink: simplified UDP suport by adding new -u option
Use:

    mavlink start -u portnum

to set the UDP port.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
aded2d3c03 Enable passing udp port to mavlink module via start args.
Usage is: -d udp[:<port>] If no port is specified, default port is
set to 14556. If -d isn’t specified then default is serial.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
82b90281e9 Cleanup of copyright headers
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
6cb26de74c Multi-uORB support changes - part 1
This adds support for a dynamic build for QuRT and initial
Multi-uORB changes to enable communication between the DSP and
the application processor.

This part of the changes do not affect the POSIX build. This is
enablement for the QuRT build using Multi-uORB. The second part
of the changes will be added in a new module under src/modules.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
99c066c39c HIL: Cleanup creation and initialization
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
5cf1140944 Add raw mode for UART to mavink_main.cpp
Raw mode is not the default mode in Ubuntu 14.04.

Disable echo and special character processing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
fd1effa4fe Simulator: UART changes
Some changes were needed to use the simulator and the UART for rc control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00