Commit Graph
123 Commits
Author SHA1 Message Date
Lorenz Meier d80be2e4ff MAVLink: better output handling 2017-07-08 19:36:58 +02:00
Daniel Agar 64ed96d81a clang-tidy readability-simplify-boolean-expr 2017-06-02 19:35:18 -04:00
Beat Küng a761c4189e MavlinkMissionManager: remove MavlinkStream inheritance 2017-05-18 09:48:14 +02:00
Mohammed Kabir ad5fe5f44a Add support for SET_CAMERA_MODE command; Not used yet. 2017-05-12 22:11:17 +02:00
Mohammed Kabir 2e92a3946d camera_trigger : completely refactor state handling 2017-05-12 22:11:17 +02:00
Don Gagne 96458d3184 Support for RTL and Delay mission commands 2017-04-18 08:56:01 +02:00
Julian Oes 3c1d785d86 mavlink_mission: set INT frame correctly
Also when formatting malvink mission items from internal mission items,
the INT flag should be obeyed.
2017-04-01 20:07:55 +02:00
Julian Oes 80ce1b6dd8 mavlink_mission: support INT altitude frames
The relative altitude flag was not set correclty when waypoints are sent
using the INT protocol.
2017-04-01 20:07:55 +02:00
Lorenz Meier 7695b65b7f MAVLink app: Default to MISSION, not MISSION_INT
In order to ensure correct transmission the mission system needs to default to the legacy protocol and switch to the new implementation when these conditions are met:
  * If the GCS sends a MISSION_REQUEST_INT - it will do this based on the AUTOPILOT_VERSION flag indicating int mission support
  * If the autopilot sends a MISSION_REQUEST and has the AUTOPILOT_VERSION flag for 2.0 set, the GCS should NACK it, which will make the autopilot retry a MISSION_REQUEST_INT
  * If the autopilot sends a MISSION_REQUEST_INT and the GCS does not support it, the GCS will ignore and time out. The autopilot could retry now opportunistically with the old protocol, but this is not great for lossy links.
  * If the GCS sends a MISSION_ITEM_INT - this is a fallback
2017-03-16 23:16:39 +01:00
Lorenz Meier 2af5d1b929 Mission transfer: Fix retry logic
Previously the retry would not actually have been sent if nothing had been received in time.
2017-03-13 21:51:21 +01:00
Daniel Agar 6631e72d6f clang-tidy modernize-redundant-void-arg 2017-02-01 22:15:50 -05:00
Lorenz Meier 1c42cea28e MAVLink: Ignore bogus mission item requests silently 2017-01-15 01:47:10 +01:00
Daniel Agar c9956e25b4 mavlink fix code style 2017-01-07 01:03:18 -05:00
Lorenz Meier 737e18dccb MAVLink app: Fix VTOL reporting and prevent mission reached spam
The VTOL status reporting and the mission status reporting were both suboptimal. VTOL was too slow, mission reporting too fast
2016-12-25 18:15:51 +01:00
Lorenz Meier 1d98c8f202 MAVLink app: Correct use of unsubscribe 2016-12-19 20:39:03 +01:00
Daniel Agar c17c8884d1 implement MAV_CMD_DO_LAND_START 2016-11-19 15:48:10 +01:00
Lorenz Meier eaae1abdaf Simplify use of pitch_min 2016-10-23 16:26:03 +02:00
Lorenz Meier 9821499113 navigator / mission item: Compress fields into bitfield 2016-10-23 16:26:03 +02:00
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