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
Henry Wurzburg
8865d79015
AP_Mission: add error check to mission_load.lua
2023-01-17 10:24:08 +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
cafed85872
AP_Mission: fixed climb_rate in ATTITUDE_TIME
...
need to stay within 10 byte limit
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
jackhong12
4a4f361a17
all: use CLASS_NO_COPY() macro
2022-10-04 11:23:04 +11:00
Peter Barker
6756c295df
AP_Mission: add AP_Mission_config.h
2022-08-18 22:49:10 +10:00
Peter Barker
f9b409ce01
AP_Mission: rename HAL_MISSION_ENABLED to AP_MISSION_ENABLED
2022-08-18 22:49:10 +10: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
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
Randy Mackay
589102b7d7
AP_Mission: add DO_GIMBAL_MANAGER_PITCHYAW support
2022-06-15 09:07:14 +09:00
Randy Mackay
6ac864ec2f
AP_Mission: support NAV_ATTITUDE_TIME command
2022-05-31 07:50:16 +09:00
Peter Barker
087d5ec6c7
AP_Mission: support *10 multipler when storing/retrieving radius in NAV_LOITER_TURNS
2022-05-11 17:40:35 +10:00
Peter Barker
445b10d8b3
AP_Mission: tidy includes
2022-05-03 09:14:58 +10:00
Andrew Tridgell
ca00eceb98
AP_Mission: support NAV_SCRIPT_TIME
2021-11-08 21:08:52 +11:00
Andrew Tridgell
24f40d9049
AP_Mission: allow for more jump commands on high memory boards
...
and allow override of maximum in custom hwdef.dat
2021-10-13 12:49:12 +11:00
Iampete1
d9e30452ed
AP_Mission: only continue after land if next waypoint is a takeoff
2021-09-14 08:24:02 +09:00
Iampete1
32b3c8ea08
AP_Mission: caculate distance to do_land_start with no location correctly
2021-07-27 09:00:11 +09:00
Michael du Breuil
fa7a89ef83
AP_Mission: Cleanup the header to reduce flash cost
...
Removes unneeded set's of memory that is already zero'd. It also changes
_flags to be all bool to match the actual usage, and removes the width
specifiers from them. This increases the RAM cost of AP_Mission by 4
bytes, but saves on flash. The RAM cost was eliminated by rearranging
members.
2021-06-22 10:08:02 +10:00
Peter Barker
fd4fb15e7d
AP_Mission: add support for AP_Logger into AP_Periph
2021-06-08 09:57:55 +10:00
Randy Mackay
e24f23e076
AP_Mission: add restart_current_nav_cmd
2021-04-03 12:07:59 +09:00
Randy Mackay
2357568eb1
AP_Mission: Mission_Command struct gets comparison operators
2021-04-03 12:07:59 +09:00
Iampete1
849ad8c6de
AP_Mission: support MAV_CMD_DO_SEND_SCRIPT_MESSAGE
2021-03-31 19:23:13 +11:00
Peter Barker
d4a0222f76
AP_Mission: allow an auxillary function to be triggered as a DO command
2021-03-31 11:36:09 +11:00
Randy Mackay
3a66b2667b
AP_Mission: correct spelling of interrupted
2021-03-09 11:49:42 +11:00
Peter Barker
c3b005e1d9
AP_Mission: add mission command to turn sprayer on and off
2021-02-16 22:36:43 +11:00
Patrick José Pereira
266ed9541b
AP_Mission: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Jaaaky
0e569e5566
AP_Mission: Fix comments for DO_CHANGE_SPEED
2020-12-08 11:54:25 +11:00
Tom Pittenger
043a3ba06e
AP_Mission: add accessor for in_landing_flag()
2020-09-17 07:31:43 -07:00
auturgy
9aeb456a1d
AP_Mission: NFC Correct some comments
...
Some of the code comments were clearly C&P errors. This fixes that. I haven't corrected typos etc, to preserve history.
2020-07-17 09:12:48 +09:00
Andrew Tridgell
7c49723f19
AP_Mission: added continue after land mission option
...
this allows for option to continue a mission after a landing is
complete. The default in copter was to continue, so adding this
option makes copter not continue by default. Plane already disarmed on
land complete.
2020-06-02 09:12:22 +09:00
Buzz
963b25059d
AP_Scripting: allow to get/set/create arbitrary mission items
...
fetch item/s by their index, and review wp data, etc.
AP_Mission: ran mission files through approved astyle as they were non-compliant before this( astyle --options=Tools/CodeStyle/astylerc )
2020-05-12 09:58:14 +10:00
Gone4Dirt
d813ee27de
AP_Mission: Added immediate trigger for DO_SET_CAM_TRIGG_DIST
2020-03-31 10:05:40 +11:00
Gone4Dirt
537a259ab6
AP_Mission: added to rewind mission on resume with MAV_CMD_DO_SET_RESUME_REPEAT_DIST
2020-03-11 09:48:40 +11:00
Peter Hall
46714d69a5
AP_Mission: add get id functions for scripting
2020-02-27 18:07:31 -07:00
Gone4Dirt
d813a70c8d
AP_Mission: Added force resume for when MIS_RESTART=1
2020-02-25 10:05:12 +11:00
Gone4Dirt
44718cd00f
AP_Mission: Check if failsafes should interupt landing approach
2020-02-18 21:03:29 +11:00
Andrew Tridgell
5ae6ad2a59
AP_Mission: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Peter Barker
405bf0ce7f
AP_Mission: adjust for new vehicle base class
2019-10-08 11:26:04 +11:00
Peter Barker
a7c5f5a6c8
AP_Mission: break out a convert_MISSION_ITEM_to_MISSION_ITEM_INT method
...
AP_Mission: remove unused mission_cmd_to_mavlink
AP_Mission: eliminate mavlink_to_mission_cmd (use mavlink_int_to_mission_cmd)
2019-05-22 08:53:45 +10:00
Peter Barker
9cd881b56c
AP_Mission: move responsibility for parachute deployment up
2019-02-13 09:25:27 +09:00
Peter Barker
402be4eaca
AP_Mission: const writing of commands to storage
2019-01-30 19:20:27 +09:00
Peter Barker
b12dc3cde7
AP_Mission: adjust for Location_Class and Location unification
2019-01-16 11:45:29 +11:00
Peter Barker
1b2ac38691
AP_Mission: adjust for Location no longer being packed
2019-01-16 11:45:29 +11:00
Michael du Breuil
fccf23dff2
AP_Mission: Add a helper to check if a mission contains an item
2019-01-08 10:39:50 +11:00
Michael du Breuil
670eaf8782
AP_Mission: Accept and store landing aborts in the mission
2018-12-15 09:03:25 +11:00
Peter Barker
a9b94ae13d
AP_Mission: use ahrs singleton
2018-11-08 10:01:16 +09:00