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
Randy Mackay
1fbc7b99da
AP_Mission: add CMD_DO_WINCH string
...
This is used to send a text message to the GCS as the command starts
2020-08-07 21:55:07 +09: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
murata
cd981695a6
AP_Mission: Change the tab code to whitespace
2020-04-27 09:29:25 +09: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
Andrew Tridgell
41353d9357
AP_Mission: fixed build when no AP_Parachute
2020-01-18 13:48:48 +11:00
Peter Barker
140df5b93b
AP_Mission: add string for DO_MOUNT_CONTROL
2019-12-10 14:00:30 +11:00
Peter Barker
b0ea662c9b
AP_Mission: consider _INT frames equivalent to non _INT variants
...
AP_Mission: consider TERRAIN_ALT_INT equivalent to TERRAIN_ALT
AP_Mission: consider RELATIVE_ALT_INT equivalent to RELATIVE_ALT
AP_Mission: consider GLOBAL_INT equivalent to GLOBAL
2019-12-05 08:03:33 +08:00
Peter Barker
aae524b9d5
AP_Mission: add sanity check that 16-bit commands aren't stored_in_location
...
This is a rather confusing problem when it happens during development,
so a sanity check is good. What you see in dev is that your latitude
gets corrupted between when you store and retrieve it, with no warnings
that you're doing something wrong.
2019-10-18 15:16:21 +11:00
Peter Barker
405bf0ce7f
AP_Mission: adjust for new vehicle base class
2019-10-08 11:26:04 +11:00
Andrew Tridgell
dcd9003831
Revert "AP_Mission: Better AUTO watchdog restore"
...
This reverts commit d774bf3ea5
.
2019-08-27 13:18:12 -06:00
Jaaaky
d774bf3ea5
AP_Mission: Better AUTO watchdog restore
...
This allows to run any commands following the last nav_waypoint
that may be required or change flight behavior for following wps
2019-08-25 06:40:34 -06:00
Peter Barker
9cf9497552
AP_Mission: mark MIS_TOTAL as internal-use-only
2019-08-22 09:23:56 +10:00
Tom Pittenger
e70ff1b30a
AP_Mission: update NAV_DELAY comment that said wrong ID number
2019-08-14 10:45:29 -07:00
Peter Barker
b860676f12
AP_Mission: examples: var_info is now in GCS_MAVLINK_Parameters
2019-08-14 18:25:43 +10:00
Michael du Breuil
c19e4f2147
AP_Mission: Refactor read_cmd_from_storage for clarity
2019-07-31 09:13:43 +10:00
Andrew Tridgell
5ac2aad2f8
AP_Mission: fixed valgrind error on writing mission items
2019-06-24 18:19:14 +08:00
Peter Barker
1ff3cd442d
AP_Mission: fix example by instantiating a GCS object
2019-06-20 13:40:28 +10: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
Andrew Tridgell
9173989e63
AP_Mission: save waypoint number for watchdog reset
2019-05-15 15:33:48 +10:00
Jaaaky
dd4f7e53c3
AP_Mission: Send jump tracking info to GCS
...
Send jump wp index and jump count to GCS to allow user to track it.
Foramtted as other mission item messages
2019-04-25 16:35:21 +09:00
Peter Barker
c6115f4ff3
AP_Mission: add string for spline waypoint
2019-04-16 21:41:58 +10:00
Pierre Kancir
92be1780ac
AP_Mission: move get_bearing_cd to Location and rename to get_bearing_to
2019-04-06 09:10:28 +11:00
Michael du Breuil
c996dabc12
AP_Mission: Include camera
2019-04-05 20:12:53 +11:00
Peter Barker
30d2a2a4fd
AP_Mission: emit mission descriptions as they are run
...
Also add more mission-type-id to string mappings
Abort in SITL if no description for item
2019-04-02 11:07:58 +11:00
Pierre Kancir
b58ded8e0c
AP_Mission: use void casting to prevent GCC warning on memcopy
2019-03-26 10:43:23 +11:00
Peter Barker
9ab33fd3c4
AP_Mission: use enum class for AltFrame enumeration
2019-03-19 10:31:18 +11:00
Randy Mackay
1e1f14f6e9
AP_Mission: add text string for do-guided-limits
2019-03-15 14:51:35 +09:00
Randy Mackay
f4416cd3f2
AP_Mission: nav-guided-enable command stores location
...
this allows sending the location to an offboard navigation system
also add text string for nav-guided-enable command
2019-03-15 14:51:35 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
fa9a460c30
AP_Mission: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Peter Barker
25282c2989
AP_Mission: rearrange for early-exit if command not found for index
2019-02-21 08:31:12 +11:00
Peter Barker
3c3cda81e9
AP_Mission: remove redundant check
...
get_next_do_command does this check
2019-02-21 08:31:12 +11:00
Peter Barker
f5d50935fd
AP_Mission: scope variables more tightly
2019-02-21 08:31:12 +11:00
Peter Barker
7da35e9d08
AP_Mission: change while loop out for for loop
2019-02-21 08:31:12 +11:00
Peter Barker
c594e51922
AP_Mission: limit memcpy to constant 12 bytes
...
... essentially to make static analyzers happy
2019-02-20 16:35:55 +11: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
2fa0b61f8b
AP_Math: update example/test for Location_Class merge
2019-01-16 11:45:29 +11: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
Peter Barker
59497c4635
AP_Mission: remove unused copy_alt variable
2019-01-03 10:21:31 +09: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
Peter Barker
1e39c17908
AP_Mission: return true if cmd-do was handled, false otherwise
2018-10-30 15:37:18 +11:00
Peter Barker
b1b5a7868d
AP_Mission: handle common camera commands
2018-10-30 15:37:18 +11:00
Peter Barker
51d4b2da34
AP_Mission: move servorelayevents handling into AP_Mission
2018-10-30 15:37:18 +11:00
Peter Barker
182d3634aa
AP_Mission: handle gripper mission items
2018-10-30 15:37:18 +11:00
Peter Barker
8ebec6a237
AP_Mission: create start_command and verify_command wrappers
2018-10-30 15:37:18 +11:00
Michael du Breuil
7db5daadad
AP_Mission: If a command fails to start immediately cycle to the next
2018-09-11 06:42:00 +10:00
Peter Barker
71bff63bff
AP_Mission: remove erroneous comment about clear()
2018-09-04 10:32:26 +10:00
Peter Barker
16b49399db
AP_Mission: add singleton
2018-09-04 10:32:26 +10:00
Michael du Breuil
e878558d41
AP_Mission: Reduce the number of places _set_cmd is called from
2018-08-28 10:01:36 +10:00
Andrew Tridgell
0289ad03df
AP_Mission: added semaphore for thread access
2018-08-25 15:44:36 +10:00
Peter Barker
32bc1860de
AP_Mission: starts_with_takeoff_cmd skips past mav_cmd_nav_delay
2018-08-20 14:15:40 +09:00
Peter Barker
9af11d79d1
AP_Mission: remove pointless else clauses
2018-08-20 14:15:40 +09:00
Francisco Ferreira
930981914a
AP_Mission: fix small bug in d5a4c6b
2018-04-26 23:21:29 +01:00
Michael du Breuil
d5a4c6b5bc
AP_Mission: Sanity check for NaN's and infinities
2018-04-26 14:48:14 -07:00
Lucas De Marchi
25490b6151
AP_Mission: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
beb85e49fb
AP_Mission: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
89d3289400
AP_Mission: AP_AHRS no longer requires GPS in constructor
2017-12-27 00:58:02 +00:00
Andrew Tridgell
a3e07f66a1
AP_Mission: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Peter Barker
30355fa6d8
AP_Mission: provide short description for mission item types
2017-11-27 10:28:24 +09:00
Randy Mackay
8b4345f29d
AP_Mission: add winch support
2017-10-27 09:20:38 +09:00
Michael du Breuil
a0a16b8369
AP_Mission: Load yaw heading for landing commands
2017-10-17 14:37:11 -07:00
Michael du Breuil
dbf67aa38a
AP_Mission: Remove duplicated code associated with copy the waypoint location
2017-10-16 10:02:33 -07:00
Lucas De Marchi
bfd13dfe87
global: use static method to construct AP_AHRS_DCM
2017-09-26 03:01:21 +01:00
Lucas De Marchi
b36a5919f5
global: use static method to construct AP_Mission
...
This also move the initialization to be in the header for those that
weren't already to maintain consistency.
2017-09-26 03:01:21 +01:00
Lucas De Marchi
ef50783268
AP_Mission: add static create method
2017-09-26 03:01:21 +01:00
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
2017-09-26 03:01:21 +01:00
Lucas De Marchi
87b30b4552
global: use static method to construct AP_InertialSensor
2017-09-26 03:01:21 +01:00
Lucas De Marchi
c1a957fbf3
global: use static method to construct Compass
2017-09-26 03:01:21 +01:00
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
2017-09-26 03:01:21 +01:00
ChrisBird
46c982d64f
AP_Mission: add OPTIONS parameter
...
First option added now is to clear the mission on reboot
Fixes #5743
2017-08-29 21:28:19 +01:00
Michael du Breuil
db6d8c9c43
AP_Mission: Use a static assert to check content size
2017-08-29 14:37:56 +01:00
Randy Mackay
638ba02d5f
AP_Mission: add support for Set-Yaw-Speed command
...
This is initially only intended for use by Rover
2017-08-05 11:20:58 +09:00
Peter Barker
eab60e6163
AP_Mission: eliminate GCS_MAVLINK::send_statustext_all
2017-07-11 23:53:53 +01:00
Michael du Breuil
7e5aa5bc4c
AP_Mission: Prohibit resuming mission waypoints that are no longer in the mission
2017-05-24 10:19:56 -07:00
murata
9481e0d158
AP_Mission: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Peter Barker
591bb32496
AP_Mission: correct off-by-one check when fetching mission items
2017-01-21 15:30:11 +09:00
Tom Pittenger
a81f5cefbe
AP_Mission: don't wrap when masking via HIGH/LOWBYTE
2017-01-06 17:35:44 -08:00
Eugene Shamaev
dc3d10a28b
AP_Mission: waypoint command parsing
2017-01-06 17:35:44 -08:00
Peter Barker
6fd771afc9
AP_Mission: starts_with_takeoff uses get_next_nav_cmd
2016-12-24 11:49:35 +09:00
Michael du Breuil
f9acca67d3
AP_Mission: Align with spec better
...
Location is out of spec for NAV_RETURN_TO_LAUNCH
NAV_LOITER_UNLIM couldn't roundtrip the provided loiter radius
2016-12-05 17:31:36 -08:00
Peter Barker
20b83861e9
AP_Mission: support for NAV_CMD_PLACE
...
AP_Mission: check return values of mission fetches
2016-12-02 12:52:50 +11:00
Tom Pittenger
40777e9e74
AP_Mission: move jump_to_landing_sequence() to AP_Mission
2016-11-25 19:07:30 -08:00
Peter Barker
9d0d451c48
AP_Mission: add missing parameter metadata
2016-10-27 09:15:03 -07:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
2016-10-11 13:03:08 +11:00
Andrew Tridgell
37f71bc6d6
AP_Mission: support DO_ENGINE_CONTROL
2016-07-25 10:06:03 +10:00
Grant Morphett
4e8666cee9
AP_Mission: Adding new MAV_CMD_DO_SET_REVERSE for Rovers.
...
Rover now supports reverse via this MAV_CMD.
2016-07-17 08:15:33 +10:00
Tom Pittenger
41c9cace68
AP_Mission: mavlink parsing should use check_lat/lng functions
2016-06-06 13:08:37 -07:00
Michael du Breuil
fb07b8c4cc
Mission: fix bounds checking of MISSION_ITEM lat/lon
2016-06-06 10:08:45 -07:00
Randy Mackay
54731a139f
AP_Mission: rename starts_with_takeoff_cmd
2016-05-19 19:43:22 +09:00
Niti Rohilla
9ec0000691
AP_Mission: add check_takeoff_cmd
...
This checks that the first command in the mission is a takeoff command which helps avoid mission setup errors in which users forget to start a mission with a takeoff command
2016-05-19 19:43:17 +09:00
Niti Rohilla
d771017c25
AP_Mission: support MAV_CMD_NAV_DELAY command
2016-05-19 16:16:02 +09:00
Tom Pittenger
9073ac91ff
AP_Mission: 2of3 add loiter_xtrack option flag for post-loiter navigation via param4
...
0 to crosstrack from center of waypoint, 1 to crosstrack from tangent exit location
2016-05-16 11:50:54 -07:00
Tom Pittenger
f1186b8b5c
AP_Mission: store previous nav cmd id
2016-05-13 17:22:03 -07:00
Ricardo de Almeida Gonzaga
dfe38b61de
AP_Mission: Fix typos
2016-05-13 19:20:06 -03:00
Michael Day
62a7074dd7
AP_Mission: Added mavlink_cmd_long_to_mission_cmd method.
2016-05-06 11:59:44 -07:00
Michael Oborne
fb3fc118f1
AP_Mission: support MAVLINK_MSG_ID_MISSION_ITEM_INT
2016-05-01 07:13:23 +10:00
Michael du Breuil
fff21a1db9
Mission: Remove support for CONDITION_CHANGE_ALT
2016-04-30 10:56:09 +09:00
Michael du Breuil
831ae72908
AP_Mission: Remove DO_SET_PARAMETER
2016-04-25 09:59:59 +09:00
Andrew Tridgell
3a5e4c80ca
AP_Mission: support DO_VTOL_TRANSITION command
...
first 16 bit command ID
2016-04-23 21:03:46 +10:00
Andrew Tridgell
09c3c36c00
AP_Mission: allow for 16 bit command IDs
...
this uses command ID 0 to allow for 16 bit command IDs. When used it
limits the content to just 10 bytes.
2016-04-23 21:03:45 +10:00
Lucas De Marchi
2790c16905
AP_Mission: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Tom Pittenger
1c513a99a0
AP_Mission: removed LOITER_TO_ALT heading requirement param field
...
- and increased loiter radius max size (8bit to 16bit), it will soon always have heading requirement along with all loiter cmds
2016-03-02 08:48:24 -08:00
Tom Pittenger
068374658c
AP_Mission: utilize radius for loiter commands
2016-02-29 06:43:19 -08:00
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
2016-01-15 16:46:41 -02:00
Andrew Tridgell
ad59cb9f5c
AP_Mission: support VTOL_TAKEOFF and VTOL_LAND
2016-01-09 07:38:53 +11:00
Jonathan Challinger
30a563044e
AP_Mission: fix example build
2015-12-29 10:46:35 -08:00
Lucas De Marchi
326e74f64f
AP_Mission: don't link unused AP_Curve library
2015-12-28 10:23:23 -02:00
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
2015-12-27 15:58:12 -02:00
DonLakeFlyer
7cd3d8bfdc
AP_Mission: better mission errors
2015-12-21 16:02:23 +11:00
Lucas De Marchi
3818a8a703
AP_Mission: remove unused AP_ADC_AnalogSource
2015-12-03 13:32:43 +11:00
Caio Marcelo de Oliveira Filho
6e7b73610d
waf: add waf support
2015-12-03 07:54:30 +11:00
Caio Marcelo de Oliveira Filho
01e4265ce1
AP_Mission: example uses millis/micros/panic functions
2015-11-20 12:32:09 +09:00
Caio Marcelo de Oliveira Filho
f20a4e413c
AP_Mission: use millis/micros/panic functions
2015-11-20 12:32:03 +09:00
Lucas De Marchi
3941bb7347
AP_Mission: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
2015-11-04 12:14:12 +11:00
Lucas De Marchi
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
2015-10-30 14:35:25 +09:00
Lucas De Marchi
a964ac38ec
Replace use of print_P() with print()
2015-10-30 14:35:21 +09:00
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Caio Marcelo de Oliveira Filho
118de8d01f
AP_Mission: remove unnecessary includes from example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
ec52df991c
build: compile only the HAL files needed by the board
...
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Randy Mackay
756d564b7c
Mission: sanity check command altitudes
2015-10-19 16:15:08 +09:00
Tom Pittenger
cb20325593
AP_Mission: added flight stage FLIGHT_LAND_ABORT
...
- add get_prev_nav_cmd_with_wp_index(). This is different than get_prev_nav_cmd_index() in that it only stores the index if there is a valid lat/lng (+1 squashed commits)
- added mission item command to NAV_LAND which is the abort takeoff altitude. If 0 then use last takeoff if available, else use 50m
2015-09-09 09:04:24 +10:00
Tom Pittenger
1026e7df45
AP_Mission: updated comment
...
altitude and lat/lng are all used
2015-09-08 17:05:54 +10:00
Tom Pittenger
15b242832e
AP_Mission: lat/lng == 0 bug fix
...
was using wrong logic to check for lat/lng == 0
2015-08-29 21:17:35 +10:00
Tom Pittenger
41508457e1
AP_Mission: add get_prev_nav_cmd_with_wp_index()
...
This is different than get_prev_nav_cmd_index() in that it only stores the index if there is a valid lat/lng
2015-08-29 21:17:35 +10:00
Randy Mackay
1271e531e2
Mission: sanity check location
2015-08-27 15:15:56 +09:00
Michael Day
a5e1d8e902
AP_Mission: Give CONINTUE_AND_CHANGE_ALT a parameter: climb/descend
...
Param 1 denotes which direction the user expects the plane to
travel when changing altitude:
0 = no expectation, command completes when within 5 m of altitude.
1 = climb expected, command completes at or above altitude.
2 = descent expected, command completes at or below altitude.
2015-08-20 11:37:17 +10:00
Gustavo Jose de Sousa
34d1a29ec1
AP_Mission: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:38:19 +10:00
Randy Mackay
766ccea3be
Mission: fix bug causing first do-cmd to be run many times
...
The symptom was that if the very first command in the mission was a
do-command, it would be run after every nav-command that didn't have
another do-command before it.
2015-07-17 12:15:08 +09:00
Randy Mackay
429346f4bc
AP_Mission: add missing breaks to case statement
2015-07-17 12:15:06 +09:00
Tom Pittenger
e6122d1a4e
AP_Mission: ensure cache coherence on mission resume
...
- when resuming a mission we should read the value from storage of the same index to ensure we're not continuing an old cached version of the mission item.
- inherent problem: DO commands will continue and will be unaffected unless the new mission has a different DO_ command structure. If so, a set_current_cmd() or reset() should be issued by the GCS.
2015-06-25 10:21:06 +10:00
Andrew Tridgell
9bd8e215b2
AP_Mission: enable DO_AUTOTUNE_ENABLE
2015-06-15 09:20:54 +10:00
Andrew Tridgell
08acde2766
AP_Mission: added ALTITUDE_WAIT NAV command
...
used for HAB launch
2015-06-15 09:20:54 +10:00