Commit Graph

5185 Commits

Author SHA1 Message Date
Andrew Tridgell 54b852ebfe Copter: fixed var table loading for heli single parms
we were not loading parameters such as the swash angle
2017-03-15 11:31:45 +11:00
Andrew Tridgell dae1567d6c Copter: log home and origin on logging start 2017-03-14 10:51:15 +11:00
Randy Mackay 375f7b15ff Copter: 3.5-rc2 release notes 2017-03-13 12:25:07 +09:00
Randy Mackay 8140353c64 Copter: log event when primary GPS changes 2017-03-13 11:31:51 +11:00
Randy Mackay b30d743812 Copter: AP_Arming calls parent's gps checks
Allows removing some duplicate code
2017-03-13 11:31:51 +11:00
Peter Barker 1d70a337dd Copter: remove unused desired_climb_rate variable 2017-03-09 19:52:58 +11:00
Randy Mackay ca4cbaeb39 Copter: run rate controllers before AHRS/EKF update
This reduces lag between IMU updates and motor outputs by 0.6 milliseconds
2017-03-03 13:14:28 +11:00
Randy Mackay e8c5612587 Copter: fix reference to PosControl param descriptions
No functional change
2017-03-01 14:59:44 +09:00
Randy Mackay 627e3faf41 Copter: fix SYSID_ENFORCE parameter description 2017-02-28 15:06:51 +09:00
Andrew Tridgell 0d1bcd3b94 Copter: added automatic yaw to autotune position control 2017-02-27 19:34:44 +09:00
Andrew Tridgell fa119f8231 Copter: enable poshold in autotune only from LOITER or POSHOLD 2017-02-27 19:34:42 +09:00
Andrew Tridgell 37fca03db3 Copter: implement simple position hold during autotune
this holds position during tuning with low gain
2017-02-27 19:34:36 +09:00
Randy Mackay c100f53ee6 Copter: add upward distance to proximity logging 2017-02-27 15:18:24 +09:00
Randy Mackay 34726208b2 Copter: clarify CHX_OPT avoidance and adsb-avoidance 2017-02-27 15:18:23 +09:00
Randy Mackay 51c00f8144 Copter: use only downward facing rangefinder 2017-02-27 15:18:16 +09:00
Lucas De Marchi a589a84e32 ArduCopter: just call set_throttle_range()
Now set_throttle_range in AP_Motors does the right thing, calling out
the RCOutput method.
2017-02-26 13:38:24 +11:00
Jacob Walser 868be023ee Copter: Refactor fence.get_safe_alt() to fence.get_safe_alt_max() 2017-02-21 11:26:14 +11:00
Andrew Tridgell f1917dddd0 Copter: changes for AC_WPNav 2017-02-18 17:26:43 +11:00
Andrew Tridgell 92fdef5b97 Copter: changed for AP_AHRS_View on AC_AttitudeControl 2017-02-18 17:26:43 +11:00
Andrew Tridgell aad412eaef Copter: support tailsitter frame class 2017-02-18 17:26:43 +11:00
Andrew Tridgell 3cb88d0a23 Copter: added tailsitter frame support 2017-02-18 17:26:43 +11:00
Andrew Tridgell 7efca1881c Copter: fixed a problem with initial parameter fetch
if the GCS connects before the motors have been allocated then it will
get an incorrect parameter count from the MAVLink param protocol. We
need to prevent the PARAM_REQUEST_LIST message from being replied to
until motors are allocated which is done as part of init_ardupilot
2017-02-15 17:16:30 +10:00
Andrew Tridgell 6b6d03eb8d Copter: fixed upgrade of parameters
now that we dynamically allocate many key objects in copter we need to
move the parameter upgrade code to after when the objects are allocated
2017-02-15 15:02:06 +10:00
Andrew Tridgell d8972d5344 Copter: setup frame type parameter flags 2017-02-14 19:50:01 +11:00
Peter Barker 65a182a068 Copter: not in log download upon log erase
erase is a synchronous operation
2017-02-13 11:36:16 +11:00
Peter Barker 029aeeb4fd Copter: support for a GCS singleton 2017-02-13 09:32:01 +11:00
Peter Barker f49f153da0 Copter: rename gcs[] to gcs_chan[]
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
Randy Mackay d2cc340587 Copter: 3.4.5 release notes 2017-02-11 15:15:42 +09:00
Clément 3aa17d17eb Copter : set land_complete to false during guided takeoff (same fix as for auto takeoff bug) 2017-02-07 20:19:17 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 4161c34e61 Copter: rename MSG_RADIO_OUT to MSG_SERVO_OUTPUT_RAW to better describe what it is 2017-02-07 11:41:12 +11:00
Peter Barker b7f982d7ce Copter: support for arming and disarming using an auxsw 2017-02-06 16:48:50 +09:00
Andrew Tridgell 00711f5a98 Copter: fixed typo in param generation 2017-02-06 15:36:52 +11:00
Andrew Tridgell 79b23dff0e Copter: fixed parameter path 2017-02-06 15:12:32 +11:00
Michael Day 49e3ce8e75 Copter: Now recognizes DO_FENCE_ENABLE mission command. 2017-02-05 00:10:14 +00:00
Pierre Kancir 1455f8c513 Copter: correct advance failsafe 2017-01-31 11:22:54 +09:00
Randy Mackay d3d6099540 Copter: update 3.5-rc1 release notes 2017-01-28 23:01:10 +09:00
Randy Mackay 4f5ca37df4 Copter: 3.5-rc1 release notes 2017-01-28 17:08:03 +09:00
murata 8f926bd177 Copter: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
Peter Barker 4aaeb4bfed Copter: get mav heartbeats out when board detection fails 2017-01-27 13:48:23 +09:00
Randy Mackay 6726d94537 Copter: update notify during ESC calibration
The notify devices including the RGB were not being updated meaning the main LED was normally frozen or off during calibration.  The desired behaviour is that it flashes red, blue, yellow.
2017-01-27 12:14:56 +09:00
Randy Mackay a25f51c893 Copter: delay up to 2sec for first radio pulse
Pixracer boards can take 1 second (or possibly longer) to start reading RC input.  This ensure we see the user's high throttle to indicate the user wants to perform the ESC calibration
2017-01-27 12:14:56 +09:00
Michael du Breuil 0fec4af54b Copter: Support the SYS_STATUS_SENSOR_BATTERY bit 2017-01-25 09:26:19 +09:00
Randy Mackay 26919b4ab6 Copter: send flight mode string to Notify 2017-01-23 15:07:20 -08:00
Randy Mackay af514eb101 Copter: remove some comments 2017-01-23 15:07:20 -08:00
Dmitry Prokhorov 3e993f955e ArduCopter: Support for OLED display by Alexey Kozin 2017-01-23 15:07:20 -08:00
Peter Barker 01b1916de5 Copter: ensure logging is working as part of prearm 2017-01-20 17:03:45 +09:00
Peter Barker e7d3219a58 Copter: check all channels have been configured, not just throttle 2017-01-20 13:02:53 +09:00
Peter Barker ab13b3beaf Copter: make rc checks verbose on failure 2017-01-20 13:02:53 +09:00
Peter Barker 078866046a Copter: correct rc-arming checks concerning trims
Trims should always be between min and max
2017-01-20 13:02:53 +09:00
Andrew Tridgell 332820aa88 Copter: fixed load of var_info for attitude_control and motors
we need to pass the var_info for the specific class we are using, not
the parent class.

