Commit Graph

1659 Commits

Author SHA1 Message Date
Andrew Tridgell bfe7c47aea Plane: prepare new beta 2014-08-07 13:28:29 +10:00
Andrew Tridgell b414ca930d Plane: fixed servo demo on startup
thanks to Klrill-ka

fixes issue #1204
2014-08-07 13:26:47 +10:00
Michael Day 3b62592b26 ArduPlane: attempt to send GCS a message when the GCS heartbeat is not detected. 2014-08-07 12:54:47 +10:00
Przemek Lekston 75f9b8853d GCS_Mavlink.pde: Fix for a possible segfault after passing ARSPD_FBW_MIN 2014-08-07 12:35:31 +10:00
Andrew Tridgell 9184e47f84 Plane: added TERRAIN_LOOKAHD parameter
distance to look forward for terrain following
2014-08-07 09:31:03 +10:00
Andrew Tridgell 903b149bcd Plane: fixed typo in description 2014-08-06 17:59:19 +10:00
Andrew Tridgell 781abc7593 Plane: fix for changed AP_Terrain API 2014-08-06 17:59:19 +10:00
Andrew Tridgell 448b3f60e0 Plane: use dataflash logging for terrain 2014-08-06 17:59:19 +10:00
Andrew Tridgell 2a288824c0 Plane: make STAB_PITCH_DOWN in degrees
try to avoid new centi-degrees parameters
2014-08-06 17:59:18 +10:00
Andrew Tridgell 781c5bc5dd Plane: use terrain extrapolation
use best effort extrapolation if we run out of terrain data
2014-08-06 17:59:18 +10:00
Andrew Tridgell d54bb68270 Plane: prevent cross-track on some WP types
when finishing a takeoff or when a user forces a WP change don't do
any cross-tracking. This avoids a problem where the plane tries to
line up with a track completely unrelated to the track currently being
flown
2014-08-04 21:02:13 +10:00
Andrew Tridgell 09a679368b Plane: use bitfields in auto_state 2014-08-04 21:02:13 +10:00
Andrew Tridgell 16f1c6867f Plane: remved int cast
not portable
2014-08-04 21:02:13 +10:00
Andrew Tridgell 28facc220d Plane: change threshold for no glide slope to 20m
40m is quite high for most planes
2014-08-04 21:02:13 +10:00
Andrew Tridgell 8610d9a8ea Plane: added GLIDE_SLOPE_MIN parameter
this is used to prevent slow glide slopes being used for small
altitude changes in missions. This allows more accurate tracking of
altitude with terrain changes
2014-08-04 21:02:13 +10:00
Andrew Tridgell 9536124300 Plane: more accurate altitude tracking close to waypoints
don't use a glide slope if the altitude change is less than 15 meters
2014-08-04 21:02:13 +10:00
Andrew Tridgell f983040401 Plane: more fixes for glide slope calculations 2014-08-04 21:02:13 +10:00
Andrew Tridgell b64ab07ca4 Plane: added STAB_PITCH_DN_CD parameter
this adds some down trim when at throttle levels below the trim
throttle in FBWA mode.

