Randy Mackay
3938fb7255
GCS_MAVLink: loiter direction removed
...
This is now handled in Mission library
11 years ago
Randy Mackay
37cff752c8
Mission: handle Loiter direction
...
loiter-unlimited, loiter-turns and loiter-time cms specify the turn
direction in Param3. This is stored in the location's loiter_ccw flag.
Previously supported only in Plane, moving here allows us to share more
code with Plane, Copter, Rover.
11 years ago
Andrew Tridgell
add2416dbe
GCS_MAVLink: added handle_mission_request() common function
...
this handles requests for mission items, using stack saving
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Andrew Tridgell
ce29bbe394
GCS_MAVLink: save some memory in log download
...
use an existing buffer instead of using the mavlink _send()
function. This saves some stack space in log download
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Randy Mackay
c75560218d
Mission: command specific structures
11 years ago
Randy Mackay
865a4de33d
Common: use PACKED instead of pragma pack for Location
11 years ago
Randy Mackay
869f325c66
DataFlash: Log_Write_MavCmd replaces Log_Write_Cmd
11 years ago
Andrew Tridgell
3a6698f54b
AP_Mission: fixed typo
11 years ago
Andrew Tridgell
3538621c48
AP_Mission: doc updates
11 years ago
Randy Mackay
48329c1bba
Mission: bug fix for loading consecutive do-cmds
...
The verify step was not being run for the 2nd consecutive do-command in
a mission list
11 years ago
Randy Mackay
ece02b0c9a
Mission: get_prev_nav_cmd returns int16
11 years ago
Randy Mackay
266a1ce9af
Mission: bug fix set_current_cmd
...
If mission had completed desired command index was ignored
11 years ago
Andrew Tridgell
107cc2c126
AP_Mission: added truncate() function
...
Used when loading a mission while flying
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Andrew Tridgell
acdaf561c8
AP_Mission: fixed typo
11 years ago
Randy Mackay
ebf72f5beb
Dataflash: example sketch includes AP_Mission.h
11 years ago
Randy Mackay
150faafaf4
Dataflash: add Log_Write_Cmd method
11 years ago
Randy Mackay
8e117d29eb
Mission: test exceeding command storage size
11 years ago
Randy Mackay
9e07070d86
Mission: pass eeprom start into constructor
...
This allows different storage locations for ArduCopter, Plane and Rover
11 years ago
Randy Mackay
7663c5898e
AP_HAL_Boards: board specific storage size definition
11 years ago
Randy Mackay
ddc4cd4f18
Mission: add init and check_eeprom_version methods
11 years ago
Randy Mackay
4c0a31a9dc
Mission: init home to zero before writing to eeprom
11 years ago
Randy Mackay
df339c05fc
Mission: num_commands returns uint16
11 years ago
Randy Mackay
af186fba05
AP_Common: pack Location structure
...
This resolves issues storing and retrieving Location to eeprom as part
of AP_Mission
11 years ago
Randy Mackay
e60865b715
Mission: example sketch test for set_current_cmd
11 years ago
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
11 years ago
Andrew Tridgell
eaf34bba9a
AP_Mission: fixed reset using set mission item to 0
...
this causes a mission reset
11 years ago
Randy Mackay
8dd301b0c2
Mission: set_current_cmd to use uint16
11 years ago
Randy Mackay
a6e422333e
Mission: remove alt_in_cm from mavlink to cmd conversion
11 years ago
Randy Mackay
efd4058e8b
AHRS: interate move of p1 from Location to mission cmd
11 years ago
Randy Mackay
5dd86bd7d7
Mission: update example sketch for p1's move to cmd structure
11 years ago
Randy Mackay
87126c9b71
Common: remove id and p1 from Location structure
...
id and p1 are now part of AP_Mission's Mission_Command structure
11 years ago
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
11 years ago
Randy Mackay
4c0ae63169
Mission: example sketch test replace_cmd method
11 years ago
Randy Mackay
61cc5e6b72
Mission: add replace_cmd method
11 years ago
Randy Mackay
ef21e32fbc
Mission: example sketch tests set current command
11 years ago
Randy Mackay
3cbbd4ebb9
Mission: add set current command method
11 years ago
Randy Mackay
c7ffd2db90
Mission: reduce unnecessary search for do-commands
...
do_cmd_all_done flag is set after all do-commands are complete
11 years ago
Randy Mackay
0c92d60406
Mission: command index increase to int16
...
Once more eeprom space is allocated this will allow more than 255
commands
11 years ago
Randy Mackay
85b979ede9
Mission: support do-jump num_times is -1
...
do-jump loops forever when num times is set to -1
11 years ago
Randy Mackay
c6c43847b6
Mission: example sketch tests set home command
11 years ago
Randy Mackay
9ef27955b5
Common: add location options masks
11 years ago
Randy Mackay
cc8554fa2b
Mission: fix example sketch
11 years ago
Randy Mackay
f4d8ccc128
Mission: add mavlink to cmd conversion methods
11 years ago
Randy Mackay
87c7d19f83
AP_Mission: special handling for cmd
11 years ago
Randy Mackay
e8db57ced3
AP_Mission: replace block read/write for eeprom
...
Also reserve command #0 for home position
11 years ago
Randy Mackay
fd009d0704
AP_Mission: tests added to example sketch
11 years ago
Randy Mackay
84b3497a82
AP_Mission: fixes to protect against endless loops
11 years ago
Randy Mackay
6086bc14be
AP_Mission: mostly working draft
11 years ago
Randy Mackay
4285eba297
AP_Mission: initial draft library
11 years ago
Randy Mackay
dd45647626
AC_PosControl: update some comments re leash lengths
11 years ago