Commit Graph

576 Commits

Author SHA1 Message Date
Mark Charlebois f63ab3d5e3 Merge branch 'master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
2015-04-22 10:38:46 -07:00
Roman Bapst 5b772e5720 update vehicle status before doing preflight checks 2015-04-22 13:32:09 +02:00
Lorenz Meier 5e584c2942 commander: Better low battery failure feedback 2015-04-22 09:27:03 +02:00
Lorenz Meier 5a8eca75bf Commander: Fix RTL mode switch logic 2015-04-21 06:54:16 +02:00
Lorenz Meier b9d17241a3 RTL mode switching: Allow to flick to RTL in any mode. 2015-04-21 06:54:15 +02:00
Mark Charlebois 694427e4ba Converted commander to use px4_posix calls
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Mark Charlebois bba26c3430 Linux: enabled commander module
The commander module now compiles for Linux.

state_machine_helper_linux.cpp iterates over the virtual devices vs
all devices under /dev as per NuttX when disabling publishing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Lorenz Meier 554719c78f Harmonize preflight and prearm checks, run same code except for dynamic range check only on arming 2015-04-20 09:14:13 +02:00
Lorenz Meier 7dbb6c4fa8 Commander: Improved preflight check routines. Running checks on all connected sensors. Re-run checks once GCS is connected. 2015-04-20 09:14:13 +02:00
Johan Jansen 7a4ac0ad7f Commander: Ignore sensor status on in-air restore 2015-04-20 09:14:13 +02:00
Johan Jansen b70138c631 Commander: Re-run preflight check after calibration 2015-04-20 09:14:12 +02:00
Johan Jansen c5a178a777 Commander: Play startup tune if preflight checks are good, play alarm otherwise 2015-04-20 09:14:12 +02:00
Johan Jansen 6f338eb1b2 Commander: Run preflight check on boot 2015-04-20 09:14:12 +02:00
Johan Jansen fde244f903 Commander: Add PreflightCheck to the commander 2015-04-20 09:14:12 +02:00
Daniel Agar 2e824bbeea fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
2015-04-18 12:02:58 +02:00
Thomas Gubler a872b69df1 add parameter to control autosave of parameters 2015-04-10 17:30:22 +02:00
Thomas Gubler f6f8d646d1 commander: rename variable to avoid confusion with parameter 2015-04-10 17:30:22 +02:00
Thomas Gubler 7a2bb7c03a commander: fix whitespace 2015-04-10 17:30:22 +02:00
Lorenz Meier 26ccac347d commander: Go only into armed error state if on low battery and disarmed 2015-04-04 10:18:40 +02:00
Lorenz Meier 64cdcfc0cc Fix detection of USB connected state. Needs bench test without USB 2015-04-04 10:15:46 +02:00
Lorenz Meier 8ebf9755e4 commander: Fix battery config 2015-03-28 13:54:05 -07:00
Lorenz Meier a098ca4ec6 Move autosave into the 1-second timeout check. 2015-03-28 13:07:01 -07:00
Lorenz Meier f8fd67d3e1 Auto-save parameters on change 2015-03-28 13:07:01 -07:00
Lorenz Meier 37de377dcf commander: Increase stack size for low prio task to accomodate accel cal. 2015-03-15 17:24:11 +01:00
Lorenz Meier 49b3906b78 commander: Fix status checks for leds and adjust stack size based on actual use 2015-03-15 14:33:22 +01:00
Lorenz Meier 9db48df3d6 Slightly increase commander stack size to accomodate any additional printf calls 2015-03-15 12:03:27 +01:00
Andreas Antener e566cff28b ignore mount commands in commander 2015-03-13 10:20:06 +01:00
Lorenz Meier 7d87da700c commander: Adjust stack size to real use 2015-03-08 08:13:39 +01:00
Lorenz Meier d8b64a05d7 Merge pull request #1873 from Zefz/ekf-dead-reckoning-fix
AttPosEKF dead reckoning fix
2015-03-07 12:07:28 +01:00
Lorenz Meier 1d90e86ec4 Commander and MAVLink: Adjust stack sizes as required 2015-03-03 17:29:49 +01:00
Johan Jansen ee6da71efa Commander: Timeout position estimates if we receive none for 1 full second 2015-03-03 13:29:32 +01:00
Lorenz Meier f9e525bbab commander: Do not allocate excessive stack 2015-03-01 18:32:07 +01:00
Matt Beall 220fb19eb7 Removed actuator_control_mode flags...Using pre-existing flags instead 2015-02-28 15:19:16 +01:00
Matt Beall d7dc3a3ee8 Cleaned up some chunky code 2015-02-28 15:19:16 +01:00
Matt Beall e2de72b882 Added offboard actuator controls flags to offboard control mode and vehicle control mode to disable controls in att_control apps 2015-02-28 15:19:16 +01:00
Thomas Gubler 2b2f7e9407 introduce offboard control mode topic
Replace offboard_control_setpoint with offboard_control_mode
Remove all setpoint data from the topic as it's  not used anymore
(setpoint data is directly routed into position/attitude setpoint topics
for some time now)
Remove mode enum and replace with ignore booleans which map better to
the mavlink message
Mavlink: Rework parsing of offboard setpoints
Commander: in offboard mode set control flags based on ignore flags
instead of enum
2015-02-28 15:19:15 +01:00
Johan Jansen 76901c6414 AttPosEKF: Moved data collection to separate function 2015-02-12 11:49:45 +01:00
Johan Jansen dc522f217f Commander: Fix GPS loss not handled properly 2015-02-11 16:42:01 +01:00
Lorenz Meier d3dd4a21e2 commander: Support commandline sensor calibration 2015-02-09 22:56:25 +01:00
Thomas Gubler 2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Thomas Gubler 14aa5f9441 add topic header includes 2015-01-25 15:00:35 +01:00
Simon Wilks b8b0d1d4ae Remove a noisy debugging statement. 2015-01-20 22:28:58 +01:00
Lorenz Meier 7d13318df8 Fix coverity CID 12451 2015-01-19 13:22:44 +01:00
Lorenz Meier 9dbcea4b1f Merge branch 'land_detector' 2015-01-17 23:32:14 +01:00
Johan Jansen 9ecadcd9b4 Astyle: Fix format for commander.cpp 2015-01-16 16:46:16 +01:00
Johan Jansen a581ae8ed6 Commander: Remove duplicate code for setting home position 2015-01-16 16:43:11 +01:00
Johan Jansen 818ccf7a04 Commander: Fix for resetting home timestamp on arm 2015-01-16 15:51:57 +01:00