Julian Oes
8450178849
mavlink: move MAV_CMDs according to value
2016-10-15 12:37:06 +02:00
Julian Oes
9842e49dc6
navigator/mavlink: photos and videos at waypoints
...
This adds the capability to forward the commands
- MAV_CMD_VIDEO_START_CAPTURE
- MAV_CMD_VIDEO_STOP_CAPTURE
- MAV_CMD_IMAGE_START_CAPTURE
- MAV_CMD_IMAGE_STOP_CAPTURE
at waypoints which will then be sent over mavlink to component id
100 aka MAV_COMP_ID_CAMERA.
2016-10-15 12:37:06 +02:00
Beat Küng
55bff206be
mission: add NAV_CMD_DO_SET_ROI & NAV_CMD_ROI
2016-10-07 10:57:26 +02:00
Beat Küng
241fd629ce
ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR
2016-09-30 13:50:51 +02:00
Julian Oes
660a9e13e7
mavlink_mission: improve comments about casting
2016-09-26 22:55:21 +02:00
Julian Oes
238f597b78
mavlink_mission: remove wrong comment
2016-09-26 22:55:21 +02:00
Julian Oes
047c0e44bd
mavlink_mission: support missions with int params
...
This brings support for the messages MISSION_REQUEST_INT and
MISSION_ITEM_INT which raises the lat/lon accuracy for waypoints.
2016-09-26 22:55:21 +02:00
Julian Oes
4453e4201b
navigator/mavlink: fixes for mission item reached message ( #5486 )
...
* navigator/mavlink: always send last reached item
Since we can't rely on mavlink that every message arrives, it makes
sense to continuously send the last reached waypoint.
* navigator: don't report reached for takeoff
If a takeoff waypoint has been inserted, we should not report that we
reached a mavlink mission item because we actually have not.
2016-09-13 21:52:28 +02:00
Lorenz Meier
720c445f21
MAVLink: Code style
2016-08-26 23:43:33 +02:00
Andreas Daniel Antener
9f4a91ab19
initialize waypoint transfer sequence with -1 ( #5274 )
2016-08-10 08:39:54 +02:00
lovettchris
b48c081e5c
Reset _transfer_in_progress if mavlink transfer times out. ( #5077 )
2016-07-15 14:59:30 -07:00
Daniel Agar
59b4350aa0
implement MAV_CMD_NAV_LOITER_TO_ALT and general mission cleanup
2016-07-12 23:36:05 +02:00
Julian Oes
00bffeaf72
mavlink: whitespace only
2016-06-07 22:10:56 +02:00
Julian Oes
1dea9433b7
mavlink: don't complain if there is no mission
2016-06-07 22:10:56 +02:00
Beat Küng
8c9b272545
mavlink udp: avoid spamming the console when disconnecting the Network or bcast addr not found ( #4611 )
2016-05-30 21:53:37 +02:00
Lorenz Meier
0a597d0d62
MAVLink: Update to version 2 compaat API
2016-05-19 20:13:32 +02:00
sander
a713fd4197
Implemented VTOL_TAKEOFF and VTOL_LAND commands
2016-04-02 21:29:25 +01:00
Andreas Antener
baa11e357d
refactored do_set_servo handling and generalized formatting of CMD mavlink mission items, fixes #3644
2016-02-08 11:09:12 +01:00
Andreas Antener
b75eaf3c4a
implemented takeoff before WP and move to WP before land
2016-02-08 11:09:10 +01:00
Andreas Antener
7a592d56a2
initialize mission item struct
2016-02-07 11:36:03 +01:00
sander
f0bad06bfd
Fixes https://github.com/PX4/Firmware/issues/3658
2016-02-03 11:48:42 +01:00
Andreas Antener
7e7b21cbdc
use raw parameter floats if mission item is a mission command
2016-01-11 08:19:00 +01:00
Lorenz Meier
5d9048280f
Fix code style
2015-12-21 14:15:24 +01:00
Lorenz Meier
2041e3f3bc
Handle unsupported commands gracefully in terms of their numerical range. Introduce an error code for out-of-range commands.
2015-12-21 09:19:39 +01:00
Lorenz Meier
fe4c67a781
Fixed MAVLink mission transmission
2015-10-30 18:42:10 +01:00
Lorenz Meier
90798a7cb6
Revert "Do not check component ID for mission handling partner"
...
This reverts commit e0e7a2414e .
2015-10-30 18:42:10 +01:00
Lorenz Meier
e0e7a2414e
Do not check component ID for mission handling partner
2015-10-30 16:59:37 +01:00
Don Gagne
51e9f686e3
Fix MAV_FRAME_MISSION usage
2015-10-12 15:06:20 -07:00
Lorenz Meier
1977dc1a3f
MAVLink app: Stop spamming the user with file system errors after two failures.
2015-09-07 10:23:15 +02:00
Lorenz Meier
a058ce4b8e
Mission: Do not emit status messages if nothing changes
2015-09-04 14:57:51 +02:00
Lorenz Meier
a0b20f223c
MAVLink: Adjust to uORB mission changes
2015-08-20 11:08:05 +02:00
fpvaspassion
456bdd070a
Cleanup of mission item parsing
2015-08-18 23:17:08 +02:00
fpvaspassion
477625a53c
Last corrections of PWM mission control
2015-08-18 23:17:08 +02:00
fpvaspassion
60be6a577f
git status
2015-08-18 23:17:07 +02:00
fpvaspassion
e6ffa16125
Implementation of 183 mission intem
2015-08-18 23:17:07 +02:00
oberion
2bcdcbedae
mavlink_mission: Removed hack. It is automatically set in the init phase after successful connection
2015-08-10 15:35:18 +02:00
oberion
a985b37c80
mavlink/mavlink_mission: Dirty fix for setting waypoints over multiple mavlink link
2015-08-05 16:14:17 +02:00
Mark Charlebois
a452478ef9
More fixups for orb_advert_t changed to void *
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:42:49 -07:00
Mark Charlebois
1ca05aaa64
orb_advert_t changed to void * and checks changed to nullptr
...
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.
Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:42:49 -07:00
Mark Charlebois
a734fc96d1
extensive orb_advert_t fixes
...
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.
The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.
Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:41:33 -07:00
Lorenz Meier
d351772a46
mavlink app: Be less chatty on startup
2015-01-09 09:09:40 +01:00
Ban Siesta
180e17de33
navigator: report using mission result if a DO_JUMP waypoint has been changed
2014-12-19 23:38:55 +00:00
Ban Siesta
c9ca61ef5b
mavlink: don't slow mission updates down like this, otherwise we might miss mission results
2014-12-19 23:34:18 +00:00
Thomas Gubler
7dfc67d032
fix mission item to mavink waypoint conversion
2014-09-03 17:52:24 +02:00
Lorenz Meier
9c75b9562e
Be more permissive with mission component IDs, renamed camera to onboard link but still accepting same commandline syntax
2014-08-21 14:39:17 +02:00
Anton Babushkin
3cbfe989c7
mavlink: missions manager compID cleanup, use the common compID, stict compID checks for incoming messages
2014-08-20 21:54:38 +02:00
Anton Babushkin
b31ddc193c
mavlink: tix mission manager to use MavlinkStream API
2014-07-24 19:31:25 +02:00
Anton Babushkin
a5f2d1b066
mavlink: new message sending API, includes fixed
2014-07-23 11:11:49 +02:00
Lorenz Meier
0144a7dacf
mavlink: Optimize to native types where possible, move things to optimize alignment
2014-07-12 18:43:09 +02:00
Lorenz Meier
7b768d11c3
Improve mission feedback, fix compile errors
2014-07-12 14:31:09 +02:00