Commit Graph

13526 Commits

Author SHA1 Message Date
Lorenz Meier 6c0539c243 FW position controller: Do handle idle mission items correctly 2015-06-12 15:55:55 +02:00
Lorenz Meier bca13e3e1b Merge pull request #2343 from PX4/mc_thrust_fix
Update MC thrust limit default param value and add explanation
2015-06-12 15:09:36 +02:00
Lorenz Meier 540ffa7861 Let user know we are loitering now 2015-06-12 14:02:47 +02:00
tumbili 7e44a23411 fix: take current trim values into account when doing trim calibration 2015-06-12 13:59:25 +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 e7765d77f6 Merge pull request #2330 from PX4/abs_alt
Navigator: Make logic using previous and current altitudes consistent
2015-06-12 13:07:06 +02:00
Lorenz Meier 267fb408b1 Update MC thrust limit default param value and add explanation 2015-06-12 11:08:30 +02:00
James Goppert dedd16e36e Modified velocity saturation to maintain direction. 2015-06-12 10:58:33 +02:00
James Goppert adbccfaa1c Saturate velocity command for mc_pos_control. 2015-06-12 10:58:20 +02:00
Andreas Antener 315683124d fix posctl th param meta 2015-06-12 08:47:46 +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 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
David Sidrane 28d3729acd Backport of Fixes mavlink_if0: invalid data rate '(null)' bug 2015-06-11 15:43:28 -10:00
Elikos default 9605df75da fix NaN yaw breaking attitude setpoints when going back into posctl from offboard 2015-06-11 20:28:47 -04: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 7540aa6b87 Navigator: Make logic using previous and current altitudes consistent 2015-06-11 21:05:38 +02:00
Lorenz Meier 891829d3a7 Land detector: Protect fixed wing logic from false-positives due to bad input data 2015-06-11 19:25:17 +02:00
Lorenz Meier a66b1b9d04 Improve feedback when auto mode is rejected due to a non suitable mission 2015-06-11 17:03:13 +02:00
Lorenz Meier bc48634101 Navigator: Reject missions with relative altitude if no home was set before arming 2015-06-11 17:03:12 +02:00
Lorenz Meier f2b81ce69a commander: Only update home position if not armed already 2015-06-11 17:03:12 +02:00
Lorenz Meier ac084ae3d0 Merge pull request #2293 from kd0aij/HIL_inhibitSensorCheck
special treatment and warning message for HIL platform arming
2015-06-11 15:22:21 +02:00
Lorenz Meier 000434be15 IO mixer: Limit outputs to proper range 2015-06-11 14:52:10 +02:00
Lorenz Meier 3cc2b7ed12 EKF: Add small gyro failover hysteresis 2015-06-11 14:52:04 +02:00
Lorenz Meier f0f3ffaec1 IO firmware: Do not apply trim values a second time 2015-06-11 13:31:58 +02:00
Lorenz Meier 086123fe84 Fix RC failsafe handling when landed 2015-06-11 12:40:39 +02:00
Lorenz Meier e8a9c20056 EKF: Ensure we start with zero local altitude and zero GPS offset. Since the filter is not publishing any data at this point this is not relevant in operation, but might be important later if we publish a separate altitude estimate topic 2015-06-11 12:30:05 +02:00
Mark Whitehorn 7e48c66c22 add is_hil_setup() 2015-06-10 12:13:49 -06:00
Mark Whitehorn 71da3976ab add HIL autostart ID range macros and remove warnx 2015-06-10 12:13:49 -06:00
Mark Whitehorn e224441ac1 special treatment and warning message for HIL platform arming 2015-06-10 12:13:49 -06:00
tumbili 45cd05b57a invert pitch trim parameter 2015-06-10 17:06:42 +02: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
Lorenz Meier 8a3d3f61e6 commander: Better error handling for RC trim 2015-06-09 23:08:49 +02:00
Lorenz Meier 9bb91ea031 PX4 IO firmware: Do not reject trim 2015-06-09 23:06:20 +02:00
tumbili ac053e15da clean up mavlink network capability 2015-06-09 20:14:42 +02:00
Lorenz Meier 90362a9889 FW attitude controller: Fix usage of trim parameters to apply only to the final outputs 2015-06-09 14:16:37 +02:00
Lorenz Meier b46b122808 PX4IO firmware: Support trim parameters for RPY 2015-06-09 14:16:05 +02:00
Lorenz Meier da6a07421b EKF: Add hysteresis to mag failover 2015-06-09 09:15:45 +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