Michael du Breuil
5000891a76
GCS_MAVLink: remove some unused includes
5 years ago
Peter Barker
2f60b230cd
GCS_MAVLink: use singleton to get AP_AdvancedFailsafe pointer
5 years ago
Peter Barker
8da978b913
GCS_MAVLink: use sending_mavlink1 method in send_rc_channels_raw
5 years ago
Andrew Tridgell
8bb6a67b36
GCS_MAVLink: refuse set of read-only parameters
5 years ago
Andrew Tridgell
98c2606c0a
GCS_MAVLink: fixed assumption on return of snprintf
5 years ago
Peter Barker
8fc55b9678
GCS_MAVLink: remove comm_get_available
...
available returns an unsigned integer, so this was just weird
5 years ago
Peter Barker
df5921a87c
GCS_MAVLink: gate AP_DEVO_Telem behind !HAL_MINIMIZE_FEATURES
6 years ago
Michael du Breuil
e5eeb6181d
GCS_MAVLink: Remove the usage of force_safety_no_wait
6 years ago
Michael du Breuil
a74f00d045
GCS_MAVLink: Remove single use method
6 years ago
Peter Barker
9da0efaaef
GCS_MAVLink: fill SYS_STATUS bits from AC_Fence
6 years ago
Michael du Breuil
c85c9faa6d
GCS_MAVLink: Directly include needed headers
6 years ago
Peter Barker
5d9b332bcb
GCS_MAVLink: log exectuted COMMAND_LONG and COMMAND_INT packets
6 years ago
Andrew Tridgell
cfc37f2089
GCS_MAVLink: log corrected timestamp for vision data
...
this allows for debugging of link lag issues
6 years ago
Peter Barker
2acc53ec17
GCS_MAVLink: break out of loop statement once we have a result
6 years ago
Peter Barker
052e721622
GCS_MAVLink: tweak timings debug messages
6 years ago
Peter Barker
4f9d1ada33
GCS_MAVLink: deny setting MIS_TOTAL parameter
...
Closes #11413
GCS_MAVLink: conform to parameter protocol requirements while ignoring sets
GCS_MAVLink: use internal-use-only param bit
6 years ago
Peter Barker
03c439f9ab
GCS_MAVLink: make update_sensor_status_flags private
6 years ago
Peter Barker
74670a77be
GCS_MAVLink: avoid allocating a GCS_MAVLINK per mavlink channel
6 years ago
Peter Barker
67bf00c1c3
GCS_MAVLink: ensure payload space before sending message ack
...
Also add comment about how we shouldn't be sending this message at all.
6 years ago
Peter Barker
bb542ca39a
GCS_MAVLink: queue AUTOPILOT_VERSION for sending instead of direct-send
...
Also allows the message to be requested for streaming or with
REQUEST_MESSAGE
We weren't checking for buffer space before sending this out, so it was
a possible source of corruption.
6 years ago
Peter Barker
57528b94cf
GCS_MAVLink: allow complete() call on subclasses to fail
...
Also terminate uploads if any error occurs fetching items
6 years ago
Peter Barker
4b012ab62b
GCS_MAVLink: deny upload of non-MISSION items if not doing mavlink2
6 years ago
Peter Barker
4e95832433
GCS_MAVLink: send mission acks for bad MISSION_ITEM requests
6 years ago
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.
6 years ago
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
6 years ago
Peter Barker
cf0b7cf016
GCS_MAVLink: pass link object in place of channel to compass cal
...
Also eliminate intermediate function as just adding noise
6 years ago
Peter Barker
71533c7c5c
GCS_MAVLink: correct frame on rally mission items
6 years ago
Peter Barker
880e96448b
GCS_MAVLink: tighten type on mavlink_coordinate_frame_to_location_alt_frame
6 years ago
Peter Barker
979a9fb679
GCS_MAVLink: ensure item being converted is a rally point
6 years ago
Randy Mackay
767408ffe9
GCS_MAVLink: resolve gcs::send_text compiler warning
6 years ago
Peter Barker
5e55aedd20
GCS_MAVLink: add printf-format attribute to send_text methods
6 years ago
Peter Barker
0bbe049477
GCS_MAVLink: assert max length of statustexts we send to the GCS
6 years ago
Andrew Tridgell
58b739db18
GCS_MAVLink: allow non-register device access with devop
...
useful for i2c devices such as LW20 lidar
6 years ago
Peter Barker
93ca243987
GCS_MAVLink: rearrange mission item handling code
...
This splits the missionitemprotocol handling entirely into separate
header files and separate compilation units.
6 years ago
Peter Barker
210c2070a1
GCS_MAVLink: remove include of AP_Param.h in GCS_MAVLink.h
...
This will help break include loops.
6 years ago
Pierre Kancir
b1506ca652
GCS_MAVLink: pass mavlink_message_t by const reference
6 years ago
Peter Barker
459680e7c8
GCS_MAVLink: make Avoidance responsible for sending collision message
6 years ago
Peter Barker
c0993509f7
GCS_MAVLink: declare GCS_MAVLINK as a class as it hasn't been defined yet
6 years ago
Michael du Breuil
b3c6d3d75a
GCS_MAVLink: Refactor battery current interface
6 years ago
Peter Barker
6cb8fcc466
GCS_MAVLink: move use of AP_AHRS_NAVEKF_AVAILABLE into cpp file
...
This is defined in AP_AHRS which we only get transitively in the header
6 years ago
Peter Barker
1ebbe45fe1
GCS_MAVLink: split sending of RC_CHANNELS and RC_CHANNELS_RAW
...
Before this patch is applied we may never send the second message
because there's not room for it in the buffer and we can't return
failure-to-send (always interpreted as "retry") as we're in a void function.
Further, if you are on a mavlink2 connection we will not send out the
RC_CHANNELS_RAW message, depriving the user of any RC_CHANNELS messages.
This patch does have the drawback of doing more work on a mavlink1
connection - it has to fetch the data twice. On the other hand, it also
allows the GCS to set the message rates independently for both
RC_CHANNELS and RC_CHANNELS_RAW so one or the other can be squelched.
That could be handy for reducing bandwidth if you know you're not using
more than 8 input channels.
6 years ago
Peter Barker
c8353c1c13
GCS_MAVLink: fill target system and target component in MISSION_ITEM responses
6 years ago
Peter Barker
c6533723de
GCS_Param: correct sending of parameters of length 16
6 years ago
Peter Barker
ebd8170a15
GCS_MAVLink: add missing include for AP_RTC
6 years ago
Peter Barker
f31b7b5772
GCS_MAVLink: remove stray undef of undefined macro
6 years ago
Michael du Breuil
18e979fd4f
GCS_MAVLink: Include needed AP_Baro.h
6 years ago
Michael du Breuil
f955a4e4d5
GCS_MAVLink: Don't retain a FrSky instance if we aren't using it
...
Saves 96 bytes of RAM
6 years ago
Peter Barker
278ac5e6ed
GCS_MAVLink: correct deferred body timing debug
6 years ago
Peter Barker
feddaabc42
GCS_MAVLink: handle out-of-time to send messages in parent class
6 years ago
Andrew Tridgell
f28df4dff1
GCS_MAVLink: support MAV_CMD_BATTERY_RESET command
6 years ago