Fixes issue #5585

thanks to Julien for noticing!
2017-01-20 12:05:09 +11:00
Randy Mackay cb1f7ba4bb Copter: remove setting position control's altitude max
AC_Avoid now takes responsibility for enforcing the alt limit and accesses inertial nav's limit directly
2017-01-18 09:35:47 +09:00
Randy Mackay 62a4867cd4 Copter: use avoidance adjusted climb rate in all modes 2017-01-18 09:35:47 +09:00
Randy Mackay b15d341850 Copter: add avoidance adjusted climb rate 2017-01-18 09:35:47 +09:00
Randy Mackay ebbfa9391d Copter: remove comments from package place 2017-01-18 09:35:47 +09:00
Peter Barker cc86011d20 Copter: use abs() on integers; Location alts are in integer cm 2017-01-17 09:41:37 -08:00
Peter Barker 96d73affae Copter: fix float warning; get_velocity_z() returns float 2017-01-17 09:41:37 -08:00
Leonard Hall 36b6218e31 Copter: integrate attitude control's set-throttle-mix-manual 2017-01-17 14:19:16 +09:00
Randy Mackay becc56da0b Copter: AP_Arming internal references start with underscore 2017-01-17 11:45:08 +09:00
Randy Mackay f476c706f6 Copter: add override to AP_Arming_Copter::pre_arm_checks 2017-01-17 11:45:08 +09:00
Randy Mackay cc217550c0 Copter: rename arming_checks to AP_Arming 2017-01-17 11:45:08 +09:00
Randy Mackay a52db9f29d Copter: fix motors_checks to AP_Arming 2017-01-17 11:45:08 +09:00
Randy Mackay ee9588c674 Copter: fix proximity arming checks 2017-01-17 11:45:08 +09:00
Randy Mackay b89d3564c7 Copter: move set_pre_arm_check to arming_checks 2017-01-17 11:45:08 +09:00
Peter Barker 4ea6cf4ce3 Copter: transfer old ARMING_CHECK value to new location 2017-01-17 11:45:08 +09:00
Peter Barker ac980fdd47 Copter: use compass_checks from AP_Arming
User-visible changes:
 - checks will fail if calibration is in progress
 - PX4FMU_V1 will now have COMPASS_OFFSETS_MAX of 600, not 500
 - if the primary compass is not set to be used then compass checks will always pass
