Commit Graph

47 Commits

Author SHA1 Message Date
Andrew Tridgell 554de1f2d7 Copter: added channel objects named after input function
this follows the pattern used in plane and rover
2015-05-25 22:13:23 +09:00
Robert Lefebvre 8610da7fbc Copter: autopilot modes to check for motor interlock status 2015-05-01 14:30:33 +09:00
Randy Mackay 5e359c977f Copter: replace range finder health with status 2015-04-24 10:57:30 +09:00
Jonathan Challinger 91a03ae0e7 Copter: add PILOT_THR_FILT and call set_throttle_out functions with that value 2015-04-16 21:00:11 +09:00
Jonathan Challinger b27b9dd86e Copter: use new throttle interface 2015-04-16 20:59:48 +09:00
Jonathan Challinger ecefe78417 Copter: interpret input in stabilize as a tilt vector 2015-03-11 22:24:42 +09:00
Randy Mackay 77d8f88e45 Copter: fence, rtl, land use alt-above-home 2015-02-12 15:08:00 +09:00
Randy Mackay 199dc3454d Copter: replace GPS_ok with position_ok
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
2015-01-22 14:39:45 +09:00
Randy Mackay 1c25c00f5b Copter: move land_detector to separate file 2015-01-14 16:08:55 +09:00
Jonathan Challinger 36410a5131 Copter: clean up land detector and modify to use desired velocity 2015-01-14 16:08:50 +09:00
Randy Mackay 05fedbf98f Copter: minor formatting fixes 2014-12-18 16:38:34 +09:00
Jonathan Challinger 91bff63267 Copter: Fix LAND overshoot issue 2014-12-18 16:38:31 +09:00
Randy Mackay 562f3e7382 Copter: set notify event when failsafe changes flight mode 2014-12-15 14:10:19 +09:00
priseborough 963cc4d60a Copter: Add velocity gain scaler to interfaces
Allows nav gain to be scaled to compensate for optical flow noise
2014-12-06 18:16:50 +11:00
priseborough 9844dacf40 Copter: Add EKF ground speed limit to loiter speed control
This is required to prevent the speed controller saturating the optical flow sensor during low altitude flying.
2014-12-06 18:16:50 +11:00
Jonathan Challinger c7a38c4350 Copter: use force_descend option on auto landings 2014-11-13 18:40:42 -08:00
Randy Mackay f6ff1742d5 Copter: landing detector checks baro climb rate
Barometer climb rate must be -150cm/s ~ +150cm/s
This threshold is generous because we already use the inertial
navigation climb rate so this is just to catch cases where inertial nav
is very incorrect in it's climbrate estimates
2014-10-22 17:29:14 +09:00
Jonathan Challinger 8e3d163c3d Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero 2014-10-08 20:54:24 +09:00
Randy Mackay 7ced9b1bd3 TradHeli: remove overall throttle level from landing check 2014-10-02 16:10:44 +09:00
Randy Mackay 1c11a91ec2 Copter: rename land_maybe_complete function 2014-09-19 16:43:17 +09:00
Randy Mackay b9977a1115 Copter: add land_complete_maybe flag 2014-09-19 16:43:15 +09:00
Randy Mackay 6951a20fb0 Copter: soften loiter target when maybe landed
Applies to auto's land, land, loiter, pos hold and rtl flight modes
2014-09-19 16:43:12 +09:00
Jonathan Challinger 8ca4795ffb Copter: Log NTUN while in LAND mode with GPS 2014-09-16 10:19:33 +09:00
Randy Mackay 28f31166b9 Copter: land check gets overall throttle and rotation rate check
add check that overall throttle level is below the non-takeoff throttle
instead of just checking that it's motors have hit their lower limits
because low limits can also be caused by high yaw rotation requests.
Absolute climb rate requirement reduced to 30cm/s
2014-09-04 15:21:51 +09:00
Randy Mackay 63d0cddfa4 Copter: make landing detector more strict
Made more strict by requiring 50 consecutive iterations where the climb
rate is below +- 40cm/s.  Previously it was 50 cumulative.

