Peter Barker
51dc35f6ff
AP_Mission: emit jump count even if no limit
...
previously if there was a jump limit we informed the user we were jumping and provided the current count and the limit.
This changes things so that if there's no limit we emit the same message, with the count and "unlimited" in place of the limit number
2024-05-08 17:56:56 +10:00
Iampete1
1cdff47246
AP_Mission: add support for DO_RETURN_PATH_START
2024-04-30 08:03:39 +09:00
Iampete1
afe257a8db
AP_Mission: take location in `get_landing_sequence_start`, `jump_to_landing_sequence`, `jump_to_abort_landing_sequence`, and `is_best_land_sequence`, add helpers for scripting
2024-04-02 11:11:59 +11:00
Randy Mackay
3a570943d5
AP_Mission: support set-camera-source
2024-03-25 09:19:18 +09:00
Peter Barker
29cd0ab179
AP_Mission: remove AP_MISSION_ENABLED special-cases
...
these are static methods which are called when they really shouldn't be
2024-02-14 14:47:03 +11:00
Peter Barker
475ef8a06d
AP_Mission: fix use of uninitialised stack data
...
loading missions via FTP ends up using uninitialised stack data when storing missions.
2024-01-24 09:04:28 +11:00
J.R. Bronkar
784a21bcab
AP_Mission: fractional Loiter Turn Support
...
Adds special storage handling for loiter turns. Fractional Loiter
Turns 0<N<1 are stored by multiplying the turn number by 256, then
dividing that number by 256 on retrieval.
2024-01-22 20:27:20 -08:00
Peter Barker
b94738a864
AP_Mission: add ASSERT_STORAGE_SIZE macro
...
saves havin gto name the dummy variable yourself
2024-01-22 22:44:05 +11:00
Peter Barker
368593c2c6
AP_Mission: correct compilation when AP_MISSION_ENABLED is false
2024-01-03 16:16:47 +11:00
Peter Barker
f6bff8c19e
AP_Mission: correct compilation when RC_Channel not enabled
2023-12-12 14:52:36 +11:00
Nick Exton
12642b5793
AP_Mission: Remove unused rewind param from set_current_cmd() (NFC)
2023-11-14 10:22:45 +11:00
Nicholas Ionata
8b4bc0e077
AP_Mission: correct incorrect comment about method reutrn value
...
The comment for the AP_Mission::clear method had an incorrect claim as to the return value
2023-10-28 10:14:50 +02:00
Peter Barker
5a65632a2d
AP_Mission: allow payload place to be compiled out of code
2023-10-27 14:15:53 +11:00
Michael du Breuil
3a711b49e2
AP_Mission: Support disarmed starts in engine control
2023-10-24 14:11:39 -07:00
Asif Khan
844d552b22
AP_Mission: add MAV_CMD_IMAGE_STOP_CAPTURE support
...
Co-authored-by: Zachary Zalass <zachzalass@gmail.com>
2023-09-21 21:05:01 +10:00
Asif Khan
518feedf41
AP_Mission: add MAV_CMD_START_CAPTURE support in mission
2023-09-21 21:05:01 +10:00
Peter Barker
fcc2b503e5
AP_Mission: remove unused method mavlink_cmd_long_to_mission_cmd
2023-09-12 09:22:36 +10:00
Peter Barker
dd2ce88152
AP_Mission: allow more libraries to compile with no HAL_GCS_ENABLED
2023-09-05 22:23:51 +10:00
Tom Pittenger
932ed9ff28
AP_Mission: show tag or jump index on WP change
2023-08-14 16:55:04 -07:00
Peter Barker
e423173848
AP_Mission: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Henry Wurzburg
67f19c6ddb
AP_Mission: allow clearing mission in AUTO when disarmed
2023-03-28 09:43:42 +11:00
Peter Barker
8e15b2f349
AP_Mission: correct missing transitive include problem
2023-03-19 09:08:41 +11:00
Randy Mackay
5b96998e62
AP_Mission: add camera zoom and focus support
...
also image-start-capture, video-start-capture, video-stop-capture
2023-03-16 07:47:01 +09:00
Tom Pittenger
d76901bd41
AP_Mission: jumptag optimize for sd card
2023-03-11 14:02:59 +11:00
Andrew Tridgell
9cef639a97
AP_Mission: support storage on microSD using mission.stg
2023-03-10 14:13:55 +11:00
Randy Mackay
a56b474b4a
AP_Mission: remove unused do-control-video
2023-03-09 12:24:05 +11:00
Randy Mackay
a0723e6ef5
AP_Mission: fix ap-camera-enabled fallthrough
2023-03-09 12:24:05 +11:00
Tom Pittenger
7f5222eac2
AP_Mission: add Jump_TAG hook for scripting
2023-02-28 12:00:18 +11:00
Tom Pittenger
28f4ac7bbc
AP_Mission: add Jump_TAG support
2023-02-22 05:33:38 -08:00
murata
b31883a8a4
AP_Mission: Match variable types
2023-02-07 08:56:28 +09:00
Peter Barker
03f5c321b0
AP_Mission: avoid using struct Location
...
clang reports this could be a problem when compiling under some EABIs. Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
murata
ca8e60a590
AP_Mission: Initialize return variables
2023-02-03 07:14:26 +11:00
Henry Wurzburg
8865d79015
AP_Mission: add error check to mission_load.lua
2023-01-17 10:24:08 +11:00
Tom Pittenger
af02cef68d
AP_Mission: DO_LAND_START to consider altitude (3D distance)
2022-11-15 10:42:01 +11:00
Peter Barker
fb1266f775
AP_Mission: include required AP_Vehicle_Type header
2022-11-02 18:35:48 +11:00
Andrew Tridgell
41bc08e132
AP_Mission: save flash space when scripting not enabled
2022-10-23 12:14:14 +11:00
Andrew Tridgell
d832b41262
AP_Mission: auto-convert NAV_SCRIPT_TIME from old to new format
...
this mechanism can be used for other structures in the future
2022-10-23 12:14:14 +11:00
Andrew Tridgell
cc39bd08be
AP_Mission: use Float16_t for NAV_SCRIPT_TIME
2022-10-23 12:14:14 +11:00
Peter Barker
aea7b0a097
AP_Mission: add AP_GRIPPER_ENABLED
2022-10-04 10:58:34 +11:00
Bob Long
98b65299f6
AP_Mission: initialize jump-tracking in init()
2022-09-27 10:02:04 +10:00
Peter Barker
5e733fe849
AP_Mission: zero frame field when filling mavlink_int from mavlink_cmd
...
Callers should be filling their bits in after calling this.
2022-09-25 19:25:53 +10:00
Peter Barker
884f4dd317
Revert "AP_Mission: prevent use of uninitialised stack data"
...
This reverts commit a785ac84a3
.
2022-09-25 19:25:53 +10:00
Peter Barker
a785ac84a3
AP_Mission: prevent use of uninitialised stack data
...
Well, probably not initialised, but certainly holding values we don't want
2022-09-21 22:38:31 +10:00
Peter Barker
59b82507ff
AP_Mission: add and use AP_CAMERA_ENABLED
2022-09-21 11:58:38 +10:00
Michael du Breuil
f5ca2c9e7a
AP_Mission: Support storing VTOL_LAND options
2022-08-15 17:05:00 -07:00
Peter Barker
5b3a6daa7b
AP_Mission: rename contains_terrain_relative->contains_terrain_alt_items
...
can we rename "constains_terrain_relative" to "contains_terrain_alt"? No big deal of course but "terrain_alt" is what we use in Copter so it's more likely to show up in searches.
2022-08-10 18:04:22 +10:00
Peter Barker
c2d91a3bdb
AP_Mission: mark mission as changed upon mission clear
2022-08-09 14:31:14 +10:00
Peter Barker
50fb56a74f
AP_Mission: memoise result of contains_terrain_relative
...
527 items takes ~2200us on CubeOrange which is way too long
2022-08-09 14:31:14 +10:00
Andrew Tridgell
bad0120d3c
AP_Mission: added contains_terrain_relative()
...
used in plane arming check
2022-08-09 14:31:14 +10:00
Andrew Tridgell
511b0f69f2
AP_Mission: skip aux function in determining if a takeoff
...
and reset landing sequenece flag on a takeoff command
2022-07-12 10:34:26 +10:00