Commit Graph

11264 Commits

Author SHA1 Message Date
Randy Mackay df339c05fc Mission: num_commands returns uint16 2014-03-19 12:11:25 +09:00
Randy Mackay 0827506533 Plane: remove unused WAIT_COMMAND 2014-03-19 12:11:24 +09:00
Randy Mackay 53add04d36 Plane: remove some comments in commands_logic.pde 2014-03-19 12:11:22 +09:00
Randy Mackay fa96e9355b Copter: init cmd before saving with Ch7/Ch8 2014-03-19 12:11:21 +09:00
Randy Mackay 802ab79c84 Plane: bug fix for setting flight_stage based on current command 2014-03-19 12:11:19 +09:00
Randy Mackay c4364a8ff5 Plane: remove unused nonnav_command variables
non_nav_command_ID and next_nonnav_command variables removed
2014-03-19 12:11:18 +09:00
Randy Mackay 52a08a5284 Plane: CMD dataflash logs use uint16 for total and num
Also bug fix for Log_Write_Cmd definition when logging disabled
2014-03-19 12:11:16 +09:00
Randy Mackay 0fc36fd244 Copter: CMD dataflash logs use uint16 for total and num 2014-03-19 12:11:15 +09:00
Randy Mackay af186fba05 AP_Common: pack Location structure
This resolves issues storing and retrieving Location to eeprom as part
of AP_Mission
2014-03-19 12:11:13 +09:00
Randy Mackay e60865b715 Mission: example sketch test for set_current_cmd 2014-03-19 12:11:12 +09:00
Randy Mackay 512b378c4a Mission: allow set_current_cmd when mission is not running
Can now be run when mission is complete or stopped.  When mission is
resumed it will begin at the set command.  This command can be either a
nav or do command
2014-03-19 12:11:10 +09:00
Andrew Tridgell f036aa1780 Plane: fixed altitude for takeoff and takeoff heading
fixes for AP_Mission integration

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:11:09 +09:00
Andrew Tridgell eaf34bba9a AP_Mission: fixed reset using set mission item to 0
this causes a mission reset
2014-03-19 12:11:07 +09:00
Randy Mackay 8dd301b0c2 Mission: set_current_cmd to use uint16 2014-03-19 12:11:06 +09:00
Randy Mackay 6bb05750e7 Copter: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:04 +09:00
Randy Mackay 601cde2a32 Plane: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:03 +09:00
Randy Mackay a6e422333e Mission: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:01 +09:00
Randy Mackay bc86a5043a Plane: bug fix for relative alt 2014-03-19 12:11:00 +09:00
Randy Mackay 9446e9fd2e Plane: integrate AP_Mission library 2014-03-19 12:10:58 +09:00
Randy Mackay ddba6f5c19 Plane: mission integration into GCS_Mavlink.pde 2014-03-19 12:10:57 +09:00
Randy Mackay 97f09ab426 Plane: dataflash logging to use Mission command 2014-03-19 12:10:55 +09:00
Randy Mackay fdaf3fc177 Plane: add AP_Mission object to parameter list 2014-03-19 12:10:54 +09:00
Randy Mackay 04166c1686 Copter: replace memset in GCS_Mavlink 2014-03-19 12:10:52 +09:00
Randy Mackay efd4058e8b AHRS: interate move of p1 from Location to mission cmd 2014-03-19 12:10:51 +09:00
Randy Mackay 5dd86bd7d7 Mission: update example sketch for p1's move to cmd structure 2014-03-19 12:10:49 +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 87126c9b71 Common: remove id and p1 from Location structure
id and p1 are now part of AP_Mission's Mission_Command structure
2014-03-19 12:10:46 +09:00
Randy Mackay 0dc3c9ab42 Mission: add p1 to command structure
mavlink_to_mission_cmd method extended to support plane including adding
parameter to allow the alt to be expressed in cm or meters
2014-03-19 12:10:45 +09:00
Randy Mackay aade894014 Copter: integrate replace_cmd 2014-03-19 12:10:43 +09:00
Randy Mackay 4c0ae63169 Mission: example sketch test replace_cmd method 2014-03-19 12:10:42 +09:00
Randy Mackay 61cc5e6b72 Mission: add replace_cmd method 2014-03-19 12:10:40 +09:00
Randy Mackay 54c99d84ea Copter: integrate AP_Mission set_current_cmd 2014-03-19 12:10:39 +09:00
Randy Mackay ef21e32fbc Mission: example sketch tests set current command 2014-03-19 12:10:37 +09:00
Randy Mackay 3cbbd4ebb9 Mission: add set current command method 2014-03-19 12:10:36 +09:00
Randy Mackay 36af34bf8b Copter: send current wp as 65535 to GCS when mission complete 2014-03-19 12:10:34 +09:00
Randy Mackay c7ffd2db90 Mission: reduce unnecessary search for do-commands
do_cmd_all_done flag is set after all do-commands are complete
2014-03-19 12:10:33 +09:00
Randy Mackay 0c92d60406 Mission: command index increase to int16
Once more eeprom space is allocated this will allow more than 255
commands
2014-03-19 12:10:31 +09:00
Randy Mackay 92738533fe Copter: auto starts only when num cmds > 1
num_commands will be 1 when there is no mission because home counts as
the first command
2014-03-19 12:10:30 +09:00
Randy Mackay 85b979ede9 Mission: support do-jump num_times is -1
do-jump loops forever when num times is set to -1
2014-03-19 12:10:29 +09:00
Randy Mackay c6c43847b6 Mission: example sketch tests set home command 2014-03-19 12:10:27 +09:00
Randy Mackay f77b2af661 Copter: use common location options masks 2014-03-19 12:10:26 +09:00
Randy Mackay 070cbc9250 Copter: use Mission mav to cmd conversion methods 2014-03-19 12:10:24 +09:00
Randy Mackay 26b82cf0a3 Rover: use common location options masks 2014-03-19 12:10:23 +09:00
Randy Mackay e88f1953d0 Plane: use common location options masks 2014-03-19 12:10:21 +09:00
Randy Mackay 9ef27955b5 Common: add location options masks 2014-03-19 12:10:20 +09:00
Randy Mackay cc8554fa2b Mission: fix example sketch 2014-03-19 12:10:18 +09:00
Randy Mackay f4d8ccc128 Mission: add mavlink to cmd conversion methods 2014-03-19 12:10:17 +09:00
Randy Mackay 67a4b47f6b Copter: pass ahrs into mission constructor 2014-03-19 12:10:15 +09:00
Randy Mackay 87c7d19f83 AP_Mission: special handling for cmd 2014-03-19 12:10:14 +09:00
Randy Mackay 37fe229ded Copter: remove unused definitions 2014-03-19 12:10:12 +09:00