Removed check of failsafe.radio when clearing the land flag because it
could result in the vehicle taking off if the user picked it up.
2014-08-25 21:12:05 +09:00
Randy Mackay 279aff87f2 Copter: bug fix to land-detector
vehicle should become un-landed only when throttle out is above the
get-non-throttle-takeoff value
2014-08-04 16:53:39 +09:00
Randy Mackay 11678ba936 Copter: remain landed until throttle output above 25 percent 2014-07-18 11:41:46 +09:00
Andrew Tridgell 6416a4d0e6 Copter: fixed apm1-hil build 2014-07-08 15:41:39 +10:00
Andrew Tridgell a4b9b989b7 Copter: convert to new AP_RangeFinder API 2014-07-08 15:08:18 +10:00
Jonathan Challinger 09a01a4668 Copter: Wait 4 seconds before beginning to land during failsafes 2014-07-06 20:25:04 +09:00
Jonathan Challinger 5b36e65cb9 Copter: Add parameter LAND_REPOSITION to enable/disable user input during auto-mode landings and descents 2014-07-06 19:20:25 +09:00
Randy Mackay 08801eebf2 Copter: integrate AttControl's set_yaw_target_to_current_heading 2014-06-10 20:02:51 +09:00
Randy Mackay 77d5d682c1 Copter: integrate init_targets rename to relax_bf_rate_controller
Also remove unnecessary init_targets from flight mode init functions.
2014-06-10 20:02:29 +09:00
Ju1ien abd1370b2c Copter: flag stays landed unless pilot raises throttle 2014-06-06 18:42:30 +09:00
Randy Mackay d5a0ca4f3c Copter: integrate init_loiter_target name change 2014-05-19 12:27:29 +09:00
Randy Mackay a3036fc443 Copter: init pos_control z-axis after setting speed and accel 2014-04-30 21:46:17 +09:00
Randy Mackay 7d7a2aced7 Copter: init vert speed and accel for each flight mode
This resolves issue #1021 in which LAND mode could descend at the
PILOT_VELZ rate instead of the WPNAV_SPEED_DN

Pilot defined acceleration is used for AltHold, AutoTune , Circle,
Hybrid, Loiter, OF_Loiter and Sport flight modes
Waypoint Nav (ie. AutoPilot) acceleration is used for Auto, Land, RTL
2014-04-30 21:46:10 +09:00
Randy Mackay 5fe86a657e Copter: land_do_not_use_GPS has no return value 2014-04-27 15:41:41 +09:00
Randy Mackay 4686eef266 Copter: GPS failsafe ensures LAND is pilot-controlled
This resolves issue #880 in which if a GPS failsafe occurred while the
vehicle was already in LAND mode, the LAND would continue to be GPS
controlled LAND instead of pilot-controlled LAND
2014-04-27 15:11:47 +09:00
Randy Mackay 3a934357e9 Copter: remove unused reset_land_detector 2014-03-04 22:23:55 +09:00
Randy Mackay e89600afe3 Copter: integrate smoothing gain into flight modes 2014-03-04 22:23:52 +09:00
Randy Mackay b259510095 Copter: init roll/pitch input filters 2014-02-16 13:35:30 +11:00
Randy Mackay 3ccd1ad170 Copter: integrate AttControl method name changes 2014-02-15 06:09:08 +11:00
Randy Mackay 2c1ec9d0c0 Copter: remove control_roll, pitch, yaw from control files 2014-02-15 05:27:47 +11:00
Randy Mackay bd88ed8a53 Copter: LAND at stopping point instead of curr pos 2014-02-15 05:27:39 +11:00
Randy Mackay 6ba91369ff Copter: split control_land into gps and non-gps 2014-02-15 05:27:38 +11:00
Randy Mackay e27f4c1c13 Copter: split control_stabilize into land, rtl, loiter 2014-02-15 05:27:38 +11:00