Commit Graph

231 Commits

Author SHA1 Message Date
Randy Mackay a3933f7a1f Copter: handle do_mount_control mission commands 2015-03-21 21:52:24 +09:00
Randy Mackay 7e11ec9a6f Copter: surf tracking, do-land use inav alt
Also CTUN logging of inav alt switched to get directly from inertial nav
lib instead of using current_loc.alt
2015-02-12 15:07:00 +09:00
Randy Mackay 7029b11414 Copter: support do_set_home command from GCS and mission 2015-02-12 15:00:54 +09:00
Randy Mackay c51ba8cd03 Copter: integrate mount frontend-backend restructure
initialise mount on startup
use Mount::has_pan_control method
Remove calls to unimplemented mount.configure_cmd
Remove call to update_mount_type which will be handled from within mount
lib
2015-01-29 13:57:18 +11:00
Randy Mackay 72127cde35 Copter: remove broken support for do-change-alt
This command was not implemented fully removing this code resolves a
compiler warning
2014-12-26 22:17:45 +09:00
Randy Mackay 990a34cb75 Copter: remove support for do-set-home mission command
This avoids the chance of an arithmetic exception in cases where the
position is moved too far
2014-12-26 15:55:26 +09:00
Jonathan Challinger f045c75bfe Copter: play various tones 2014-12-15 14:09:12 +09:00
Clay McClure a897c14255 Copter: ensure lat, lon, alt all zero is handled
Use default position when waypoint lat/lon are zero,
and default altitude when waypoint alt is zero, for
both spline and straight-line waypoints.

