Commit Graph

206 Commits

Author SHA1 Message Date
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
Randy Mackay 1acd33e290 Copter: do_yaw takes yaw target from AttControl 2014-02-15 05:27:47 +11:00
Randy Mackay 81c7df7678 Copter: comment fix 2014-02-15 05:27:46 +11:00
Randy Mackay bca309eb1e Copter: replace takeoff_complete with landed_complete 2014-02-15 05:27:43 +11:00
Randy Mackay 54be8402a2 Copter: integrate control_guided 2014-02-15 05:27:42 +11:00
Randy Mackay 212ced63f6 Copter: bug fix for do_loiter_time alt target 2014-02-15 05:27:41 +11:00
Randy Mackay 70d1e53b74 Copter: commands_logic to use auto_rtl 2014-02-15 05:27:41 +11:00
Randy Mackay bae867712d Copter: integrate circle mission command 2014-02-15 05:27:41 +11:00
Randy Mackay 055ce4e53e Copter: integrate control_rtl 2014-02-15 05:27:39 +11:00
Randy Mackay cdc0f8e414 Copter: use new control_auto takeoff and land 2014-02-15 05:27:38 +11:00
Randy Mackay f3bcbb2ce4 Copter: remove setting roll, pitch yaw modes in set_mode 2014-02-15 05:27:37 +11:00
Randy Mackay 65f7bf92f4 Copter: replace yaw_mode with auto_yaw_mode 2014-02-15 05:27:37 +11:00
Randy Mackay 0a2adbac1b Copter: renaming functions after moving xy control 2014-02-15 05:27:36 +11:00
Randy Mackay 5fd9410ff5 Copter: much renaming as xy pos controller moves 2014-02-15 05:27:36 +11:00
Andrew Tridgell e8b8cc1a5d Copter: converted to AP_ServoRelayEvents 2014-01-20 17:06:29 +11:00
Andrew Tridgell e3804e2846 Copter: fixes for AP_Relay API change 2014-01-20 17:06:29 +11:00
Randy Mackay 6d55895d30 Copter: simplify do-set-servo mission command
This potentially changes the servo number that must be supplied if using
an APM1 but it now shares the same logic as arduplane and also adds
protection that the servo is not attached to the motor.
removed debug message from previous commit.
2014-01-15 14:36:50 +09:00
Randy Mackay 59cea4b88c Copter: remove CopterLED from main code 2013-11-30 18:20:55 +09:00
Randy Mackay 7ef04bb73b Copter: rename nav_yaw to control_yaw 2013-11-27 22:48:20 +09:00
Robert Lefebvre 0e2ddb0378 Copter: verify_takeoff() should set ap.takeoff_complete to True after the takeoff is complete. 2013-11-15 22:57:34 +09:00
Randy Mackay 65980ace68 Copter: remove some commented out send_text code 2013-10-30 13:44:56 +09:00
Andrew Tridgell 3b9566bc09 Copter: support MAV_CMD_DO_SET_CAM_TRIGG_DIST 2013-10-11 21:40:57 +11:00
Randy Mackay 7cc8a9038f Copter: move failsafe flags into structure 2013-09-26 19:37:15 +09:00
Randy Mackay 284aa2217f Copter: remove old comments 2013-09-24 21:45:43 +09:00
Randy Mackay 6052017b13 Copter: allow override of auto throttle mode 2013-08-28 11:45:07 +09:00
Randy Mackay 7ea971d948 Copter: check set_mode for failure
Previously if set_mode failed it would return the copter to stabilize
mode.  With this commit set_mode returns a true/false indicating whether
it succeeded or not so the caller can make the decision as to the
appropriate response which could be to stay in the current flight mode
or try another flight mode.
2013-07-20 11:01:10 +09:00