Commit Graph

5037 Commits

Author SHA1 Message Date
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 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 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
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
tumbili ac053e15da clean up mavlink network capability 2015-06-09 20:14:42 +02: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 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 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 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
tumbili 5c013af574 save gps data so driver can read 2015-06-08 22:21:59 -07:00
tumbili 9da40a69cc mavlink: do not send autopilot capabilities to avoid crash 2015-06-08 22:21:59 -07:00
tumbili a77f637bc4 mavlink udp:
- added option to stream messages over udp
- still hardcoded stuff (port)
2015-06-08 22:21:58 -07:00
tumbili 45ee36234d activate sending thread only once got message from simulator 2015-06-08 22:21:58 -07:00
tumbili f0a3210e94 major simulator rework:
- wait for first message from jMAVSim
  before sending data
- publish raw rc data coming from PIXHAWK (temporary)
- send some interesting messages to jMAVSim
- prepare sensor data for sim drivers to read
2015-06-08 22:21:58 -07:00
tumbili b571d70488 allow to give away some thrust for yaw control 2015-06-08 16:04:42 +02:00
Lorenz Meier b1e462383d Merge pull request #2270 from PX4/uavcan_next
Changes to build on latest uavcan master with FW upload and Node ID
2015-06-05 01:39:25 +02:00
Lorenz Meier b9e8fd550a Merge pull request #2258 from tumbili/VTOL_fix
do not run fw attitude controller when in rotary wing mode (VTOL)
2015-06-04 21:08:58 +02:00
David Sidrane 2d796f408d Ran Astyle 2015-06-04 03:27:40 -10:00
David Sidrane 6155a1557f Changes to build on latest uavcan master with FW upload and Node ID allocation 2015-06-04 02:37:59 -10:00
Lorenz Meier 9ce7fe483a Merge pull request #2272 from mcharleb/mavlink-cleanup
Removed unused file mavlink_main_posix.cpp
2015-06-04 08:43:46 +02:00
Lorenz Meier 39b0100138 Merge pull request #2271 from mcharleb/param-union-fix
remove long long from union param_value_u
2015-06-04 08:43:14 +02:00
Lorenz Meier fe82b412f6 Merge pull request #2269 from mcharleb/uorb-posix-fix
Created px4_access to handle check of virtual files
2015-06-04 08:39:56 +02:00
Mark Charlebois 4d8061b22c Removed unused file mavlink_main_posix.cpp
The posix and nuttx changed were re-integrated back into mavlink_main.cpp

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 21:05:03 -07:00
Mark Charlebois 7c00bf11fd remove long long from union param_value_u
The long long was mistakenly added when debugging an alignment issue
on x86_64.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 21:00:40 -07:00
Mark Charlebois f985a48fbc Created px4_access to handle check of virtual files
uORBManager_posix.cpp did a stat to see if a file exists but the
file is actually a virtual file. Using stat was incorrect because
it required a stat buffer that was never used. The POSIX access
function is a better choice so I created a px4_access version to
handle virtual files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 16:22:14 -07:00
Lorenz Meier 3dbd48fbad param style fix 2015-06-03 22:51:02 +02:00
David Sidrane 03bdf1e5f2 Allow allocation of changed paramaters to fail, then all param functions will return PARAM_INVALID or a count of 0 2015-06-03 22:49:57 +02:00
David Sidrane 7950167bc5 Added assertion on allocation failure for parameter change storage, removed magic numbers 2015-06-03 22:49:57 +02:00
Lorenz Meier 9882b78383 Merge pull request #2248 from mcharleb/gyrosim-fix
Gyrosim: Fixed constant looping
2015-06-02 01:40:49 -07:00
Lorenz Meier 9ad9dd13d2 Merge pull request #2252 from UAVenture/param_meta_fix
Fix group for posctl_th
2015-06-02 01:36:25 -07:00
Lorenz Meier 00fc4b5f13 Merge pull request #2256 from mcharleb/fixes-for-gcc
Fixes for gcc 4.8
2015-06-02 01:35:20 -07:00
Roman 7331ea32ef make navigator work for posix 2015-06-01 23:40:20 +02:00
Roman b688e3b97c remove unnecessary parenthesis 2015-06-01 11:17:40 +02:00
Roman 9ff89ffe5c use PX4_ISFINITE 2015-06-01 11:16:32 +02:00
Roman 64e8419ab0 remove suffix for double 2015-06-01 11:15:56 +02:00
Roman 6bc0d4d03b add definition of MAX_RAND 2015-06-01 11:14:45 +02:00
tumbili 134c7d87b8 do not run fw attitude controller when in rotary wing mode (VTOL) 2015-05-30 15:39:37 +02:00
Mark Charlebois ca88251124 Fixes for gcc 4.8
The use of a non-static function without a declaration generates a
warning for gcc 4.8.

Clang-3.4 does not work when compiling for gprof. The executable always
generates a segv.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-29 12:38:51 -07:00