Commit Graph
8095 Commits
Author SHA1 Message Date
Mark Charlebois 54bae34a2c Build fixes for qurt after rebase on PX4 master
Removed the re-definitions of the usage method in the posix/main.cpp file.
Added qurt_external_hook interface to call externally linked module.
Fixed code format to comply with PX4 style.
Added usage information to main app and handled cases for unknown arguments.
Fixed the orb_priority interface to use int32_t instead of int.
Fixes to get hil working with led changes.
Added the config_eagle_adsp.mk file and update the make files to to use new
include/lib paths

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-04 11:09:29 -07:00
Lorenz Meier 86d1e38f7a MAVLink: Improve switch handling 2015-09-04 19:58:04 +02:00
Lorenz Meier be92c1189b Fix handling of RC mode selection 2015-09-04 19:57:44 +02:00
Lorenz Meier f63dd12952 Fix MAVLink MANUAL_CONTROL simulation mode handling 2015-09-04 19:11:40 +02:00
Lorenz Meier ae2dfe0026 Fix MAVLink network init 2015-09-04 19:11:17 +02:00
tumbili 4fae86b5ac mavlink socket: stream to localhost before actually receiving packets 2015-09-04 15:02:04 +02:00
Lorenz Meier d93337017d Commander: Do not emit status message if RC becomes available first time 2015-09-04 14:57:51 +02:00
Lorenz Meier a058ce4b8e Mission: Do not emit status messages if nothing changes 2015-09-04 14:57:51 +02:00
Lorenz Meier f2a780dffd Manual control: Add switches 2015-09-04 14:57:51 +02:00
Lorenz Meier 6e9a460c17 MAVLink receiver: Clean up joystick interface 2015-09-04 14:57:51 +02:00
David Sidrane 999982a033 Merge pull request #2803 from ksschwabe/master
Tone_Alarm: Added ability to use timer 1 and timer 8 for the tone alarm driver.
2015-09-03 06:06:04 -10:00
ksschwabe 6b7fe11c2e Tone_alarm: added checking to make sure HRT and Tone_alarm on different timers. 2015-09-03 17:52:57 +02:00
ksschwabe 9f300e054d Added ability to use timer 1 and timer 8 for the tone alarm driver. 2015-09-03 11:03:11 +02:00
tumbili cb96dc1074 do not close stdin/stdout for posix 2015-09-03 10:00:57 +02:00
tumbili 4d35291649 avoid division by zero 2015-09-03 09:56:07 +02:00
tumbili 50a5fb94ad fix logic in posix access function 2015-09-03 09:56:07 +02:00
Lorenz Meier c776082dd8 Merge branch 'beta' 2015-09-03 08:34:46 +02:00
tumbili 980217468f set actuator commands to zero if vehicle status is still unknown 2015-09-02 21:58:29 +02:00
tumbili 95af5fc3d0 do not run mavlink receiver before app is fully booted when using sockets 2015-09-02 10:25:10 +02:00
tumbili b1850a316b support sitl for planes 2015-09-01 09:40:20 +02:00
tumbili b4839731ad use correct syntax for polling 2015-09-01 09:36:27 +02:00
Lorenz Meier b2b7ed8dd5 Merge pull request #2785 from mcharleb/posix_daemon_mode
Add daemon mode to posix build
2015-08-31 17:49:59 +02:00
Lorenz Meier d722292381 MC attitude controller: Use tighter attitude control gains 2015-08-30 22:43:07 +02:00
Lorenz Meier b5a410e9d2 EKF: Set better default gains 2015-08-30 19:37:41 +02:00
Lorenz Meier ec84ee817f Merge branch 'beta' 2015-08-30 14:27:39 +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
Lorenz Meier fbe5ef6087 uORB: Provide used group count 2015-08-30 00:12:45 +02:00
David Sidrane c5489b0598 Merge pull request #2759 from ksschwabe/master
Bug fix: Incorrect APBs used in HRT driver, tone alarm and, pwm_input driver.
2015-08-28 13:15:09 -10: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
Karl Schwabe 8e16fdeebf pwm_input bug fix: Incorrect APBs on timers 5, 9, 10, 11 and 12 2015-08-29 00:29:52 +02:00
Karl Schwabe 85bf7c31ab HRT driver fix : Incorrect APBs for timers 5, 10 and 11. 2015-08-29 00:07:20 +02:00
Lorenz Meier 22864a3e32 TECS: Initialize all integrals in one place when not active 2015-08-28 22:57:38 +02:00
Lorenz Meier 700594e743 Merge branch 'beta' 2015-08-28 22:03:12 +02:00
Andrew Tridgell 4eaa18e6f9 perf_counter: fixed write to correct fd for perf output
this fixes perf output for nsh over MAVLink
2015-08-28 21:57:09 +02:00
Randy Mackay aa1d7d7869 IRLock: fix compile error 2015-08-28 21:55:57 +02:00
philipoe 64248f3ad5 mathlib: Bugfix to print function 2015-08-28 17:15:57 +02:00
Lorenz Meier 3724947046 Fix circuit breaker param typo 2015-08-28 12:18:25 +02:00
Lorenz Meier e30c822068 POSIX: Throw an error if the startup script is not present 2015-08-28 10:47:25 +02:00
Lorenz Meier ad1dff434d Navigator: Fix out of index warnings when empty offboard mission was read 2015-08-26 20:14:40 +02:00
Lorenz Meier 5db1490a03 EKF: Only publish with low EPH / EPV if the position estimate is actually valid / in place. 2015-08-26 20:07:56 +02:00
Lorenz Meier badb22bc23 MAVLink app: Fix include guard to condition on NuttX when referring to NuttX 2015-08-26 16:17:37 +02:00
Lorenz Meier 9ef9185d1d Commander: Fix commandline handling 2015-08-26 16:17:07 +02:00
Lorenz Meier 7fb22e77f6 Remove old file 2015-08-26 15:54:02 +02:00
Lorenz Meier 4143c94029 sensors app: Re-introduce sensor rate limiting 2015-08-26 14:15:32 +02:00
Simon Wilks 56adce9432 Don't try to convert gps time to seconds a second time round and if requested only use GPS time when a 3D fix is present. 2015-08-26 12:35:53 +02:00
Simon Wilks 28d0ad4854 Don't try to convert gps time to seconds a second time round and if requested only use GPS time when a 3D fix is present. 2015-08-26 12:17:14 +02:00
ksschwabe fb2082e6ae Introduce new variable for TONE_ALARM_CLOCK_POWER_REG to account for timers being on different APBs 2015-08-26 11:03:32 +02:00
philipoe d00f78061f Mathlib: Fix to matrix division operator 2015-08-26 09:33:35 +02:00
philipoe 32ae3026be Mathlib: Fix to matrix division operator 2015-08-26 09:31:32 +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