Fixes #1145.
2014-11-06 11:53:32 +09:00
Arthur Benemann b587025ad1 Copter: send a camera_feedback message when there is a camera trigger 2014-10-31 14:46:42 +09:00
Jonathan Challinger d7d8330303 Copter: loiter copter without accepting user input at end of auto mission 2014-10-20 10:46:14 +09:00
Andrew Tridgell c3d839456b Copter: support logging while disarmed 2014-10-17 16:29:59 +09:00
Randy Mackay 6659473420 Copter: support GUIDED_ENABLE and GUIDED_LIMITS
Split of NAV_GUIDED into these two command necessitated guided mode
store the limits
2014-10-13 21:40:24 +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 ef0e37b478 Copter: bugfix to condition-yaw for relative angles
Thanks to roque-canales for raising the issue and paradisephil for finding
the specific piece of code that went wrong and suggesting the fix.
2014-09-26 12:22:58 +09:00
Randy Mackay bbe4438a6b Copter: add support for DO_GRIPPER command 2014-09-17 21:14:19 +09:00
Andrew Tridgell e9fedbdb79 Copter: removed use of removed MAV_CMD_NAV_ commands 2014-07-24 21:40:16 +10:00
Randy Mackay 81355d1adf Copter: DO_SET_ROI accepted outside missions
Moved ROI logic to new set_auto_yaw_roi function.
2014-07-06 17:02:06 +09:00
MousS ae8fb3f1c5 Copter: MAV_CMD_CONDITION_YAW accepted outside missions 2014-07-06 17:01:15 +09:00
Randy Mackay f5640dadbf Copter: guided mode velocity controller 2014-07-06 17:01:08 +09:00
Randy Mackay 12720bbbe1 Copter: accept condition-yaw commands in guided 2014-07-06 17:00:46 +09:00
Randy Mackay 279926e386 Copter: accept guided pos updates when doing NAV_GUIDED cmd 2014-07-06 17:00:35 +09:00
Randy Mackay fdc0ec837b Copter: add nav_guided suport to Auto mode 2014-07-06 17:00:31 +09:00
Randy Mackay e0f4a570c6 Copter: loiter turns radius from command's p1 field 2014-06-17 20:53:56 +10:00
Randy Mackay 8c488ebd87 Copter: use common Log_Write_Camera
pair programmed with Craig Elder
2014-06-17 14:11:39 +10:00
Randy Mackay 5c305989b9 Copter: set home alt to absolute alt 2014-06-11 11:04:52 +09:00
Arthur Benemann e1b7e53c04 Copter: only acceept Guided waypoints in Guided mode
Fix #1068. When receiving guided waypoints do not change to GUIDED mode. This serves as a safety precaution for GCS, since they must switch to guided mode before sending the waypoints.
2014-05-17 12:02:53 +09:00
Randy Mackay 466e9db1f9 Copter: integrate AC_WPNav get_speed_xy name change 2014-04-30 21:46:07 +09:00
Randy Mackay 817c893f21 Copter: bug fix for conditional_distance command
Due to a race condition, the wp_distance was not being updated before
the conditional_distance
2014-04-17 22:23:28 +09:00
Randy Mackay c53a0fcfd9 Copter: conditional yaw fix
waypoint command was setting auto_yaw_mode when it was run after the
do-cmd
yaw_look_at_heading was being set to current heading which was
overwriting the caller's desired heading
2014-04-17 16:41:36 +09:00
Randy Mackay 7f00bd7f5d Copter: default WAYPOINT to current pos if lat, lon, alt are zero 2014-04-16 20:33:43 +09:00
Randy Mackay e6d2692eab Copter: Loiter_Turns moves to edge of circle if location provided 2014-04-16 16:28:08 +09:00
Randy Mackay 2b4d2697b2 Copter: process MAV_CMD_DO_PARACHUTE commands 2014-04-07 13:36:56 +09:00
Andrew Tridgell 640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Randy Mackay 4b6f03cc11 Copter: remove do_land's use of RTL_ALT_MAX 2014-03-31 20:34:21 +09:00
Randy Mackay 7d5d0d12a2 Copter: spline bug fixes
Next waypoint's location must be passed in even if it's a straight
segment.
mission.get_next_nav_cmd's start_index should be the current command +1
2014-03-29 17:57:45 +09:00
Randy Mackay 176a450ad2 Copter: remove spline handling from regular wp_nav 2014-03-28 09:23:41 +09:00
Randy Mackay d541fefab4 Copter: add do_spline_wp and verify_spline_wp functions 2014-03-28 09:23:33 +09:00
Randy Mackay 8f946a3a8c Copter: remove original_wp_bearing
To-Do: extend wpnav yaw control to only repoint nose towards waypoint if
it is more than 5m or 10m away
2014-03-28 09:23:21 +09:00
Randy Mackay 0822adfb34 Copter: integrate spline navigation 2014-03-28 09:22:59 +09:00
Randy Mackay 88527cd01c Copter: integrate Mission cmd field changes 2014-03-19 12:14:25 +09:00
Randy Mackay a3573f9ebd Copter: minor typo in do_change_speed processing
It is unlikely that the "f" at the end of the 100 is required to
maintain the full precision of the target speed but added just in case
2014-03-19 12:12:55 +09:00
Randy Mackay 08b78db43c Copter: use mission command specific structures 2014-03-19 12:12:54 +09:00
Randy Mackay 2f8daf2fa9 Copter: integrate dataflash Log_Write_MavCmd 2014-03-19 12:12:46 +09:00
Randy Mackay f3813593b7 Copter: use Dataflash lib's Log_Write_Cmd 2014-03-19 12:12:11 +09:00
Randy Mackay c3162f67e8 Copter: integrate move of p1 from Location to mission cmd 2014-03-19 12:10:48 +09:00
Randy Mackay 359f1a27ec Copter: process cmds from mission lib 2014-03-19 12:10:11 +09:00
Randy Mackay 6efc26d3a6 Copter: restore mount's mode to default after ROI completes 2014-03-05 16:02:14 +09:00
Randy Mackay fdae812814 Copter: DO_SET_ROI persists across waypoints
Users should add a DO_SET_ROI command with zero lat, lon and alt to
restore the yaw control to the default control (which is normally
look-at-next-wp)
2014-02-18 21:36:02 +09:00
Andrew Tridgell c6e25483b4 Copter: use a common home with AHRS 2014-02-15 05:48:15 +11:00
Randy Mackay aa4c3eaffe Copter: resolve RTL state compiler warnings 2014-02-15 05:27:48 +11:00