Andrew Tridgell
91aaa7876d
GCS_MAVLink: reserve another mavlink channel
...
for SimShip
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
210c2070a1
GCS_MAVLink: remove include of AP_Param.h in GCS_MAVLink.h
...
This will help break include loops.
6 years ago
Jaaaky
971e3af826
GCS_MAVLink: prgama away address-of-packed-member only for g++ >= 9
6 years ago
Peter Barker
9273ac3631
GCS_MAVLink: pragma away address-of-packed-member
...
g++-9 throws a lot of warnings for taking addresses of packed members.
We can have this warning for our ArduPilot code, but there's way too
many issues within MAVLink to put up with.
6 years ago
Peter Barker
49493676ea
GCS_MAVLink: use MAV_PARAM_TYPE for sending parameter messages
...
... rather than mavlink_message_type_t
6 years ago
Andrew Tridgell
048a52ebc0
GCS_MAVLink: make mavlink send from multiple threads safe
...
this takes a lock to prevent interleaving of mavlink msgs from
multiple threads
7 years ago
Peter Barker
1aaf7e96af
GCS_MAVLink: remove intermediate functions
...
GCS_MAVLink: remove comm_receive_ch
This is a lot of sanity checking in a static function which has been
called from a place where things are guaranteed
GCS_MAVLink: remove unused comm_is_idle
GCS_MAVLink: remove unused comm_send_ch
GCS_MAVLink: remove unused hal reference
GCS_MAVLink: remove unused #includes
7 years ago
Andrew Tridgell
a5fe798e7f
GCS_MAVLink: we don't need the conversion helpers
7 years ago
Andrew Tridgell
fd3037bbb7
GCS_MAVLink: add support for alternative protocol
...
this allows an alternative to MAVLink to be installed on a GCS
port. This is used for BLHeli passthru support
7 years ago
Peter Barker
42547d2d6d
GCS_MAVLink: allow extra mavlink port for packing vicon messages
7 years ago
Andrew Tridgell
e255f07022
GCS_MAVLink: rename ch variable
...
avoid conflict with ch variable from ChibiOS
7 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
b3f94184f2
GCS_MAVLink: always build with MAVLink2 headers
9 years ago
Andrew Tridgell
0ead0ab978
GCS_MAVLink: support mavlink2 build
9 years ago
Andrew Tridgell
62986957b4
GCS_MAVLink: raise number of mavlink buffers to 5
9 years ago
Lucas De Marchi
a502c0924c
GCS_MAVLink: simplify sanity check
9 years ago
Francisco Ferreira
d3e149e5d7
GCS_MAVLink: ignore Clang out-of-range warning
...
warning: comparison of constant 4 with expression of type 'mavlink_channel_t' is always false [-Wtautological-constant-out-of-range-compare]
if (chan >= MAVLINK_COMM_NUM_BUFFERS) {
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
9 years ago
Lucas De Marchi
c2b5ad46b4
GCS_MAVLink: replace header guard with pragma once
9 years ago
Lucas De Marchi
039f42d916
GCS_MAVLink: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
squilter
426dab5078
GCS_MAVLink: update severities and remove old enum
10 years ago
Gustavo Jose de Sousa
d7a2ef3e35
GCS_MAVLink: 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
85eeba93c0
GCS_MAVLink: mavlink_comm_port to array
10 years ago
Randy Mackay
62e7e8cc7d
GCS_MAVLink: add support for 4th mavlink chan on PX4
10 years ago
Randy Mackay
1157c13eb6
GCS_MAVLink: mavlink_comm_x become UARTDrivers
10 years ago
Andrew Tridgell
f1edd1bafb
GCS_MAVLink: removed use of mavlink_check_target()
...
not needed now we do routing properly, as messages will only be
processed if they are for us
10 years ago
Andrew Tridgell
ffd6fa1366
GCS_MAVLink: ignore alignment warnings in MAVLink headers
11 years ago
Andrew Tridgell
013aaf4d3e
GCS_MAVLink: moved comms functions to not be inline
...
saves a bit of flash space
11 years ago
Andrew Tridgell
d9e8c34a89
GCS_MAVLink: allow for proxying of larger MAVLink messages on PX4
...
this makes it possible to deal with large MAVLink messages
11 years ago
Andrew Tridgell
ac24ff0b1e
GCS_MAVLink: added support for 3 UARTs
...
support 3 UARTs on non-AVR platforms
11 years ago
Andrew Tridgell
8d227b801f
GCS_MAVLink: increase max packet size to 104
...
this enables the DATA96 packet to be sent
11 years ago
Andrew Tridgell
445edb8793
GCS_MAVLink: remove CR/LF
12 years ago
Randy Mackay
8545071a21
GCS_MAVLink: include AP_Math.h
...
Required because mavlink_conversions's mavlink_dcm_to_euler function
uses atan2
12 years ago
Andrew Tridgell
91a60be758
GCS_MAVLink: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
11bf6f40f7
GCS_MAVLink: moved gcs_severity to library header
12 years ago
Andrew Tridgell
7e58bde826
GCS_MAVLink: added comm_is_idle() function
...
this will make CLI detection more reliable
12 years ago
Andrew Tridgell
ea3b405959
MAVLink: moved CRC table into program
...
this saves 256 bytes of memory
12 years ago
Andrew Tridgell
dc66708856
MAVLink: cope with available() returning -1
12 years ago
Andrew Tridgell
c9fe7fe932
MAVLink: use buffer send and fast CRC if possible
12 years ago
Andrew Tridgell
feeebae03f
GCS_MAVLink: added comm_send_buffer()
...
this reduces the overhead of sending messages
12 years ago
Pat Hickey
6661f827fa
GCS_MAVLink: port to work with AP_HAL class rather than FastSerial
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
Andrew Tridgell
15abc784ec
MAVLink: use a smaller maximum payload to reduce memory
...
this limits the sizes of the MAVLink buffers. It doesn't make a big
difference now, but it will matter when we update to the latest
mavlink code which has some very large packets
12 years ago
Andrew Tridgell
9f9d570597
MAVLink: comm_get_txspace should return 0 on error
...
it is used in expressions that add constants
13 years ago
Andrew Tridgell
3a1ff7bdd9
Mavlink: enable MAVLINK_SEPARATE_HELPERS
...
this fixes a seq number problem with SIMSTATE packets
13 years ago
Andrew Tridgell
dc47074dbd
MAVLink: removed the need for Mavlink_compat.h
...
we have now fully transitioned to MAVLink 1.0, so we no longer need
the compatibility layer and the old names in the code
13 years ago
Andrew Tridgell
60caaa4b04
MAVLink: remove MAVLink 0.9 protocol support
...
this simplifies the code a lot. We're not going back to 1.0
13 years ago
Andrew Tridgell
25c17a5425
re-enable the AP_Mount build
13 years ago
Andrew Tridgell
d8919731ee
Mavlink: fixed library build for MAVLink 1.0
13 years ago
Andrew Tridgell
d11957718f
MAVLink: removed the cpp part of the library
...
this was preventing building MAVLink 1.0 with the arduino GUI as we
can't set cpp defines
13 years ago