2017-01-17 11:45:08 +09:00
Peter Barker f3a31b988a Copter: use ins_checks from AP_Arming
Functionality changes:
 - gyros and accels only have to be consistent in last 10 seconds to pass
 - ins.use_accel() is honoured when checking for consistency
 - ins.use_gyro() is honoured when checking for consistency
 - threshold is trippled rather than doubled for accel cal checks
 - checks are reordered
2017-01-17 11:45:08 +09:00
Peter Barker bd6ffc025e Copter: start conversion to AP_Arming_Copter 2017-01-17 11:45:08 +09:00
Randy Mackay ae18c25070 Copter: add AP_Arming to build 2017-01-17 11:45:08 +09:00
Andrew Tridgell 1297a7dedb Copter: convert the rest of motors class for tricopter 2017-01-12 17:39:37 +11:00
Andrew Tridgell 7aee3500e1 Copter: added conversion of tricopter tail servo parameters 2017-01-12 17:39:37 +11:00
Andrew Tridgell a3220944d8 Copter: make conversion tables constant 2017-01-12 17:39:37 +11:00
Andrew Tridgell 6a12ed0d65 Copter: upgrade heli servo parameters 2017-01-12 17:39:37 +11:00
Andrew Tridgell bf889e01e1 Copter: load objects from storage after allocation 2017-01-12 17:39:37 +11:00
Andrew Tridgell 3fe1a69a32 Copter: always allocate a motors backend
this allows autotest to run, and gives a less confusing error to users
when no FRAME_CLASS error is selected
2017-01-12 17:39:37 +11:00
Andrew Tridgell c0c25e0588 Copter: fixed parameter doc paths 2017-01-12 17:39:37 +11:00
Andrew Tridgell 8dcde8ee92 Copter: make binary names arducopter and arducopter-heli 2017-01-12 17:39:37 +11:00
Andrew Tridgell e85df47b06 Copter: fixed parameter handling for pointer objects
fixed loading of default files and use of POINTER flag on object
groups
2017-01-12 17:39:37 +11:00
Andrew Tridgell 556cda13e1 Copter: reduced copter frame build 2017-01-12 17:39:37 +11:00
Andrew Tridgell 4a4fc8ab06 Copter: adjust for change to AC_PID 2017-01-12 17:39:37 +11:00
Andrew Tridgell 0f6d0c5ba9 Copter: combined tri, single, coax and multicopter into a single build
this allows copter to be just 2 builds, one for heli, and one for
everything else
2017-01-12 17:39:37 +11:00
Andrew Tridgell 3c1517f583 Copter: added automatic SRV_Channel parameter upgrade 2017-01-12 17:39:37 +11:00
Andrew Tridgell 5a87ae3f01 Copter: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
Francisco Ferreira 11b635df12
Copter: correct limit status to fence status 2017-01-12 02:00:51 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas 712fbfe84b Copter: Update descriptions of stream rate parameters 2017-01-12 01:47:12 +00:00
Randy Mackay b1e494a209 Copter: return MAV_TYPE as quadcopter by default
This allows the GCSs to know that the firmware is for a multicopter
2017-01-12 09:27:14 +09:00
Randy Mackay 20ca021cab Copter: pass distance-sensor messages to AP_Proximity 2017-01-11 21:48:23 +09:00
Randy Mackay 742cdf6b13 Copter: fix arming while armed bug
If a mavlink command was sent to arm the vehicle while it was already armed, the in_arm_motors boolean was left as true meaning the vehicle could never be armed again using a mavlink message.  This resolves issue #5546.
2017-01-11 21:38:22 +09:00
Randy Mackay bdbb07a3b1 Copter: remove version from Copter.cpp
Also added wiki page URL
2017-01-11 08:46:43 +09:00
murata e65887c393
Copter: Change sprintf method to secure snprintf method. 2017-01-09 16:05:56 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas 8419045aea Spell in comments 2017-01-06 10:57:39 -08:00
Randy Mackay 2416e66103 Copter: 3.4.4 release notes 2017-01-06 14:53:46 +09:00
Randy Mackay 6b4acebd26 Copter: bigger buf when sending frame string to frsky telem 2017-01-05 13:45:53 +09:00
Luis Vale Gonçalves b9e83755f3 Copter: Notify GCS that Flight mode change failed
Copter: Notify GCS that Flight mode change has failed
2017-01-05 02:16:32 +00:00
Randy Mackay e32ddaa7fa Copter: reorder beacon and proximity declaration
resolves compiler warning
2017-01-04 19:58:53 +09:00
Peter Barker a233024e05 Copter: fix compilation when fence andd proximity are disabled
This adds AC_AVOID_ENABLED; avoidance must be disabled if either
of fence or proximity are disabled.