defaults to 200 centi-degrees. I may adjust based on flight tests
2014-08-03 17:17:20 +10:00
Andrew Tridgell fcbdcb520a Plane: rename enum for Telem2Protocol 2014-07-30 14:49:20 +10:00
Matthias Badaire 57253fc2ee Rover: Add SERIAL2_PROTOCOL for GCS and FRSky telemtry
This allows selection of protocol type on telem2. The default is MAVLink, but can be selected as FrSky protocol
2014-07-29 17:08:20 -07:00
Andrew Tridgell fe3c51d516 Plane: prevent integer underflow with comm_get_txspace() 2014-07-27 22:12:08 +10:00
Andrew Tridgell c9be610dca Plane: fixed sense of altitude test for glide slope 2014-07-25 15:04:16 +10:00
Andrew Tridgell 8904cd105c Plane: fixed auto-doc prefix for TERRAIN 2014-07-25 13:12:23 +10:00
Andrew Tridgell 63cea04d9e Plane: improved TERRAIN_FOLLOW docs 2014-07-25 11:54:51 +10:00
Andrew Tridgell 077177384d Plane: fixed guided alt without terrain bit 2014-07-25 10:31:45 +10:00
Andrew Tridgell 9d6b745556 Plane: fixed terrain glide slope 2014-07-25 09:07:45 +10:00
Andrew Tridgell 88b73492c2 Plane: fixed APM2 build 2014-07-25 08:02:19 +10:00
Andrew Tridgell b158b7e5a9 Plane: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE 2014-07-25 07:59:54 +10:00
Andrew Tridgell 07583a0604 Plane: added terrain status reporting 2014-07-24 21:50:19 +10:00
Andrew Tridgell 49c28b747f Plane: fixed glide slope for terrain following 2014-07-24 21:50:19 +10:00
Andrew Tridgell 3e320d71ab Plane: added TERRAIN_FOLLOW parameter
when enabled RTL, CRUISE and rally points will use terrain altitude
2014-07-24 21:50:19 +10:00
Andrew Tridgell d18c00d6fc Plane: split up altitude handling
this creates altitude.pde for altitude handling, getting ready to add
terrain following
2014-07-24 21:50:19 +10:00
Andrew Tridgell 43b2e34242 Plane: fixed txsize check for airspeed info
prevent underflow
2014-07-24 21:46:06 +10:00
Andrew Tridgell 6f538aa556 Plane: handle TERRAIN_CHECK requests 2014-07-24 21:46:06 +10:00
Andrew Tridgell 32bfeed169 Plane: incorporate terrain mavlink calls 2014-07-24 21:45:47 +10:00
Andrew Tridgell e725b2c77e Plane: added terrain object 2014-07-24 21:45:46 +10:00
akdslr 2373b291f4 ArduPlane Parameters: Changed the SONAR prefix to RNGFND 2014-07-24 14:41:54 +10:00
Andrew Tridgell a83509f6a3 Plane: fixed compass logging for COMPASS_PRIMARY != 0 2014-07-23 18:42:14 +10:00
Andrew Tridgell ae29a24348 Plane: use sensors from board subtypes 2014-07-14 09:44:35 +10:00
Andrew Tridgell f6bba74fb6 Plane: enable MPU9250 for Linux build 2014-07-14 09:44:34 +10:00
Víctor Mayoral Vilches fc57bdedde ArduPlane/config.h: Add the PXF hardware setup 2014-07-14 09:31:41 +10:00
Andrew Tridgell c5a765758c Plane: update for new API 2014-07-13 15:37:50 +10:00
Andrew Tridgell 473865ccc1 Plane: prepare for 3.0.4-beta3 2014-07-11 07:40:59 +10:00
Randy Mackay aef746b3b1 Plane: pass in compass to Arming constructor 2014-07-10 22:51:29 +09:00
Randy Mackay b17125e261 Plane: PREFLIGHT_SET_SENSOR_OFFSETS used to set compass offsets
replaces ardupilot specific SET_MAG_OFFSETS message
2014-07-10 20:25:24 +09:00
Randy Mackay 208a2de777 Plane: rename compass set_and_save_offsets 2014-07-10 20:25:21 +09:00
Randy Mackay 042c65c501 Plane: add support for DO_SET_ROI outside of missions 2014-07-09 21:27:01 +09:00
Randy Mackay 873eb68d79 Plane: add support for DO_SET_ROI within mission 2014-07-09 21:26:02 +09:00
Andrew Tridgell 3390224491 Plane: avoid some float conversion warnings 2014-07-08 20:26:07 +10:00
Andrew Tridgell 28e1449e8d Plane: updates for new AP_RangeFinder API 2014-07-08 15:07:50 +10:00
Andrew Tridgell 5aa58d2ab5 Plane: support 3 magnetometers 2014-07-04 12:49:25 +10:00
Andrew Tridgell 017e4b4c8a Plane: update for AP_Mount change 2014-06-18 12:04:53 +10:00
Randy Mackay d8573d0722 Plane: loiter num turns from low byte of p1
This limits the maximum number of turns to 255 for plane
2014-06-17 20:53:59 +10:00
Randy Mackay ac65119cfe Plane: use common Log_Write_Camera
pair programmed with Craig Elder
2014-06-17 14:11:47 +10:00
Andrew Tridgell 105382bf21 Plane: release 3.0.4beta2 2014-06-07 20:52:08 +10:00
Andrew Tridgell ea086fa79c Plane: added MAV_CMD_DO_INVERTED_FLIGHT support
allows for mission control over inverted flight
2014-06-05 16:12:10 +10:00
Andrew Tridgell 55e7f9b1d6 Plane: calculate next_turn_angle to prevent early WP completion
this should help for ball drop and camera trigger with straight line
runs
2014-06-05 09:35:09 +10:00
Andrew Tridgell a7868dd6b3 Plane: fixed zero throttle in FBWA glide failsafe 2014-06-04 09:39:45 +10:00
Andrew Tridgell 1e2b644b1b Plane: fix for HAL_GPIO_* 2014-06-02 10:42:36 +10:00
Andrew Tridgell 24325a5c62 Plane: fixed takeoff throttle slew rate
when TKOFF_THR_SLEW is zero use the normal slew rate
2014-05-31 16:47:45 +10:00
Andrew Tridgell cea30e1d9f Plane: use new GCS_Common.cpp functions 2014-05-28 09:36:04 +10:00
Andrew Tridgell 055d8fe7aa Plane: added TKOFF_THR_MAX parameter 2014-05-24 22:19:50 +10:00
Andrew Tridgell dfedc377b1 Plane: aim for 5 degrees pitch during accel phase of takeoff
this makes it less likely we will get prop strike
2014-05-23 07:30:59 +10:00
Andrew Tridgell d4c4c71df5 Plane: improve takeoff docs for tricycle undercarriage 2014-05-23 07:30:59 +10:00
Andrew Tridgell 286479ee93 Plane: prevent stalled takeoff with bad TKOFF_TDRAG_SPD1
go to level pitch if pitch rises by 10 degrees
2014-05-23 07:30:59 +10:00
Andrew Tridgell d87619c2f1 Plane: added 4 new parameters to control takeoff
this gives flexible control for taildragger takeoff
2014-05-23 07:30:58 +10:00
Andrew Tridgell c29cc24ad8 Plane: fixed sign of target and nav bearing in logs 2014-05-23 07:30:58 +10:00
Andrew Tridgell f2556535da Plane: moved takeoff code to a new file 2014-05-23 07:30:58 +10:00
Andrew Tridgell 511e8beaed Plane: updates for new GCS_MAVLink API 2014-05-21 12:45:25 +10:00
Andrew Tridgell 2b44d33694 Plane: update baud rate parameter descriptions 2014-05-21 12:45:25 +10:00
Andrew Tridgell 94d528e548 Plane: changed baudrate parameters to 16 bit 2014-05-21 12:45:25 +10:00
Andrew Tridgell 2a230b2703 Plane: set version to 3.0.4beta 2014-05-19 22:03:18 +10:00
Andrew Tridgell 8c5226a17a Plane: prepare for release of 3.0.3 2014-05-19 09:54:15 +10:00
Andrew Tridgell 69b5f352f6 Plane: prevent a bad glide slope when first entering auto
we need to ensure that prev_WP_loc is not used as it could be
completely different from current_loc. As a precuation, this also sets
up next_WP_loc so that when the set_next_WP() is first called that
prev_WP_loc is set to current_loc
2014-05-18 16:14:11 +10:00
Andrew Tridgell bd09d8551d Plane: use setup_uart() 2014-05-16 11:44:53 +10:00
Andrew Tridgell 3a73878ca7 Plane: mark 3.0.3beta 2014-05-15 22:59:02 +10:00
Andrew Tridgell 182d0f9cb0 Plane: added reporting of AHRS health 2014-05-15 21:14:22 +10:00
Randy Mackay 409a593c1a Plane: prepended APM to RSSI_PIN's @Values
This makes it consistent with rover and copter and clarifies where the
pin is on the Pixhawk
2014-05-15 17:13:48 +09:00
Andrew Tridgell 0991af86f3 Plane: removed some usused code
setting up flight modes by CLI is not used any more
2014-05-08 11:10:50 +10:00
Andrew Tridgell c1aa2181dc Plane: update release notes for 3.0.2 2014-05-04 16:31:07 +10:00
Andrew Tridgell f233f95785 Plane: prepare for release of 3.0.2 2014-05-04 16:04:08 +10:00
Andrew Tridgell f51478ee1d Plane: fixed LOITER_TURNS counter for counter-clockwise loiter
thanks to Iskess for finding this bug!
2014-05-01 20:45:34 +10:00
Andrew Tridgell 92714b09d2 Plane: added ATRP log header to plane log headers
too many people can't understand how to download .bin logs
2014-04-30 21:22:28 +10:00
Jonathan Challinger 0bc0abf02d Plane: Supply compass with current measurement for compassmot 2014-04-29 16:20:19 +10:00
Andrew Tridgell 0408c11637 Plane: mark 3.0.2beta 2014-04-29 11:56:52 +10:00
Andrew Tridgell ccc8a6a6ed Plane: use MIS_AUTORESET when entering AUTO mode 2014-04-29 11:46:06 +10:00
Andrew Tridgell 956ff65a25 Plane: RC override input should be considered as valid RC input
this prevents us setting trim values under joystick control
2014-04-29 11:46:06 +10:00
Andrew Tridgell 0306dbf5f1 Plane: moved auto mode variables to auto_state 2014-04-27 15:34:30 +10:00
Andrew Tridgell 08412391f5 Plane: fixed a bug when switching to another mode from auto takeoff
when you exit auto and a takeoff is still in progress the flight stage
was not updated, which led to the throttle staying at maximum

