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
Randy Mackay
1dcc5886d0
Copter: ensure take-off alt is at least 1m
...
fixes issue #377
2013-07-16 15:51:18 +09:00
Randy Mackay
47ab02d686
Copter: bug fix to ROI to pull target from conditional command queue
2013-07-14 17:37:06 +09:00
Randy Mackay
f1969d5662
Copter: switch from NAV_ROI to DO_SET_ROI
2013-07-14 17:37:05 +09:00
Randy Mackay
ab1a7baf71
Copter: project stopping point for loiter command
2013-07-11 11:39:47 +09:00
Randy Mackay
022148ec0d
Copter: LAND only control horizontal position if we have GPS lock
2013-06-25 22:34:58 +09:00
Randy Mackay
993bccc60e
Copter: point nose at landing point if specified
2013-06-03 15:20:37 +09:00
Randy Mackay
9f59f2724f
Copter: bug fix for take-off when throttle is zero
...
Verify_takeoff was always returning false if throttle was zero. The
pilot should be able to move their throttle back to zero immediately
after initiating the mission
2013-06-03 14:18:56 +09:00
Dr Gareth Owen
79bd8b4fd0
rtl resets yaw to same as when armed - unless user specifies otherwise
2013-06-02 11:29:27 +09:00
Randy Mackay
0460147a15
Copter: guided mode yaw fix
...
Nose of copter now points at next guided point if it is more than 10m
away
2013-06-02 11:25:35 +09:00