Parameter definitions have been reordered to avoid compiler warnings;
this make sthe numbering non-linear
2017-01-03 10:44:03 +09:00
Peter Barker d3e331e1f2 Copter: correct compilation when rally disabled 2017-01-03 10:24:56 +09:00
Peter Barker cf4be25d61 Copter: correct compilation when camera disabled 2017-01-03 10:24:35 +09:00
Peter Barker 4ef927ebea Copter: correct compilation when AFS enabled (using make) 2017-01-03 10:23:50 +09:00
Peter Barker 8033e0c315 Copter: fix compilation when gripper disabled 2017-01-02 15:59:30 +09:00
Peter Barker 990d5fd0e5 Copter: fix compilation when logging disabled 2017-01-01 18:22:53 -08:00
Randy Mackay d011783d76 Copter: fix FRAME_TYPE param description 2016-12-31 10:55:23 +09:00
Randy Mackay e31d6d051d Copter: get_frame_mav_type switch fix
This returns generic as the mavtype and avoids warnings of unreachable code
Thanks to muramura for suggesting this
2016-12-31 10:55:23 +09:00
Randy Mackay 12d024e0c6 Copter: rename FRAME to FRAME_TYPE
This unifies the plane and copter parameter names
2016-12-31 10:55:23 +09:00
Randy Mackay 01bcf5e528 Copter: add arming checks for motor setup 2016-12-31 10:55:23 +09:00
Randy Mackay 217757fdc8 Copter: default FRAME_CLASS 2016-12-31 10:55:23 +09:00
Randy Mackay 0ac00dbfd6 Copter: add FRAME_CLASS parameter 2016-12-31 10:55:23 +09:00
Peter Barker 3551609a21 Copter: payload place requires 30% throttle reduction to release 2016-12-24 11:53:19 +09:00
Peter Barker c191a44b27 Copter: payload place skips releasing states if gripper not valid 2016-12-24 11:50:01 +09:00
murata f747716172 Copter: Changed if statements to switch statement.
Copter: Correct the processing in Guided mode.