Many thanks to Marco for finding this!
2014-04-23 21:18:11 +10:00
Andrew Tridgell e15350f756 Plane: use get_current_nav_index() 2014-04-22 11:40:18 +10:00
Andrew Tridgell 12012c9530 Plane: fixed a potential numerical error close to waypoints 2014-04-21 18:49:30 +10:00
Andrew Tridgell 0de41f0ce1 Plane: set AHRS vehicle class 2014-04-21 18:13:12 +10:00
Andrew Tridgell 994ce50714 Plane: setup failsafe values for OBC in failsafe callback 2014-04-21 11:52:54 +10:00
Andrew Tridgell 2ab4ffef45 Plane: use new APM_OBC API 2014-04-21 11:52:53 +10:00
Andrew Tridgell 41100a13c3 Plane: setup failsafe trim values for if FMU firmware dies 2014-04-21 08:37:56 +10:00
Randy Mackay 2a298d0ea4 Plane: remove RALLY_WP_SIZE definition 2014-04-19 15:00:32 +09:00
Michael Day 568fc9e6c9 Plane: Now using AP_Rally library. 2014-04-19 09:16:05 +10:00
Andrew Tridgell d30c4ffe80 Plane: added AUTOTUNE_LEVEL parameter 2014-04-13 22:12:27 +10:00
Andrew Tridgell 8a20130ca8 Plane: changed for APM_Control API 2014-04-12 18:22:01 +10:00
Andrew Tridgell 1bce4239a3 Plane: added AUTOTUNE flight mode
this is just like FBWA, but with automatic roll/pitch tuning
2014-04-12 14:12:14 +10:00
Andrew Tridgell d37f1a1376 Plane: updates for OBC API change 2014-04-11 16:47:40 +10:00
Andrew Tridgell 4d990fa6c8 Plane: ensure we log both GPS at the time we receive a msg 2014-04-10 10:29:53 +10:00
Andrew Tridgell e79f1d0940 Plane: prepare for release of 3.0.1 2014-04-10 07:52:36 +10:00
Andrew Tridgell aabcc2bb35 Plane: fixed a bug in PWM based throttle failsafe
many thanks to Sam Tabor for finding this bug!
2014-04-10 07:43:48 +10:00
Andrew Tridgell affcea5342 Plane: fixed typo in VRBrain port 2014-04-08 21:22:05 +10:00
Emile Castelnuovo a111d174c1 Plane: added VRBRAIN #defines and #includes 2014-04-08 16:19:20 +10:00
Andrew Tridgell d0331e0f25 Plane: spelling fixes 2014-04-08 09:49:25 +10:00
Andrew Tridgell d2d9ad5bbd Plane: prepare for 3.0.0 release 2014-04-08 09:46:30 +10:00
Andrew Tridgell c66008cdfa Plane: fixed displayname for FENCE_AUTOENABLE 2014-04-08 09:13:39 +10:00
Andrew Tridgell 95764f4d78 Plane: fixed allocation and reporting of fence status
prevent a false fence active report on boot, and prevent the fence
from loading when it is not needed. This saves about 200 bytes of ram
on APM2 for most users
2014-04-07 17:28:03 +10:00
Michael Oborne 3fe9486868 Plane: fix auto doc unit on GROUND_STEER_DPS 2014-04-07 13:43:15 +10:00
Andrew Tridgell de3c04adaf Plane: show next wp when not running a mission
this lets the GCS know what wp would be run if auto mode is selected
2014-04-07 11:40:58 +10:00
Andrew Tridgell 1fe7b2fe18 Plane: update for new APM_OBC API 2014-04-07 07:28:35 +10:00
Andrew Tridgell f7858bfb0a Plane: added support for SERIAL_CONTROL message 2014-04-05 07:34:33 +11:00
Andrew Tridgell 5a84fb96ed Plane: build fix 2014-04-03 20:54:50 +11:00
Andrew Tridgell 1efadb7a05 Plane: fixed some warnings 2014-04-03 12:48:06 +11:00
Andrew Tridgell 3c33eb3f09 Plane: use new channel output API 2014-04-03 12:19:11 +11:00
Andrew Tridgell 88693796ef Plane: update for GPS.setHIL() API 2014-04-02 07:55:28 +11:00
Andrew Tridgell e19341ca32 Plane: convert to new GPS driver API 2014-04-01 06:38:24 +11:00
Andrew Tridgell 958e17f4ff Plane: use AP_GPS_Auto for 2nd GPS 2014-04-01 06:38:23 +11:00
Andrew Tridgell 14671d0bcd Plane: fixed previous_mode error in geofence
when we were in MANUAL we would switch back to STABILIZE
2014-03-29 13:53:19 +11:00
Andrew Tridgell bcbdb15c7d Plane: changed version to 2.79beta1 2014-03-28 09:47:59 +11:00
Andrew Tridgell 61ebf365d9 Plane: fixed reverting modes when FENCE_SET_RALLY is enabled
we need to keep the guided destination we are using
2014-03-27 10:41:24 +11:00
Andrew Tridgell 8639676eb3 Plane: we need 5 points for a valid geofence
the first and last points need to be the same for it to be a closed
polygon
2014-03-27 10:40:00 +11:00
Michael Day 268b1e85a1 Plane: Changes needed prior to merging with master identified by Tridge. 2014-03-27 09:26:20 +11:00
Michael Day f921d4fbac Plane: FENCE_RET_RALLY param. Plane returns to rally point on breach. 2014-03-27 09:26:20 +11:00
Michael Day 25f23cf16c Plane: Sends MAV_SYS_STATUS_GEOFENCE and also allows GCS to enable/disable fence. 2014-03-27 09:26:20 +11:00
Andrew Tridgell 32a1c717e6 Plane: report up to 18 RC input channels via MAVLink 2014-03-25 14:47:43 +11:00
Andrew Tridgell ff70c87f0b Plane: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Andrew Tridgell 09ed8d5819 Plane: updates for new RCInput API 2014-03-25 14:47:05 +11:00
Andrew Tridgell b8781ccea7 Plane: fixed a compiler warning 2014-03-24 12:52:05 +11:00
Andrew Tridgell e8b9f22b01 Plane: updates for GPS changes 2014-03-24 12:04:31 +11:00
Andrew Tridgell d124fdb182 Plane: report compass unhealthy if primary compass unhealthy 2014-03-24 07:03:53 +11:00
Andrew Tridgell f6b56b5d26 Plane: fixed mission resume at arbitrary waypoints
on completion of a mission a user can ask for it to resume at any wp
2014-03-21 10:21:37 +11:00
Andrew Tridgell 861523a00a Plane: use TECS get_target_airspeed() 2014-03-20 17:34:33 +11:00
Michael Day dd06756abf Plane: Add Log_Write_Radio. MASK_LOG_PM must be set for logging to occur. 2014-03-20 09:56:37 +11:00
Andrew Tridgell 4257d8365c Plane: removed check on target_component in ARM/DISARM
Thanks to DonLakeFlyer for finding this, see
https://github.com/diydrones/ardupilot/pull/909
2014-03-20 09:06:48 +11:00
Andrew Tridgell ce3f40b095 Plane: use should_log() for more msgs 2014-03-19 14:18:14 +11:00
Andrew Tridgell abfcee1cef Plane: fixed channel reversal in HIL
makes it possible to reverse channels
2014-03-19 14:17:40 +11:00
Randy Mackay 3ce56f3086 Plane: integrate Mission cmd field changes 2014-03-19 12:14:24 +09:00
Andrew Tridgell 4031f7d368 Plane: use common deferred message handling 2014-03-19 12:14:17 +09:00
Andrew Tridgell b74fddade3 Plane: use common MISSION_ITEM code 2014-03-19 12:14:11 +09:00
Andrew Tridgell 0d39f354b0 Plane: use new common MAVLink code 2014-03-19 12:13:38 +09:00
Andrew Tridgell 7d3523b4a7 Plane: use _send_buf() functions to reduce stack usage in MAVLink replies
this re-uses the incoming message buffer in constructing the reply
2014-03-19 12:13:28 +09:00
Andrew Tridgell 537e78f9fa Plane: much faster mission upload
send next WP request immediately if possible. This speeds up mission
upload on USB by about 10x
2014-03-19 12:13:27 +09:00
Randy Mackay 1ad743c4e1 Plane: use common GCS_MAVLink handle_mission methods 2014-03-19 12:13:21 +09:00
Andrew Tridgell 740ecc2c1b Plane: use new handle_mission_request() function 2014-03-19 12:13:12 +09:00
Randy Mackay 2184ff1e58 Plane: set_next_WP fn accepts Location 2014-03-19 12:13:06 +09:00
Randy Mackay 96b2e88e36 Plane: add comment to GCS_Mavlink.pde 2014-03-19 12:13:03 +09:00
Randy Mackay ce9f2ef7f0 Plane: minor command logic comments and reordering 2014-03-19 12:13:01 +09:00
Randy Mackay ad4f30e790 Plane: use mission command specific structures 2014-03-19 12:12:52 +09:00
Randy Mackay 9ef920b0be Plane: integrate dataflash Log_Write_MavCmd 2014-03-19 12:12:45 +09:00
Andrew Tridgell 4bf140aeac Plane: make next_WP and prev_WP be locations
having a command ID in them doesn't really make sense

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:12:39 +09:00
Randy Mackay f1b97fee53 Plane: correct typo re RTL home with no mission 2014-03-19 12:12:33 +09:00
Randy Mackay 7f21e3885e Plane: RTL home when AUTO run with no mission 2014-03-19 12:12:31 +09:00
Randy Mackay 6b789cd711 Plane: rename next_nav_command to auto_rtl_command
This command is only used to get the vehicle home (or to a rally point)
after the mission has completed
2014-03-19 12:12:30 +09:00
Randy Mackay 982ce56d2b Plane: bug fix to set_current_cmd
When set_current_cmd mavlink message is received, resume mission only if
the mission has completed.
Stop mission when vehicle leaves AUTO mode.
2014-03-19 12:12:28 +09:00
Andrew Tridgell 3e05baf95c Plane: fixed build (forward declarations) 2014-03-19 12:12:25 +09:00
Andrew Tridgell 2b5bf45e83 Plane: only activate mission callbacks in AUTO mode 2014-03-19 12:12:24 +09:00
Andrew Tridgell 3277416aeb Plane: fixed relative altitudes and resuming mission
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:12:22 +09:00
Andrew Tridgell 4992e2e2cf Plane: use mission.resume() not mission.start() 2014-03-19 12:12:19 +09:00
Andrew Tridgell d4510d9b9b Plane: altitude for do_set_home() is in meters 2014-03-19 12:12:18 +09:00
Randy Mackay 27969175d9 Plane: bug fix to Loiter after mission completes 2014-03-19 12:12:16 +09:00
Randy Mackay 790a907811 Plane: use Dataflash lib's Log_Write_Cmd 2014-03-19 12:12:08 +09:00
Randy Mackay 033b7eca9e Plane: integrate variable max num commands 2014-03-19 12:12:02 +09:00
Randy Mackay fcea127537 Plane: CLI uses HAL eeprom storage size definition 2014-03-19 12:11:59 +09:00
Randy Mackay 693ce27bf6 Plane: pass eeprom start to Mission constructor 2014-03-19 12:11:58 +09:00
Randy Mackay 36a5287de5 Plane: call mission.init during startup 2014-03-19 12:11:49 +09:00
Randy Mackay 6e60730c89 Plane: cli test checks read_cmd success before printing 2014-03-19 12:11:41 +09:00
Randy Mackay ccb2daaed3 Plane: Log_Write_Startup checks success of cmd read before logging 2014-03-19 12:11:40 +09:00
Randy Mackay 0827506533 Plane: remove unused WAIT_COMMAND 2014-03-19 12:11:24 +09:00
Randy Mackay 53add04d36 Plane: remove some comments in commands_logic.pde 2014-03-19 12:11:22 +09:00
Randy Mackay 802ab79c84 Plane: bug fix for setting flight_stage based on current command 2014-03-19 12:11:19 +09:00
Randy Mackay c4364a8ff5 Plane: remove unused nonnav_command variables
non_nav_command_ID and next_nonnav_command variables removed
2014-03-19 12:11:18 +09:00
Randy Mackay 52a08a5284 Plane: CMD dataflash logs use uint16 for total and num
Also bug fix for Log_Write_Cmd definition when logging disabled
2014-03-19 12:11:16 +09:00
Andrew Tridgell f036aa1780 Plane: fixed altitude for takeoff and takeoff heading
fixes for AP_Mission integration

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:11:09 +09:00
Randy Mackay 601cde2a32 Plane: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:03 +09:00
Randy Mackay bc86a5043a Plane: bug fix for relative alt 2014-03-19 12:11:00 +09:00
Randy Mackay 9446e9fd2e Plane: integrate AP_Mission library 2014-03-19 12:10:58 +09:00
Randy Mackay ddba6f5c19 Plane: mission integration into GCS_Mavlink.pde 2014-03-19 12:10:57 +09:00
Randy Mackay 97f09ab426 Plane: dataflash logging to use Mission command 2014-03-19 12:10:55 +09:00
Randy Mackay fdaf3fc177 Plane: add AP_Mission object to parameter list 2014-03-19 12:10:54 +09:00
Randy Mackay e88f1953d0 Plane: use common location options masks 2014-03-19 12:10:21 +09:00
Andrew Tridgell 2b8cc1a1df Plane: use set_mode() in do_RTL()
thanks to Randy for spotting this
2014-03-15 22:15:06 +11:00
Andrew Tridgell eb7db82210 Plane: altitude for do_set_home() is in meters 2014-03-14 11:26:10 +11:00
Andrew Tridgell d595f36ca5 Plane: print PX4 compass type 2014-03-13 16:26:25 +11:00
Andrew Tridgell 65ae9663d4 Plane: set 2nd GPS as secondary 2014-03-08 21:48:12 +11:00
Andrew Tridgell 8574303a94 Plane: treat PWM below 900 as invalid for mode switch
the FrSky X8R receiver will briefly give a PWM of 874 on channel 5
when connection is lost to the transmitter. We need to ensure this
doesn't cause a mode switch
2014-03-08 19:27:50 +11:00
Andrew Tridgell 3a3397d926 Plane: fixup throttle trim on failsafe 2014-03-08 19:27:50 +11:00
Andrew Tridgell c9ebd6a175 Plane: improved RC failsafe handling
this forces all primary control inputs to the trim value on loss of RC
input, and reduces the timeout for loss of RC input to 1 second from 2
2014-03-08 16:20:54 +11:00
Andrew Tridgell 2cf98e476c Plane: added support for a separate steering channel
good for ground steering on larger aircraft
2014-03-05 12:57:50 +11:00
Andrew Tridgell 8d95b953c3 Plane: removed some unused functions 2014-03-05 09:17:50 +11:00
Andrew Tridgell 0d6064034a Plane: use percent_input() for flaps 2014-03-05 09:17:50 +11:00
Andrew Tridgell e3952112ad Plane: raise default LIM_PITCH_MAX to 20 degrees
15 is often not enough to climb
2014-03-03 15:49:04 +11:00
Andrew Tridgell e784c81f3e Plane: only send GPS2_RAW when we have a 2nd GPS 2014-03-03 07:05:52 +11:00
Andrew Tridgell 6b9e1edf38 Plane: disable GPS2 in HIL 2014-02-27 08:16:28 +11:00
Andrew Tridgell 07826096a2 Plane: support a 2nd GPS 2014-02-26 09:24:23 +11:00
Andrew Tridgell 95dd252f29 Plane: pass fix type to gps->setHIL() 2014-02-25 21:11:15 +11:00
Andrew Tridgell 8a4289b56f Plane: remove unused variables
thanks to Mike McCauley
2014-02-24 18:49:14 +11:00
Andrew Tridgell 4bcf9b5d98 Plane: fixed logging of relative altitude 2014-02-23 08:18:43 +11:00
Andrew Tridgell 492e65acde Plane: fix for HIL API change 2014-02-23 08:18:31 +11:00
Randy Mackay a76e2ab02e Plane: reserve NavEKF slot in param list even when not used
Although this wasn't a problem immediatley, if someone had added a
parameter after k_param_NavEKF it's position in eeprom could have moved
as AP_AHRS_NAVEKF_AVAILABLE was enabled/disabled
2014-02-21 13:53:05 +09:00
Andrew Tridgell 2908beb9bd Plane: fixed Log when disarmed value in docs 2014-02-19 19:01:48 +11:00
Andrew Tridgell 33851030a4 Plane: use ahrs.get_armed() 2014-02-19 10:53:26 +11:00
Andrew Tridgell 9282c8d0d9 Plane: allow for a wider range of values on the control switch 2014-02-17 13:58:11 +11:00
Paul Riseborough 98f72a4864 Plane : changed useage of ahrs.set_correct_centrifugal 2014-02-16 22:34:52 +11:00
Andrew Tridgell 99f2c8387c Plane: change to Compass::learn_offsets 2014-02-16 13:22:06 +11:00
Andrew Tridgell 59a56c9b46 Plane: enable Baro logging 2014-02-15 07:29:39 +11:00
Andrew Tridgell 566b0ccc61 Plane: call esimate_wind() 2014-02-15 05:48:24 +11:00
Andrew Tridgell d7839aa4ab Plane: removed duplicate log description 2014-02-15 05:48:24 +11:00
Andrew Tridgell 1001df0e56 Plane: removed extra log enum 2014-02-15 05:48:23 +11:00
Andrew Tridgell 35a9201c9a Plane: fixed comma 2014-02-15 05:48:23 +11:00
Andrew Tridgell a7faa58879 Plane: fixed up merge errors 2014-02-15 05:48:23 +11:00
Andrew Tridgell a551703877 Plane: fixed parameter build for NavEKF 2014-02-15 05:48:22 +11:00
Paul Riseborough 8c4b0b9be9 Plane : NavEKF Mavlink tunable parameter - first attempt 2014-02-15 05:48:22 +11:00
Paul Riseborough 24f8f02942 Plane : disable AHRS centrifugal corrections when disarmed 2014-02-15 05:48:20 +11:00
Andrew Tridgell bb4789a875 Plane: use common EKF logging 2014-02-15 05:48:16 +11:00
Andrew Tridgell 4646682a31 Plane: use common send_ahrs2() 2014-02-15 05:48:16 +11:00
Andrew Tridgell 57e0eb4db5 Plane: use a const reference for home 2014-02-15 05:48:15 +11:00
Andrew Tridgell 2817a11f23 Plane: added AHR2 and SIM logging 2014-02-15 05:48:14 +11:00
Andrew Tridgell 11337ab2df Plane: updates for AHRS holding home position 2014-02-15 05:29:47 +11:00
Andrew Tridgell df5195e2c9 Plane: change for new AHRS API 2014-02-15 05:29:47 +11:00
Andrew Tridgell e39247868c Plane: cleanup HIL defines 2014-02-15 05:29:46 +11:00
Andrew Tridgell 2cd6efa23e Plane: added DF logging of secondary AHRS solution 2014-02-15 05:29:45 +11:00
Andrew Tridgell 99cfaf6097 Plane: switched to AHRS2 message for reporting 2014-02-15 05:29:45 +11:00
Andrew Tridgell 9ac886f58d Plane: use AP_AHRS_NavEKF when available 2014-02-15 05:28:09 +11:00
Paul Riseborough e0e4b1aefa Plane : Updated NavEKF flash data logging 2014-02-15 05:28:09 +11:00
Paul Riseborough d6ead64083 Plane : Additional NavEKF flash logging 2014-02-15 05:28:08 +11:00
Andrew Tridgell 006b9da6be Plane: only include NavEKF on fast CPUs 2014-02-15 05:28:08 +11:00
Andrew Tridgell ce9047cec5 Plane: added dataflash logging of EKF data 2014-02-15 05:28:07 +11:00
Andrew Tridgell 1fbae4dd44 Plane: enable NavEKF logging in plane 2014-02-15 05:28:07 +11:00
Andrew Tridgell cd9027adfd Plane: added NavEKF object 2014-02-15 05:27:52 +11:00
Paul Riseborough fb1345dd99 Plane : add suport for NavEKF 2014-02-15 05:27:52 +11:00
Andrew Tridgell 7de8be1956 Plane: log power status on Pixhawk 2014-02-15 05:00:09 +11:00
Andrew Tridgell dfa95b3464 Plane: moved the always log flag to 1<<16
this prevent problems with transferring the bitmask as a float
2014-02-14 21:51:00 +11:00
Andrew Tridgell 043c80dbe6 Plane: use new board_voltage() method 2014-02-14 21:50:59 +11:00
Andrew Tridgell ae9201342a Plane: allow FLAP_IN_CHANNEL to control k_flap and k_flap_auto too 2014-02-06 14:09:49 +11:00
Andrew Tridgell c3b7e76c28 Plane: added flaperon support
this adds FLAPERON_OUTPUT and FLAP_IN_CHANNEL to allow both manual
and auto flap control for both normal flaps and flaperons
2014-02-06 12:38:59 +11:00
Andrew Tridgell 04f2c07b2b Plane: use new RC_Channels API 2014-02-06 10:17:16 +11:00
Andrew Tridgell e42a10a764 Plane: allow printing of GUIDED mode in logs 2014-02-02 14:04:36 +11:00
Andrew Tridgell 48577ffbc2 Plane: check the parameter table on startup 2014-01-31 13:07:52 +11:00
Andrew Tridgell f06152530c Plane: prepare for 2.78b release 2014-01-31 12:15:27 +11:00
Andrew Tridgell 6cabca690e Plane: fixed RSSI_RANGE enum
many thanks to Valince for spotting this
2014-01-31 12:14:18 +11:00
Andrew Tridgell 7009c4aead Plane: prepare for 2.78 release 2014-01-30 14:26:46 +11:00
Andrew Tridgell 3a986474e0 Plane: added RSSI_RANGE parameter 2014-01-30 11:29:35 +11:00
Andrew Tridgell 6b12f13d64 Plane: prepare 2.78beta2 2014-01-29 22:05:21 +11:00
Andrew Tridgell 906fc17905 Plane: added baro and airspeed logging
including raw temperature and pressure values
2014-01-28 10:35:59 +11:00
Andrew Tridgell 9f683e6b9b Plane: prepare 2.78beta1 2014-01-27 14:08:43 +11:00
Andrew Tridgell 369c130c2d Plane: consider GPS unhealthy if it doesn't have 3D lock 2014-01-27 09:02:22 +11:00
Andrew Tridgell 11ece65656 Plane: update docs for RSSI_PIN for pixhawk 2014-01-24 11:18:28 +11:00
Andrew Tridgell e5e04d65ee Plane: improve LOG_BITMASK docs 2014-01-24 10:00:23 +11:00
Andrew Tridgell c37a7cd9e1 Plane: update AP_Notify flags for arming state 2014-01-23 21:40:34 +11:00
Andrew Tridgell ab4a5d676e Plane: ready for 2.77 release 2014-01-20 19:41:19 +11:00
Andrew Tridgell c16e3a035f Plane: fixed disarmed throttle in HIL 2014-01-20 19:41:19 +11:00
Andrew Tridgell 776b999f43 Plane: fixed disarmed PWM output 2014-01-20 17:34:50 +11:00
Andrew Tridgell cdd36b2c41 Plane: use AP_ServoRelayEvents library 2014-01-20 17:06:29 +11:00
Andrew Tridgell 2045591bed Plane: fixed servo and relay repeat code 2014-01-20 17:06:29 +11:00
Andrew Tridgell e4e5c92453 Plane: fixed relay handling
the parameters were badly out of whack!
2014-01-20 17:06:29 +11:00
Andrew Tridgell d3adf4c32c Plane: enable AP_BoardConfig 2014-01-20 17:06:28 +11:00
Andrew Tridgell ada0dd5504 Plane: check both ground and airspeed in autocal test
when the airspeed ratio is far too low we were not raising it as the
airspeed was never getting above the minimum airspeed

