Ardupilot2/ArduCopter
Randy Mackay 57977e2d76 Copter: ensure RTL to rally point does not breach the altitude fence
Previously we added the rally-point altitude to the calculated return altitude on the final line of this function meaning the fence's altitude check was not performed on the final value.  This change adds the rally-point altitude as the first step so it is included before the fence altitude check.
This change also converts the return alt to an alt-above-home so that it can correctly be compared to the fence (previously a terrain-altitude might have been compared to an alt-above home)
2016-08-06 14:01:31 +09:00
..
.gitignore Improvements to cmake. 2011-09-29 21:23:26 -04:00
AP_Rally.cpp Copter: add AP_Rally_Copter 2016-07-22 09:00:18 +09:00
AP_Rally.h Copter: add AP_Rally_Copter 2016-07-22 09:00:18 +09:00
AP_State.cpp Copter: throw uses motor spooling instead of interlock 2016-08-02 20:25:52 +09:00
APM_Config_mavlink_hil.h Copter: remove unused definition 2015-06-28 21:55:31 +09:00
APM_Config.h Copter: remove LAND_REQUIRE_MIN_THROTTLE_TO_DISARM feature 2016-08-05 12:40:37 +09:00
ArduCopter.cpp Copter: remove adsb sensor library based avoidance 2016-07-25 20:24:37 +09:00
arming_checks.cpp Copter: remove get_takeoff_trigger_throttle 2016-08-05 12:40:37 +09:00
Attitude.cpp Copter: remove get_takeoff_trigger_throttle 2016-08-05 12:40:37 +09:00
avoidance_adsb.cpp Copter: remove adsb sensor library based avoidance 2016-07-25 20:24:37 +09:00
avoidance_adsb.h Copter: avoidance_adsb implements copter avoidance using ADSB 2016-07-25 20:24:37 +09:00
baro_ground_effect.cpp ArduCopter: RC_Channel refactor 2016-05-10 16:21:16 +10:00
capabilities.cpp Copter: set terrain capabilities only if terrain code is compiled in 2016-06-27 17:11:06 +09:00
commands_logic.cpp Copter: remove LAND_REQUIRE_MIN_THROTTLE_TO_DISARM feature 2016-08-05 12:40:37 +09:00
commands.cpp ArduCopter: update signing timestamp on GPS lock 2016-05-21 15:25:13 +10:00
compassmot.cpp Copter: pass throttle for esc calibration in 0 to 1 range 2016-05-24 10:00:25 +09:00
compat.cpp Copter: use millis/micros/panic functions 2015-11-20 12:26:31 +09:00
config.h Copter: remove LAND_REQUIRE_MIN_THROTTLE_TO_DISARM feature 2016-08-05 12:40:37 +09:00
control_acro.cpp Copter: manual modes set_land_complete to false 2016-08-05 13:36:39 +09:00
control_althold.cpp Copter: AltHold pilot feedback only spins up to min throttle 2016-08-05 12:40:37 +09:00
control_auto.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
control_autotune.cpp Copter: autotune provides throttle feedback from mid-stick when landed 2016-08-05 12:40:37 +09:00
control_avoid_adsb.cpp Copter: avoidance_adsb implements copter avoidance using ADSB 2016-07-25 20:24:37 +09:00
control_brake.cpp Copter: brake - fix call to relax_alt_hold_controller 2016-08-05 12:40:37 +09:00
control_circle.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
control_drift.cpp Copter: manual modes set_land_complete to false 2016-08-05 13:36:39 +09:00
control_flip.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
control_guided_nogps.cpp Copter: add GUIDED_NOGPS flight mode 2016-08-02 18:25:59 +09:00
control_guided.cpp Copter: allow taking off in Guided mode's attitude control sub mode 2016-08-02 18:26:05 +09:00
control_land.cpp Copter: remove LAND_REQUIRE_MIN_THROTTLE_TO_DISARM feature 2016-08-05 12:40:37 +09:00
control_loiter.cpp Copter: loiter spin-up to throttle min (and remove a state) 2016-08-05 12:40:37 +09:00
control_poshold.cpp Copter: remove get_takeoff_trigger_throttle 2016-08-05 12:40:37 +09:00
control_rtl.cpp Copter: ensure RTL to rally point does not breach the altitude fence 2016-08-06 14:01:31 +09:00
control_sport.cpp Copter: sport mode restructured to match althold and feedback from mid-stick 2016-08-05 12:40:37 +09:00
control_stabilize.cpp Copter: manual modes set_land_complete to false 2016-08-05 13:36:39 +09:00
control_throw.cpp Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
Copter.cpp Copter: guided mode uses modified check_destination_within_fence 2016-07-04 18:25:03 +09:00
Copter.h Copter: change function from computing return altitude to computing return target 2016-08-06 13:50:53 +09:00
crash_check.cpp Copter: land and crash detector use thrust angle error 2016-06-24 17:17:18 +09:00
defines.h Copter: sport mode restructured to match althold and feedback from mid-stick 2016-08-05 12:40:37 +09:00
ekf_check.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
esc_calibration.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
events.cpp Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
failsafe.cpp Copter: use millis/micros/panic functions 2015-11-20 12:26:31 +09:00
fence.cpp Copter: add control_mode_reason 2016-04-14 12:24:04 +09:00
flight_mode.cpp Copter: throw uses motor spooling instead of interlock 2016-08-02 20:25:52 +09:00
GCS_Mavlink.cpp Copter: only accept attitude targets in Guided mode 2016-08-02 18:26:04 +09:00
GCS_Mavlink.h Copter: GCS_MAVLink passes packets to AP_Avoidance 2016-07-25 20:24:37 +09:00
heli_control_acro.cpp Copter: manual modes set_land_complete to false 2016-08-05 13:36:39 +09:00
heli_control_stabilize.cpp Copter: manual modes set_land_complete to false 2016-08-05 13:36:39 +09:00
heli.cpp Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
inertia.cpp Copter: update current_loc at 400hz 2016-04-30 10:33:01 +09:00
land_detector.cpp Copter: land and crash detector use thrust angle error 2016-06-24 17:17:18 +09:00
landing_gear.cpp Copter: finished conversion to .cpp files 2015-05-30 15:21:19 +09:00
leds.cpp Copter: finished conversion to .cpp files 2015-05-30 15:21:19 +09:00
Log.cpp Copter: add throw mode logging 2016-08-02 20:25:52 +09:00
make.inc Copter: add AP_Avoidance to build 2016-07-25 20:24:37 +09:00
Makefile ArduCopter Makefile: Don't include targets.mk directly (included by apm.mk) 2013-01-09 13:15:38 -08:00
Makefile.waf waf: use single entry point for make wrappers 2015-12-10 10:40:34 +09:00
motor_test.cpp Copter: fixed motor test build on heli 2016-05-26 15:05:52 +10:00
motors.cpp Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
navigation.cpp Copter: update current_loc at 400hz 2016-04-30 10:33:01 +09:00
Parameters.cpp Copter: add THROW_TYPE and allow dropping vehicle to trigger motors 2016-08-02 20:25:52 +09:00
Parameters.h Copter: add THROW_TYPE and allow dropping vehicle to trigger motors 2016-08-02 20:25:52 +09:00
Parameters.pde Copter: added blank Parameters.pde for MissionPlanner 2015-05-30 15:21:31 +09:00
perf_info.cpp Copter: added logging of dropped log messages in PM message 2016-04-21 17:05:17 +10:00
position_vector.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
precision_landing.cpp Copter: use terrain alt for precland if rangefinder is unavailable 2016-07-12 18:40:25 +09:00
radio.cpp Copter: AP_Motor's throttle_hover replaces throttle_average 2016-06-18 11:55:49 +09:00
ReleaseNotes.txt Copter: 3.4-rc1 release notes 2016-05-28 15:45:32 +09:00
sensors.cpp Copter: added AP_Button support 2016-07-22 15:01:20 +10:00
setup.cpp ArduCopter: Fix up after refactoring RC_Channel class 2016-05-10 16:21:16 +10:00
switches.cpp Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
system.cpp Copter: integrate AC_Avoidance library 2016-06-22 11:38:15 +09:00
takeoff.cpp Copter: added TKOFF_NAV_ALT parameter 2016-07-07 14:21:47 +09:00
terrain.cpp Copter: rename sonar to rangefinder 2016-05-21 10:36:53 +09:00
test.cpp Copter: rename sonar to rangefinder 2016-05-21 10:36:53 +09:00
tuning.cpp ArduCopter: Delete (wrong) filename out of header 2016-07-25 17:13:41 -03:00
UserCode.cpp Copter: finished conversion to .cpp files 2015-05-30 15:21:19 +09:00
UserVariables.h Copter: minor user hooks cleanup 2013-05-17 12:19:07 +09:00
version.h Global: use ap_version.h 2016-05-06 13:11:28 -03:00
wscript waf: add "ap_" prefix to keywords "libraries" and "vehicle" 2016-08-01 22:04:16 -03:00