Copter: Insert white space.
2016-12-24 11:24:35 +09:00
Randy Mackay b845668f23 Copter: 3.4.4-rc1 release notes 2016-12-22 02:26:11 +09:00
Randy Mackay dbbf6cae5c Copter: arming check ignores proximity if avoidance disabled 2016-12-20 19:48:09 +09:00
Randy Mackay 38478638de Copter: aux switch for enable/disable proximity based avoidance 2016-12-20 19:48:02 +09:00
Randy Mackay 5f0a4c2097 Copter: integrate non-GPS avoidance into althold 2016-12-20 19:48:00 +09:00
Randy Mackay 377a747065 Copter: minor format fix for fall through for payload-place 2016-12-19 17:01:19 +09:00
Randy Mackay 2371b05696 Copter: init avoid-adsb and prec-loiter enabled from switch positions
Without this there could be a mismatch between the switch position and whether the feature is enabled/disabled
2016-12-19 17:01:16 +09:00
Randy Mackay 2365036e5c Copter: move #if within case statement in switches.cpp
This removes some compile warnings when features are disabled
2016-12-19 17:01:12 +09:00
Randy Mackay 70feff487e Copter: format fixes to switches.cpp
No functional change
2016-12-19 17:01:09 +09:00
Randy Mackay a43229de0f Copter: fix z-axis accel parameter description 2016-12-19 17:01:06 +09:00
priseborough 38ad778ff1 make.inc: Add EKF3 and remove EKF1 library from make.inc files 2016-12-19 08:07:10 +11:00
Andrew Tridgell c3b9dbf5c8 ArduCopter: Add EKF3 and remove EKF1 2016-12-19 08:07:09 +11:00
Randy Mackay c846cc249d Copter: fix heli pos-hold run-up-complete issue 2016-12-15 19:00:21 +09:00
Randy Mackay a2474667a8 Copter: minor formatting fix
no functional change
2016-12-14 13:22:24 +09:00
Randy Mackay 5f60961866 Copter: fix suppressing comment for case fall through
eclipse stops complaining if no-break is used in place of fall-through
2016-12-14 13:22:04 +09:00
Randy Mackay 0ab0658849 Copter: 3.4.3. release notes get compass cal fix 2016-12-09 11:39:05 +09:00
Randy Mackay 3d3fb6e74b Copter: fix version in release notes 2016-12-09 08:32:12 +09:00
Randy Mackay 3c993a76e2 Copter: 3.4.3 release notes 2016-12-09 07:57:43 +09:00
Randy Mackay c1d1ac5c6f Copter: pass HIL_GPS to gps driver 2016-12-08 15:52:26 +09:00
Pierre Kancir 5900653b7f Copter: Commands_logic fix comparing floating point with == 2016-12-06 09:31:21 -08:00
Pierre Kancir 8d4bad0742 Copter: Commands_logic fix implicit cast to double 2016-12-06 09:31:21 -08:00
Pierre Kancir f2ea388a69 Copter: control_auto remove misplaced parenthesis 2016-12-05 10:59:45 -08:00
Pierre Kancir 3fc17a5ed5 Copter: avoid must be initialized after fence as it use it 2016-12-05 10:59:45 -08:00
Peter Barker 556eb88fe5 Copter: fix compile when precland is not selected
Fixes #5327
2016-12-05 20:03:00 +09:00
Michael du Breuil 8c077a357c Copter: add compass cal capability bit 2016-12-04 19:17:01 -08:00
Peter Barker 4aab4f72b6 Copter: move to releasing payload if we are landed 2016-12-02 13:25:34 +11:00
Peter Barker 289aba4350 Copter: support for NAV_CMD_PLACE 2016-12-02 12:52:53 +11:00
Randy Mackay 128b4562a5 Copter: 3.4.3-rc1 release notes 2016-12-01 19:40:21 +09:00
Randy Mackay 9426b0b366 Copter: set land_complete to false during auto takeoff
This resolves an issue in very high powered copters that could fly a mission while "landed" which could lead to a crash during the final stage of RTL
2016-12-01 12:10:32 +09:00
Randy Mackay 5135a11fbc Copter: protect against arming while already armed
Previously it was possible to arm the vehicle (from the GCS) even thought the vehicle was already armed which would lead to the motors stopping for 2 seconds
2016-12-01 10:24:53 +09:00
Randy Mackay 74c9c4aa9d Copter: add beacon data flash logging
Added to Copter vehicle because currently only used by Copter
2016-11-30 17:56:59 +09:00
Randy Mackay f2a6a4f4f9 Copter: update beacon updates to 400hz 2016-11-30 17:56:58 +09:00
priseborough 7a6e30e7b5 Copter: remove call to EKF1 logging 2016-11-30 17:56:57 +09:00
priseborough 3847975844 Copter: give the AHRS access to the range beacon sensor 2016-11-30 17:56:56 +09:00
Randy Mackay 21c7ea1df7 Copter: integrate AP_Beacon 2016-11-30 17:56:55 +09:00
Randy Mackay 8ab5124489 Copter: add AP_Beacon to build 2016-11-30 17:56:54 +09:00
Peter Barker 7069730d5f Copter: do not reset LOG_BITMASK when no CardInserted
This really just confuses everyone
2016-11-29 15:14:09 -08:00
Peter Barker f9802204df Copter: inform dataflash of vehicle arm state 2016-11-28 09:42:09 -08:00
Andrew Tridgell bcea3ac8d4 Copter: handle rangefinder glitches in alt tracking
this handles glitches from the rangefinder when tracking the
ground. It requires 3 readings in a row to settle on a new target
altitude

