Commit Graph

34 Commits

Author SHA1 Message Date
rmackay9 f62c377062 ArduCopter: auto yaw changes to allow pilot override of yaw during missions
Added set_yaw_mode to better control of yaw controller changes and variable initialisation.
Replaced AUTO_YAW mode with separate yaw controllers YAW_LOOK_AT_NEXT_WP, YAW_LOOK_AT_LOCATION, YAW_LOOK_AT_HEADING.
Pilot manual override of yaw causes yaw to change to YAW_HOLD (i.e. manual yaw) until next waypoint is reached.
Added get_yaw_slew function to control how quickly autopilot turns copter
Changed YAW_LOOK_AHEAD to use GPS heading and moved to new get_look_ahead_yaw function in Attitude.pde
Renamed variables: target_bearing->wp_bearing, original_target_bearing->original_wp_bearing.
Removed auto_yaw_tracking and auto_yaw variables and update_auto_yaw function as they are no longer needed.
Simplified MAV_CMD_CONDITION_YAW handling (do_yaw).  We lose ability to control direction of turn and ability to do long panorama shots but it now works between waypoints and save 20bytes.
2012-12-08 14:23:32 +09:00
rmackay9 9750c14325 ArduCopter: RTL clean-up and slightly improved landing sensor
Consolidated RTL state to be captured by rtl_state variable.
Combined update_RTL_Nav and verify_RTL functions which performed the same function but one was for missions, the other for the RTL flight mode.
Renamed some RTL parameters and global variables to have RTL at the front.
Landing detector now checks accel-throttle's I term and/or a very low throttle value
2012-12-06 10:31:52 +09:00
Andrew Tridgell 76e9adb8d4 ACM: make it possible to run CLI on radio port in ArduCopter 2012-11-21 21:41:34 +11:00
Jason Short 3e905ec750 Ap state updates 2012-11-09 22:15:15 -08:00
Jason Short 96f0a32cd3 ACM Acceleration management
removed unused waypoint_radius var
removed slow_wp
updated speed management system to maintain a constant acceleration or deceleration of 1m/s
changed version to 2.8.1a
2012-10-21 14:32:39 -07:00
Jason Short ecf7e0e8bf ACM l Prevent pre-mature finish of mission 2012-09-12 23:06:06 -07:00
uncrustify 95bbbd9ff9 uncrustify ArduCopter/commands_process.pde 2012-08-21 18:56:00 -07:00
rmackay9 5f2c662fc9 ArduCopter: replaced abs with labs as required in a few places.
Also fixed a small bug in the get_stabilize_pitch function in which it was using the roll (instead of pitch) to decide whether it should let the i term build-up or not.
2012-08-16 17:51:09 +09:00
Jason Short 4aba673b38 ACM : switched to get_bearing_cd 2012-08-09 17:04:30 -07:00
Jason Short c3cf8de9da ACM Commands parser to look for future nav commands to inspect upcoming turn angle 2012-08-09 16:59:43 -07:00
Jason Short cc51d497c6 commands
fixed logic bug to make a copter loiter after the mission is ended.
2012-07-03 17:38:50 -07:00
Jason Short 059fea36aa RTL: Commands.pde
When we are out of commands we land or Loiter at the RTL_Approach_altitude.
2012-07-01 13:40:11 -07:00
Adam M Rivera d399143498 commands_process.pde: Bug fix 427. By default, the copter would land after an AUTO mission. Updated to check for valid approach altitude at end of mission. 2012-06-29 21:41:56 -05:00
Jason Short 0213f4dd88 2.2B6 - Please verify Heli still functions properly.
Added AC_PID lib
Updated landing code
bug fixes
2012-01-28 22:00:05 -08:00
Jason Short a087d84734 error on comparison operator 2012-01-20 22:52:30 -08:00
Jason Short 3a4a80c650 renamed function 2012-01-20 22:52:30 -08:00
Jason Short 55cb0ad476 moved to verify_land 2012-01-11 22:41:51 -08:00
Jason Short 0c9dc11ac1 Added ending for auto landing 2012-01-10 23:42:27 -08:00
Jason Short ba72a98345 Slowed Auto Descent
Don't return true in Landing code to prevent flyways in Stabilize
2012-01-08 23:01:22 -08:00
Jason Short 0a7378856d Added finish to missions - auto-land or stabilize 2012-01-07 22:27:26 -08:00
Jason Short 4a50e08ac1 change how Reset Nav params work - no longer clear I terms 2012-01-04 09:28:36 -08:00
Jason Short fc93a73ad7 no longer calling reset_nav 2011-12-30 23:48:04 -08:00
Andrew Tridgell 483754cb70 fixed == that should be = 2011-12-12 15:19:50 +11:00
Jason Short a7e0135cd4 adding flag for finished mission 2011-11-28 22:28:51 -08:00
Jason Short 60237bd01b slight refactoring to avoid the increment issue when changing commands 2011-11-28 10:33:06 -08:00
Jason Short 16eb5641c2 Working implementation of Jump Command 2011-11-16 21:28:56 -08:00
Jason Short 006cb1ac9c Mission Scripting re-write 2011-11-16 00:22:23 -08:00
Jason Short f338e6cc79 fixed bad indexing for setting current mission index 2011-11-13 22:59:57 -08:00
Jason Short 38b79a3b03 WIP: adding 255 to represent a completed mission 2011-11-12 21:40:33 -08:00
Jason Short 80c7e135d5 renamed some command variables to align with Arduplane
reworked the arming code and moved the DCM gains out.
updated climb_rate to include sonar data.
2011-11-04 21:41:51 -07:00
Andrew Tridgell 661b6c4508 merged the GCS updates from ArduPlane to ArduCopter
this removes all the non-MAVLink GCS options, and simplifies the HIL
and GCS code a lot. It also adds async sending of low priority GCS
text messages.
2011-10-11 20:53:43 +11:00
Jason Short 5bf7898438 removed saving - not needed for copters 2011-09-18 16:28:53 -07:00
Jason Short 7e672a602b Jump command was reported to have issues, updated to match APM branch. 2011-09-18 16:27:43 -07:00
Andrew Tridgell be8864f424 renamed top level directories
ArduCopterMega -> ArduCopter
added archives directory for old code
2011-09-09 11:27:41 +10:00