Pair-Programmed-With: Jon Challinger
2014-01-17 10:29:28 +11:00
Andrew Tridgell 30a210cfa6 Plane: setup PWM to be used on throttle when safety is safe on PX4 2014-01-15 22:28:00 +11:00
Andrew Tridgell 3a5fb46dc2 Plane: fixed integer size problem on APM2 2014-01-14 21:27:39 +11:00
Andrew Tridgell 91cc08a3ef Plane: log PX4Firmware and NuttX git revisions in logs 2014-01-14 15:37:03 +11:00
Andrew Tridgell cf09fef1db Plane: prevent log corruption when new log started 2014-01-14 14:29:14 +11:00
Andrew Tridgell a15336079e Plane: start logging when first needed 2014-01-14 13:51:49 +11:00
Andrew Tridgell 8755747da0 Plane: only log when armed by default
use safety switch if arming not enabled
2014-01-14 13:07:43 +11:00
Andrew Tridgell 874110b29d Plane: make LOG_BITMASK 32 bits 2014-01-14 13:06:52 +11:00
Andrew Tridgell def782c441 Plane: use uppercase names on microSD card where possible 2014-01-14 12:46:26 +11:00
Don Gagne e68cf2d1c5 Plane: Fix parameter documentation
Fixes some problems with incorrect docs which would in turn generate
bad amp.pdef.xml files for ground stations.