thanks to discussions with Leonard and Randy
2016-11-28 17:36:01 +11:00
Randy Mackay 115bc44d3f Copter: log proximity sensors closest object 2016-11-27 15:05:47 +09:00
Randy Mackay 7485de3498 Copter: add send_proximity to send distances to GCS 2016-11-27 15:05:46 +09:00
Randy Mackay 218c8b2d16 Copter: proximity pre-arm check displays closet object 2016-11-27 15:05:44 +09:00
murata f7273d0e93 Copter: Change from printf statement to print, println statement. 2016-11-26 00:02:11 +00:00
Andrew Tridgell 2ed32a3ac0 Copter: added raw RFND logging 2016-11-21 10:30:12 +11:00
Peter Barker e72f5a6240 ArduCopter: enable/disable precision loiter on a switch
A switch MUST be assigned for precision loiter to be enabled
2016-11-18 09:41:56 +09:00
Peter Barker 2fd6be8ccb ArduCopter: neaten reading of aux switches 2016-11-18 09:41:56 +09:00
Peter Barker 9e4628af58 Copter: precision loiter 2016-11-18 09:41:56 +09:00
Peter Barker b9808662b8 Copter: remove dead code 2016-11-18 09:41:56 +09:00
Peter Barker 469f0f0bf0 Copter: remove incorrect comment from PRECISION_LANDING block 2016-11-18 09:41:56 +09:00
Randy Mackay 7f6ecfca3d Copter: 3.4.2 release notes 2016-11-16 09:37:21 +09:00
Francisco Ferreira 84436ff5ae Copter: sipport MAV_CMD_ACCELCAL_VEHICLE_POS 2016-11-15 11:42:54 -08:00
Andrew Tridgell df3e434607 Copter: use handle_common_message() 2016-11-09 17:08:09 +11:00
Florent Martel 8761ecca6c Copter: move AP_Frsky_Telem for waf to ardupilotwaf 2016-11-08 07:42:39 +11:00
Randy Mackay ae8aea482f Copter: 3.4.2-rc2 release notes 2016-11-07 13:37:13 +09:00
Randy Mackay 69fd0939d9 Copter: 3.4.2-rc1 release notes 2016-11-07 13:37:13 +09:00
Randy Mackay b87ad8378b Copter: ACRO_Y_EXPO default to 0
This value affects yaw in all flight modes.  Leonard is planning to change the name to make that more clear.
2016-11-07 10:34:32 +09:00
Randy Mackay 93b88a68a0 Copter: only log proximity if sensor is enabled 2016-11-07 09:36:53 +09:00
floaledm 53fcbcb6c3 Copter: send ahrs groundspeed estimate instead of GPS groundspeed in VFR_HUD message 2016-11-07 09:14:28 +11:00
Peter Barker 236b8ab6b7 Copter: make EPM a subclass of AP_Gripper_Backend 2016-11-05 10:20:39 +09:00
Peter Barker 920868145c Copter: support for AP_Gripper 2016-11-05 10:20:33 +09:00
murata 1df8acf5cd Copter: remove intermediate variable from throw mode 2016-11-03 10:37:27 +09:00
Randy Mackay bf0e7fb3a9 Copter: add compass health to arming check 2016-11-01 18:00:18 +09:00
Randy Mackay 63771707fb Copter: 3.4.1 release notes 2016-11-01 11:30:22 +09:00
Randy Mackay 594bca2ccf Copter: 3.4 release notes 2016-10-31 12:18:58 +09:00
floaledm aa8cae82b0 Copter: redo of commit b24d850695 2016-10-30 11:46:39 -02:00
Peter Barker d877a00825 Copter: call run rather than enable for sprayer 2016-10-29 15:02:54 +09:00
Peter Barker d2b7749af3 Copter: AP_Stats flighttime 2016-10-29 14:53:25 +09:00
Peter Barker 1bb6350a67 Copter: periodically call stats update 2016-10-29 14:53:25 +09:00
Peter Barker df07cb525a Copter: use AP_Stats to store statistics about vehicle 2016-10-29 14:53:25 +09:00
Randy Mackay be15fe4100 Copter: version to 3.5-dev 2016-10-29 14:33:44 +09:00
murata 965a6a5719 Copter: To nullptr from NULL. 2016-10-28 10:53:31 -07:00
Andrew Tridgell 1b46a71596 Copter: also update sensor status before mavlink send
this removes the 1 second lag in updates when using the one second
loop
2016-10-28 10:05:40 +11:00
floaledm 34718b130a Copter: update sensor status error flags independently of sending a sys_status message
Without this, there is no update to the sensor status flags in the Frsky
lib unless there's an active Mavlink connection configured to send
extended_status1
2016-10-28 10:03:38 +11:00
Andrew Tridgell e8b9c815fc Copter: updates for EKF API changes 2016-10-27 17:09:06 +11:00
priseborough 209e364190 Copter: Add body position offset to optical flow interface 2016-10-27 14:54:42 +11:00
Michael du Breuil 790ddeb04e Copter: Use the compass calibrator autoreboot behaviour
(fixes a chance of not saving the second compass)
2016-10-27 14:04:33 +11:00
Leonard Hall 0523570c5f Copter: reduce dead zone for roll, pitch and yaw input 2016-10-26 21:00:32 +09:00
Leonard Hall 53486a5725 Copter: increase Autotune test time out for large copters 2016-10-26 21:00:23 +09:00
Leonard Hall 0a6714f4ae Copter: rename variable ROLL_PITCH_YAW_INPUT_MAX
No functional change
2016-10-26 20:59:43 +09:00
Leonard Hall 2698f14d39 Copter: apply yaw expo to all modes 2016-10-26 20:59:33 +09:00
Randy Mackay bc0965bb08 Copter: 3.4-rc7 release notes 2016-10-25 19:34:58 +09:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Francisco Ferreira 1e2e24eeac Copter: fix wrong range in Throw mode
Fixes #5038
2016-10-23 11:56:57 +09:00
Randy Mackay 1f160f2903 Copter: minor comment update
No functional change
2016-10-22 13:31:16 +09:00
Andrew Tridgell 9205416695 Copter: setup default safety mask based on motor mask 2016-10-21 11:53:59 +11:00
Randy Mackay 83b8208b8b Copter: fix PRX_ parameters duplicate underscore in param name 2016-10-19 17:24:43 +09:00
Andrew Tridgell c01a7718c1 Copter: fixed startup order of setting mavlink system ID 2016-10-17 09:19:08 +11:00
Andrew Tridgell 57830784e2 Copter: use handle_rc_bind 2016-10-15 21:42:38 +11:00
Andrew Tridgell 5a9276a5c4 Copter: added SYSID_ENFORCE parameter
allows enforcement of SYSID_MYGCS
2016-10-15 17:14:19 +11:00
Randy Mackay cb977bca6f Copter: 3.4-rc6 release notes 2016-10-15 12:27:04 +09:00
Randy Mackay 5894a54a16 Copter: althold uses current alt target if active
Previously we always reset the altitude target to the current altitude but this causes a jump if the vehicle is already in an alt-hold flight mode but has an altitude error
2016-10-15 11:29:10 +09:00
Leonard Hall fec24437f2 Copter: load accel throttle I term from attitude controller input
Previously we loaded up the I term from the pilot's input but a more reliable method is to get what was passed into the attitude controller.  In particular the addition of the acro-thr-mid parameter means the pilot's input must be interpreted differently for different flight modes.
2016-10-15 11:27:53 +09:00
Randy Mackay a124001b8b Copter: get_pilot_desired_throttle gets thr_mid argument default 2016-10-15 11:27:53 +09:00
Leonard Hall 5c47f3f9e5 Copter: add acro throttle and yaw expo and smoother manual pilot throttle 2016-10-15 11:27:53 +09:00
Randy Mackay 0aab175051 Copter: move proximity to g2 2016-10-14 14:02:29 +09:00
Randy Mackay fa36b563bc Copter: add advanced failsafe enable to APM_Config
No functional change
2016-10-14 14:00:59 +09:00
murata f705bd0d83 Copter: reduce intermediate storage of arming_check results 2016-10-14 11:39:18 +09:00
Jonathan Challinger 7cb9ad6e2b Copter: descend normally from 35cm 2016-10-14 10:46:11 +09:00
Jonathan Challinger f2ef8eec8c Copter: use velocity output from AC_PrecLand 2016-10-14 10:46:08 +09:00
Randy Mackay ccc99c772f Copter: remove union from aux_con for switch state 2016-10-14 10:31:05 +09:00
murata b23823a934 Copter: delete unused variable from aux switch structure 2016-10-14 10:30:41 +09:00
Andrew Tridgell ebbcabcb5f Copter: fixed comment 2016-10-14 11:40:09 +11:00
Randy Mackay 89c660eab5 Copter: add pre-arm check for proximity sensor 2016-10-13 20:21:07 +09:00
Randy Mackay 1665f4d416 Copter: report altitude and position control of new modes in sys-status message 2016-10-13 20:21:07 +09:00
Randy Mackay 4afa49eebe Copter: report proximity health in system-status 2016-10-13 20:21:07 +09:00
Randy Mackay a07ecfe2b3 Copter: log proximity sensor at 10hz
This is current in the Copter vehicle code but we can move to the dataflash library when other vehicles start using this type of sensor.  Until then adding it to common will just increase the dependencies unnecessarily for other vehicles.
2016-10-13 20:21:07 +09:00
Randy Mackay bba7369e9a Copter: pass AP_Proximity to AC_Avoid 2016-10-13 20:21:07 +09:00
Randy Mackay fcc2a1b378 Copter: integrate AP_Proximity into main vehicle 2016-10-13 20:21:07 +09:00
Randy Mackay 5f749a0597 Copter: add AP_Proximity to build 2016-10-13 20:21:07 +09:00
Andrew Tridgell 652b6b7564 Copter: deprecate RC_CHANNELS_RAW 2016-10-13 21:24:02 +11:00
Randy Mackay 26c3295042 Copter: ignore first ekf core switch
The ekf core is initialised to -1 but after initialisation changes to zero.  Ignore this first change.
2016-10-13 15:20:16 +09:00
murata f3a035694a Copter: fix ekf check to always call mode_requires_gps 2016-10-12 10:16:55 +09:00
Michael du Breuil ea45e5e6f1 Copter: Support GPS_RTCM_DATA 2016-10-11 11:00:36 +11:00
Randy Mackay 263f685683 Copter: ekf failsafe can trigger in LAND
Thanks to John Ingersoll for the report and detailed fix
Resolves issue #4827
2016-10-10 17:36:36 +09:00
Randy Mackay d74ae535d1 Copter: log EKF lane switch 2016-10-10 16:40:08 +09:00
Randy Mackay 35864c6226 Copter: move check_ekf_reset to ekf_check.cpp
No functional change
2016-10-10 16:40:08 +09:00
murata f135ca5ae7 Copter: reduce repeated string constants 2016-10-10 12:17:12 +09:00
Randy Mackay 3b6e56d1a0 Copter: minor formatting fixes
No functional change
2016-10-10 12:11:14 +09:00
murata 61fa73f25d Copter: remove return after the Switch statement 2016-10-10 12:07:24 +09:00
Randy Mackay 337461c16c Copter: pre-arm check of GPS configuration 2016-10-10 10:52:54 +09:00
murata 57c61ace62 Copter: To remove a break after the return statement. 2016-10-08 13:55:18 -03:00
murata 7148cc6239 Copter: Return value is changed to Enum Value. 2016-10-05 08:25:15 -03:00
murata 60137e0f0b Copter: replace if statement with switch statement 2016-10-05 16:32:57 +09:00
Jonathan Challinger a393bd26d7 Copter: add stick gesture to begin compass calibration 2016-10-05 16:29:02 +09:00
Lucas De Marchi b24d850695 ArduCopter: Fix use of logical op instead of bitwise op
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
     uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
                                     ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Pierre Kancir 6f79a8c37c Arducopter: simply invalid cmd msg 2016-09-27 07:45:48 -07:00
