Peter Barker
ebc8a71c36
GCS_MAVLink: allow cancelling of mission upload by sending MISSION_CLEAR_ALL
2024-08-20 20:46:41 +10:00
Peter Barker
c0735d136c
GCS_MAVLink: factor out a check_receiving_cancel method
...
allow reuse of this logic
2024-08-20 20:46:41 +10:00
Peter Barker
4dac24796d
GCS_MAVLink: use GCS_SEND_TEXT rather than gcs().send_text
...
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Peter Barker
9f0e191505
GCS_MAVLink: deny attempt to do partial upload while mission transfer in progress
...
fixes an internal error where we make sure resources are not allocated before allocating upload resources.
The user may receive a DENIED message if they move a waypoint before an item has been transfered to the vehicle.
2024-05-15 12:26:34 +10:00
Peter Barker
bd3e58c413
GCS_MAVLink: mark as not receiving when too many items in MISSION_COUNT.count
...
we left things in the "receiving" state, which would eventually lead to a timeout, rather than just failing instanenously with the correct code.
2024-05-14 09:21:53 +10:00
Peter Barker
90d39a6ee0
GCS_MAVLink: add build option for deprecated MISSION_REQUEST
...
replaced by MISSION_REQUEST_INT
2023-10-17 10:40:12 +11:00
Peter Barker
ed5da4ead2
GCS_MAVLink: allow more libraries to compile with no HAL_GCS_ENABLED
2023-09-05 22:23:51 +10:00
Peter Barker
adb364cd98
GCS_MAVLink: have GCS_MAVLINK::send_message(id, buffer) check size
2023-02-25 17:41:44 +11:00
Peter Barker
65b5e0455b
GCS_MAVLink: warn if GCS send MISSION_ITEM rather than MISSION_ITEM_INT
2022-09-13 11:50:54 +10:00
Peter Barker
8cdb304871
GCS_MAVLink: warn if MISSION_REQUEST is used
2022-09-13 11:50:54 +10:00
Michael du Breuil
ff94ef1c60
GCS_MAVLink: Check for mission space before sending items
2022-09-07 17:52:23 +10:00
murata
698f967b63
GCS_MAVLink: Notify the maximum number of missions
...
Update libraries/GCS_MAVLink/MissionItemProtocol.cpp
Co-authored-by: WickedShell <Wicked.Shell.Scripts@gmail.com>
GCS_MAVLink: Notify the maximum number of missions
2021-02-03 20:31:50 +11:00
Peter Barker
81454c7a40
GCS_MAVLink: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
55d37e5d0e
GCS_MAVLink: correct slowing down of waypoint re-requests
...
These re-requests shouldn't be slowed down by a factor of 20.
This was a left-over from when we did these in terms of 20ms intervals
(50Hz loop rate)
2020-03-31 11:15:04 +11:00
Peter Barker
6d0c5da84a
GCS_MAVLink: allow upload of fence using mission item protocol
...
GCS_MAVLink: add support for fence inclusion circles
GCS_MAVLink: factor out a transfer_is_complete; start commenting properly
2019-09-28 07:58:48 +09:00
Peter Barker
57528b94cf
GCS_MAVLink: allow complete() call on subclasses to fail
...
Also terminate uploads if any error occurs fetching items
2019-08-07 12:07:59 +10:00
Peter Barker
4b012ab62b
GCS_MAVLink: deny upload of non-MISSION items if not doing mavlink2
2019-08-06 13:58:44 +10:00
Peter Barker
4e95832433
GCS_MAVLink: send mission acks for bad MISSION_ITEM requests
2019-08-06 13:58:44 +10:00
Peter Barker
afd623a6fa
GCS_MAVLink: use send_message to send mission items
...
It is less error-prone to use this new send_message function.
In particular, one of the parameters to these functions was using the
wrong constant when sending a mission item message.
2019-08-06 13:58:44 +10:00
Peter Barker
8fc6e16a4a
GCS_MAVLink: fill missing seq and type fields in MISSION_ITEM
...
GCS_MAVLink: fill mission type in return MISSION_ITEM packets
GCS_MAVLink: fill in return sequence number for MISSION_ITEM messages
2019-08-06 13:58:44 +10:00
Peter Barker
93ca243987
GCS_MAVLink: rearrange mission item handling code
...
This splits the missionitemprotocol handling entirely into separate
header files and separate compilation units.
2019-07-18 10:48:57 +09:00