Tom Pittenger
15b242832e
AP_Mission: lat/lng == 0 bug fix
...
was using wrong logic to check for lat/lng == 0
10 years ago
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
10 years ago
Randy Mackay
1271e531e2
Mission: sanity check location
10 years ago
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.
10 years ago
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.
10 years ago
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.
10 years ago
Randy Mackay
429346f4bc
AP_Mission: add missing breaks to case statement
10 years ago
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.
10 years ago
Andrew Tridgell
9bd8e215b2
AP_Mission: enable DO_AUTOTUNE_ENABLE
10 years ago
Andrew Tridgell
08acde2766
AP_Mission: added ALTITUDE_WAIT NAV command
...
used for HAB launch
10 years ago
Randy Mackay
9c28d61a5c
Mission: protect against endless loops of do-commands
10 years ago
Andrew Tridgell
767aeedf01
AP_Mission: fixed example sketch
10 years ago
Andrew Tridgell
d1ed4c863c
AP_Mission: convert example from .pde to .cpp
10 years ago
Andrew Tridgell
ec2d429513
AP_Mission: all vehicles now use functors
10 years ago
Andrew Tridgell
e3f8e22fc6
AP_Mission: removed BUILD_DELEGATES code
...
no longer needed
10 years ago
Lucas De Marchi
384a3bfcc3
AP_Mission: allow to use functor
10 years ago
Andrew Tridgell
e7ba2c8d93
AP_Mission: use APM_BUILD_DELEGATES
10 years ago
Andrew Tridgell
12cbf7888f
AP_Mission: support member functions for rover
10 years ago
Tom Pittenger
79605de8f5
AP_Mission: replace fabs() with fabsf()
10 years ago
Andrew Tridgell
0c142bb25a
AP_Mission: fix for HAL_SITL rename
10 years ago
Randy Mackay
ed61d961c3
Mission: fix example sketch
10 years ago
Randy Mackay
dfadcad69d
Mission: allow zoom_step to be negative
10 years ago
Michael Day
3d3267d472
AP_Mission: Now support mission item MAV_CMD_NAV_LOITER_TO_ALT
10 years ago
Randy Mackay
87e6452ee9
Mission: bug fix when jump target is zero
...
This would result in copter flying to a waypoint high above home
10 years ago
Randy Mackay
888c2289ce
Mission: support do-digicam-control parameters
10 years ago
Randy Mackay
f6021010c5
Mission: support do-mount-control
10 years ago
Randy Mackay
b01f9505b1
Mission: fix example sketch
...
Also replace printf with print where possible
10 years ago
Andrew Tridgell
3a1cbaeb25
AP_Mission: fix for new compass API
10 years ago
Randy Mackay
4772fd338c
Mission: fix example sketch
10 years ago
Randy Mackay
355a92aff4
Mission: fix example sketch
10 years ago
Andrew Tridgell
3d433d2106
AP_Mission: loop check is only needed in one place
10 years ago
Andrew Tridgell
540cadc086
AP_Mission: prevent infinite loop with linked jump commands
...
this prevents a "jump loop" from causing a firmware lockup. Thanks to
dellarb for reporting this!
10 years ago
Andrew Tridgell
8aa1a89081
AP_Mission: updates for new AP_Baro API
10 years ago
Randy Mackay
a44b4b5e87
Mission: allow 15 do-jump commands on Pixhawk
10 years ago
Andrew Tridgell
ede920f293
AP_Mission: ensure location options are zero at start of mavlink conversion
10 years ago
Michael Day
b3e693daa4
AP_Mission: Support MAV_CMD_DO_FENCE_ENABLE as a mission item.
10 years ago
Michael Day
b36c1b2c3d
AP_Mission: support for MAV_CMD_CONTINUE_AND_CHANGE_ALT
10 years ago
Michael Day
83c2f497a3
AP_Mission: Change jump_to_landing_sequence to get_landing_sequence_start
10 years ago
Andrew Tridgell
868ee3af23
AP_Mission: fixed example build
10 years ago
Andrew Tridgell
15a661e17a
AP_Mission: fixed logic in jump_to_landing_sequence()
...
see comments on drones-discuss
10 years ago
Andrew Tridgell
8c6b875dcc
AP_Mission: avoid the AP_AHRS cast
...
get_position() is now const
10 years ago
Michael Day
ea91f4d47b
AP_Mission: Added support for MAV_CMD_DO_LAND_START
10 years ago
Randy Mackay
be1621877f
Mission: support GUIDED_ENABLE and GUIDED_LIMITS
...
This replaces the ardupilot only NAV_GUIDED command.
Also remove support for NAV_VELOCITY mission command which will be
replaced by SET_POSITION_TARGET non-mission command.
10 years ago
Randy Mackay
5ca3c4baf6
Mission: fix CHANGE_ALT to store climb rate in lat param
...
The slightly confusing storage of climb rate in the lat field led to a
bug fix a few months ago that actually created a bug.
11 years ago
Randy Mackay
1ce8e453c2
Mission: add support for DO_GRIPPER
11 years ago
Andrew Tridgell
effccacf46
AP_Mission: fixed acceptance radius outgoing
...
this needs to match incoming
11 years ago
Andrew Tridgell
3a5e960fe5
AP_Mission: revert APM_BUILD_TYPE change
11 years ago
Andrew Tridgell
36b854fa98
AP_Mission: fixed build for arduino IDE
11 years ago
Andrew Tridgell
c4f84232e2
AP_Mission: make cmd.p1 be radius on plane for NAV_WAYPOINT
11 years ago
Randy Mackay
d6aa868cac
Mission: start next nav cmd immediately after prev completes
11 years ago