Pierre Kancir 94e42e870e ArduCopter: uniformize verify_command
Add better gcs message,
Add all handle message,
Reformate comments,

Fix do_roi comment
2016-09-27 07:45:48 -07:00
Tom Pittenger 748beb094d Copter: log to dataflash statustext messages from my_gcs 2016-09-26 00:13:30 -07:00
Randy Mackay 7091daa1cf Copter: remove out of date comment regarding autotune
no functional change
2016-09-23 20:48:03 +09:00
Peter Barker b81074d83a Copter: simplify auxsw duplicates check 2016-09-23 18:12:19 +09:00
floaledm 5910c94b65 Copter: change sensor health check to prevent false positive 2016-09-22 13:56:49 -05:00
John deVere d89b82b69f Copter: fixed parameter description typos 2016-09-14 14:05:47 -07:00
Randy Mackay 9b8b45b218 Copter: 3.4-rc5 release notes 2016-09-14 13:04:39 +09:00
Randy Mackay 9b1b18b15b Copter: add sprayer to aux switch options 2016-09-13 17:34:15 +09:00
Randy Mackay f37c17bd80 Copter: include spray in build by default 2016-09-13 15:16:13 +09:00
Randy Mackay a8f0291711 Copter: parameter conversion only for matrix multicopters
Single, Coax and Tri copter rate parameter conversions were incorrect
2016-09-13 09:44:38 +09:00
Andrew Tridgell d0dd10aeea Copter: added DEV_OPTIONS parameter
this is for little used options to allow standard firmware builds to
enable those options for development purposes

First option is for MAVLink based ADSB avoidance
2016-09-12 16:24:34 +10:00
Randy Mackay f22f10460a Copter: 3.4-rc4 release notes 2016-09-06 11:18:07 +09:00
floaledm 85a3fda879 Copter: removed reliance on home_distance and home_bearing which are only in copter 2016-09-06 11:42:33 +10:00
Leonard Hall 1f2d17e8e7 Copter: increase chance that parachute will deploy
Previously a single moment where the vehicle was within 30deg of the target could cause the parachute release counter to reset to zero.  This change makes the parachute release if it is spending at least half it's time with more than a 30degree angle error.
2016-09-06 09:43:31 +09:00
Michael du Breuil bec4bfa2ba Copter: Return RESULT_FAILED for GET_CMD_HOME if home is unset 2016-09-03 16:54:16 +09:00
Randy Mackay 4832ba4bf0 Copter: call attitude control parameter check 2016-09-02 09:27:17 +09:00