merge with below
2014-01-09 14:02:21 +09:00
Andrew Tridgell 9df5887aab Plane: fixed redundent logging 2013-12-31 15:55:33 +11:00
Andrew Tridgell d9cb101a03 Plane: default LOG_BITMASK to 32767 on non-APM 2013-12-31 10:28:38 +11:00
Michael Day d4f42d41f7 Plane: removed some compile warnings from rally.pde 2013-12-31 09:48:24 +11:00
Michael Day c87d72353f Plane: Introducing FENCE_RETALT parameter. 2013-12-31 09:48:20 +11:00
Michael Day 87c60ee293 Plane: Doc. update for ALT_HOLD_RTL with Rally Points. 2013-12-31 09:48:16 +11:00
Andrew Tridgell f35cf2beba Plane: use file based logs in SITL 2013-12-29 07:14:31 +11:00
Andrew Tridgell 3486b933c0 Plane: use common send_meminfo() 2013-12-28 16:02:06 +11:00
Andrew Tridgell 72473e4317 Plane: use AP_HAL available_memory() call 2013-12-28 14:51:37 +11:00
Andrew Tridgell 6856cc6e4b Plane: break up GPS and logging, allow GPS update at 50Hz
this prevents mismatches in GPS message arrival and accel message
arrival from causing small DCM errors
2013-12-28 14:25:54 +11:00
Randy Mackay a1d5c0a02a Plane: replace APM with board in cli 2013-12-28 10:42:30 +09:00
Andrew Tridgell 7ffbed24cc Plane: initialise scheduler callback after logging
this could cause log corruption otherwise
2013-12-28 10:24:46 +11:00
Andrew Tridgell 43a56151d7 Plane: reset mission on disarm
this makes repeated missions easier
2013-12-20 12:04:23 +11:00
Andrew Tridgell 89366a1ee1 Plane: fixed ARMING_REQUIRED=2 on APM2 to disable rc output on throttle 2013-12-20 11:59:45 +11:00
Andrew Tridgell ce773f085a Plane: make the defaut for FS_GCS_ENABL clearer 2013-12-20 11:44:44 +11:00
Andrew Tridgell 263f3b116b Plane: added FS_GCS_ENABL==2 option
this allows GCS failsafe when the GCS isn't getting updates from the
aircraft
2013-12-20 11:39:00 +11:00
Andrew Tridgell a4af83d454 Plane: only allow right rudder for arming
copter users may try to use left rudder to ensure aircraft is
disarmed. Making left rudder arm could be dangerous
2013-12-20 09:43:04 +11:00
Andrew Tridgell 77c6e51887 Plane: allow throttle failsafe on no RC input
on PX4 we just stop getting input on loss of RC - we need to consider
this to be "throttle failsafe"
2013-12-20 09:43:04 +11:00
Andrew Tridgell 4f242aedec Plane: fixed a bug where mode would not revert on geo-fence disable
the mode would not revert if the switch was in position 0
2013-12-17 14:14:13 +11:00
Michael Day dcfed13c87 Plane: Fence breach now sends to correct return point in Guided Mode. 2013-12-17 14:14:13 +11:00
Andrew Tridgell ca67c24eef Plane: removed common functions 2013-12-17 12:00:46 +11:00
Andrew Tridgell d93b95186d Plane: prevent a build warning 2013-12-17 11:51:36 +11:00
Andrew Tridgell 8b7fe3cf50 Plane: changes for new DataFlash API 2013-12-17 11:51:36 +11:00
Andrew Tridgell e0b511e367 Plane: enable new log download functions 2013-12-17 11:51:35 +11:00
Andrew Tridgell 508817d617 Plane: moved ap_message into GCS.h 2013-12-17 11:51:35 +11:00
Andrew Tridgell 4bad2cfb3a Plane: use common GCS.h 2013-12-17 11:51:35 +11:00
Andrew Tridgell 622a2053ff Plane: fixed parameters typo 2013-12-11 21:37:01 +11:00
Andrew Tridgell 3508a14542 Plane: small arming tidyups 2013-12-11 17:29:26 +11:00
Andrew Tridgell b0236610b2 Plane: fixed arming bit in MAVLink heartbeat message 2013-12-11 17:29:26 +11:00
Andrew Tridgell 103da0c889 Plane: when no GPS lock always send GPS messages 2013-12-11 17:29:26 +11:00
Michael Day b0a0316dd6 Plane: Now using AP_Arming library. 2013-12-11 17:29:23 +11:00
Andrew Tridgell 6ed21c12db Plane: added logging of 2nd compass 2013-12-10 15:32:11 +11:00