Commit Graph
1058 Commits
Author SHA1 Message Date
Andrew Tridgell 96b968b7be GCS_MAVLink: allow for multiple MAVFTP sessions
this allows multiple groundstations to perform FTP operations at the
same time, making FTP much more useful in multi-GCS environments or
when a companion computer wants to use FTP
2025-08-04 09:03:07 +10:00
Andrew Tridgell 2c34635d6c GCS_MAVLink: split GCS_FTP into it's own class 2025-08-04 09:03:07 +10:00
Andrew Tridgell 5b05a7dc2a GCS_MAVLink: added MAV_GCS_SYSID_HI
this allows for multiple MAVLink source system IDs to be treated as
valid GCS nodes, allowing for multiple ground stations for GCS
failsafe handling
2025-07-29 09:34:08 +10:00
Peter Barker 85736501c3 GCS_MAVLink: avoid use of Location .alt field
various changes to avoid use of the Location .alt field, which should be private.

Introduces several new helper functions on Location to help with this
2025-07-22 17:46:53 +10:00
Michael Oborne 2e69b71ade GCS_MAVLink: accept ack only from initial source sysid/compid 2025-07-05 21:28:09 +10:00
Peter Barker 867a954144 GCS_MAVLink: log last time we saw our GCS on each link
useful for working out how close a vehicle was to failsafing
2025-06-27 19:01:24 +10:00
Peter Barker 905e27018c GCS_MAVLink: rename AHRS get_roll etc accessors to include _rad 2025-06-05 17:28:41 +10:00
Peter Barker bd9f5bb89d GCS_MAVLink: disable options in serial manager on conversion 2025-06-03 16:16:43 +10:00
Peter Barker 687c5d38f0 GCS_MAVLink: move option bits from UARTDriver to MAVx
we recently got options on a per-mavlink-connection basis.  Use them
2025-06-03 16:16:43 +10:00
Peter Barker a42c084b41 GCS_MAVLink: use get_roll_deg in place of roll_sensor (etc.) 2025-06-03 09:48:53 +10:00
Dr.-Ing. Amilcar do Carmo Lucas b6157591ec GCS_MAVLink: implement sys_status.errors_comm 2025-06-03 09:44:57 +10:00
muramura bc484559e9 GCS_MAVLink: Set the invalid value of UINT16 to the maximum value of the unsigned type 2025-06-02 20:59:14 +10:00
Bob Long d823765512 GCS_Common: reject negative intervals 2025-05-30 10:18:43 +10:00
Peter Barker 31ed42f873 GCS_MAVLink: send dropped message count in SYS_STATUS.errors_count3
colcon build/test / build-test (push) Has been cancelled
Cygwin Build / build (push) Has been cancelled
ESP32 Build / build (esp32buzz, 10) (push) Has been cancelled
ESP32 Build / build (esp32s3empty, 10) (push) Has been cancelled
Macos Build / build (CubeOrange) (push) Has been cancelled
Macos Build / build (sitl) (push) Has been cancelled
QURT Build / build (push) Has been cancelled
test ccache / build (10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-EKF2, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (MatekF405-Wing, 10, chibios) (push) Has been cancelled
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Has been cancelled
test chibios / build (SOHW, 10, chibios) (push) Has been cancelled
test chibios / build (build-options-defaults-test, 10, chibios) (push) Has been cancelled
test chibios / build (configure-all, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv2-plane, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (iofirmware, 10, chibios) (push) Has been cancelled
test chibios / build (new-check, 10, chibios) (push) Has been cancelled
test chibios / build (periph-build, 10, chibios) (push) Has been cancelled
test chibios / build (revo-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (revo-mini, 10, chibios) (push) Has been cancelled
test chibios / build (signing, 10, chibios) (push) Has been cancelled
test chibios / build (stm32f7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7-debug, 10, chibios) (push) Has been cancelled
test dds / build (sitl) (push) Has been cancelled
test dds / build (stm32h7) (push) Has been cancelled
test Linux SBC / build (bbbmini, armhf) (push) Has been cancelled
test Linux SBC / build (bebop, armhf) (push) Has been cancelled
test Linux SBC / build (bhat, armhf) (push) Has been cancelled
test Linux SBC / build (canzero, armhf) (push) Has been cancelled
test Linux SBC / build (erlebrain2, armhf) (push) Has been cancelled
test Linux SBC / build (linux, base) (push) Has been cancelled
test Linux SBC / build (navigator, armhf-musl) (push) Has been cancelled
test Linux SBC / build (navigator64, aarch64) (push) Has been cancelled
test Linux SBC / build (navio, armhf) (push) Has been cancelled
test Linux SBC / build (navio2, armhf) (push) Has been cancelled
test Linux SBC / build (pxf, armhf) (push) Has been cancelled
test Linux SBC / build (pxfmini, armhf) (push) Has been cancelled
test replay / build (replay, base) (push) Has been cancelled
test replay / build (replay, clang) (push) Has been cancelled
test scripts / build (astyle-cleanliness) (push) Has been cancelled
test scripts / build (check_autotest_options) (push) Has been cancelled
test scripts / build (logger_metadata) (push) Has been cancelled
test scripts / build (param_parse) (push) Has been cancelled
test scripts / build (python-cleanliness) (push) Has been cancelled
test scripts / build (validate_board_list) (push) Has been cancelled
test blimp / build (base) (push) Has been cancelled
test blimp / build (clang) (push) Has been cancelled
test blimp / autotest (sitltest-blimp) (push) Has been cancelled
test copter / build (base) (push) Has been cancelled
test copter / build (clang) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1b) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1c) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1d) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1e) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2b) (push) Has been cancelled
test copter / build-gcc-heli (push) Has been cancelled
test copter / autotest-heli (sitltest-heli) (push) Has been cancelled
test ap_periph / build-gcc-ap_periph (push) Has been cancelled
test ap_periph / autotest-can (sitltest-can) (push) Has been cancelled
test plane / build (base) (push) Has been cancelled
test plane / build (clang) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1a) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1b) (push) Has been cancelled
test plane / autotest (sitltest-quadplane) (push) Has been cancelled
test rover / build (base) (push) Has been cancelled
test rover / build (clang) (push) Has been cancelled
test rover / autotest (sitltest-balancebot) (push) Has been cancelled
test rover / autotest (sitltest-rover) (push) Has been cancelled
test rover / autotest (sitltest-sailboat) (push) Has been cancelled
test sub / build (base) (push) Has been cancelled
test sub / build (clang) (push) Has been cancelled
test sub / autotest (sitltest-sub) (push) Has been cancelled
test tracker / build (base) (push) Has been cancelled
test tracker / build (clang) (push) Has been cancelled
test tracker / autotest (sitltest-tracker) (push) Has been cancelled
test unit tests and sitl building / build (examples, base) (push) Has been cancelled
test unit tests and sitl building / build (examples, clang) (push) Has been cancelled
test unit tests and sitl building / build (sitl, base) (push) Has been cancelled
test unit tests and sitl building / build (sitl, clang) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, base) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, clang) (push) Has been cancelled
for first backend instance
2025-05-29 00:08:05 +10:00
Peter Barker 83d79782da GCS_MAVLink: rename get_relative_position_NED_origin methods to include 'float'
can't have both postype and these methods, something has to shift names
2025-05-24 09:23:35 +09:00
rishabsingh3003 a7dc2bac36 GCS_MAVLink: check airspeed is enabled before trying to calibrate 2025-05-22 12:45:43 +02:00
Randy Mackay 6d1917cf5a GCS_MAVLink: set message interval fail msg only sent on SITL 2025-05-21 16:03:06 +10:00
Peter Barker 572f419d8e GCS_MAVLink: allow sending of rangefinder mavlink message to be compiled out 2025-05-08 16:40:22 +10:00
Peter Barker afc2ab1a98 GCS_MAVLink: avoid compiler warnings from clang++ 2025-05-07 17:45:45 +10:00
Peter Barker e85dbced46 GCS_MAVLink: add support for MAV_CMD_DO_SET_GLOBAL_ORIGIN
... and map out plan for deprecating the message SET_GPS_GLOBAL_ORIGIN
2025-05-02 16:04:10 +10:00
Peter Barker a7fbfdc353 GCS_MAVLink: add comment to ensure 16-bit maths is preserved 2025-05-02 16:02:29 +10:00
Peter Barker f97ec75771 GCS_MAVLink: add _cm to get_vector_from_origin_NEU
... and the _NE equivalent.

Moves us closer to using metres in interfaces.  Several places already *0.01 the result of these methods
2025-04-29 08:29:41 +09:00
Nick Exton d1b81b1505 GCS_MAVLink: Support requesting MESSAGE_INTERVAL via REQUEST_MESSAGE cmd
The old method of using MAV_CMD_GET_MESSAGE_INTERVAL is deprecated.
2025-04-21 16:20:06 +10:00
Peter Barker c5a208795f GCS_MAVLink: remove 'No ap_message for mavlink id' warning
Even just the first response to a probing message is annoying to the user
2025-04-15 14:40:33 +10:00
Peter Barker f761a96ac1 GCS_MAVLink: avoid creating mission items to convey altitude data in guided-change-alt 2025-04-15 09:47:24 +10:00
Peter Barker d824ab1f3a GCS_MAVLink: make GCS library update mavlink system ID
we can afford to do this at full rate, it's a cheap operation.  Trying to slow it down wuld just make it more expensive
2025-04-14 17:28:34 +10:00
George Zogopoulos c5ca613cdc GCS_MAVLink: Adding support for Loweheiser generator 2025-04-09 18:06:47 +10:00
Peter Barker 0854c067bb GCS_MAVLink: tweak MAV parameter names 2025-04-07 10:58:41 +10:00
Peter Barker 282a737c5d GCS_MAVLink: correct telem delay
off-by-one error, kind of
2025-04-07 10:58:41 +10:00
Peter Barker b8ca2688ac GCS_MAVLink: move telem_delay up into MAV_TELEM_DELAY 2025-04-07 10:58:41 +10:00
Peter Barker 5004002e76 GCS_MAVLink: SYSID_MYGCS and enforce move up to GCS, change to MAV_MYGCS_ENFRCE 2025-04-07 10:58:41 +10:00
Peter Barker 6d7b41a277 GCS_MAVLink: move streamrate parameters to GCS_MAVLINK base class 2025-04-07 10:58:41 +10:00
Peter Barker 06a31cf666 GCS_MAVLink: correct airspeed sensor flags
these are now shifted values in the mavlink
2025-04-03 10:48:29 +11:00
Peter Barker 6ac9154172 GCS_MAVLink: correct myggcs to mygcs
not sure what the extra "g" was supposed to be for, best suggestion so far is "great".

Doesn't really add anything, so we should remove it.
2025-04-02 19:48:47 +11:00
Iampete1 239f399783 GCS_MAVLink: common: AirspeedCal: deal with new calibration state 2025-03-18 11:39:48 +11:00
Peter Barker dbe1943380 GCS_MAVLink: add mavlink commands for testing nullptr deref catching 2025-03-18 11:27:50 +11:00
Nick Exton e746ae13db GCS_MAVLink: Add FLIGHT_INFORMATION message 2025-03-17 21:34:23 +11:00
Peter Barker 8c7940ac60 GCS_MAVLink: let GCS_MAVLink handle follow packets 2025-03-11 09:03:32 +09:00
Peter Barker c2ea8d3bac GCS_MAVLink: remove unused dsmMode param from start_bind methods 2025-03-05 23:47:19 -05:00
Peter Barker 089c4933ba GCS_MAVLink: bind receivers directly via AP_RCProtocol library
... rather than via RC_Channels and the HAL and *then* to the AP_RCProtocol library...
2025-03-05 23:47:19 -05:00
Bob Long 8d427dd229 GCS_Common: fix missing #if for CAMERA_FOV_STATUS 2025-02-22 13:52:51 +11:00
Iampete1 494af643b5 GCS_MAVLink: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Peter Barker 354c861753 GCS_MAVLink: correct AP_Periph compilation when GCS enabled and mag not
../../libraries/GCS_MAVLink/GCS_Common.cpp: In member function 'void GCS_MAVLINK::send_highres_imu()':
../../libraries/GCS_MAVLink/GCS_Common.cpp:2184:27: error: unused variable 'HIGHRES_IMU_UPDATED_XMAG' [-Werror=unused-variable]
 2184 |     static const uint16_t HIGHRES_IMU_UPDATED_XMAG = 0x40;
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
2025-02-13 10:18:13 +01:00
Iampete1 a81c79a1b0 GCS_MAVLink: highres imu: remove all "bitmask" value 2025-02-10 22:17:16 +11:00
2cd3970e36 GCS_MAVLink: add capability to send autopilot to config error loop
Co-authored-by: Bob Long <robertlong13@gmail.com>
Co-authored-by: Michelle Rossouw <michelleros128@gmail.com>

another one of our "do nasty thing to autopilot" commands, useful for testing what ground control stations do when the autopilot is in this state
2025-02-02 21:33:27 +11:00
Peter Barker 9bfba32803 GCS_MAVLink: correct resetting of parity after passthhru is done
colcon build/test / build-test (push) Waiting to run
Cygwin Build / build (push) Waiting to run
ESP32 Build / build (esp32buzz, 10) (push) Waiting to run
ESP32 Build / build (esp32s3empty, 10) (push) Waiting to run
Macos Build / build (CubeOrange) (push) Waiting to run
Macos Build / build (sitl) (push) Waiting to run
QURT Build / build (push) Waiting to run
test ccache / build (10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (CubeRed-EKF2, 10, chibios) (push) Waiting to run
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (MatekF405-Wing, 10, chibios) (push) Waiting to run
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Waiting to run
test chibios / build (SOHW, 10, chibios) (push) Waiting to run
test chibios / build (build-options-defaults-test, 10, chibios) (push) Waiting to run
test chibios / build (configure-all, 10, chibios) (push) Waiting to run
test chibios / build (fmuv2-plane, 10, chibios) (push) Waiting to run
test chibios / build (fmuv3, 10, chibios) (push) Waiting to run
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (iofirmware, 10, chibios) (push) Waiting to run
test chibios / build (new-check, 10, chibios) (push) Waiting to run
test chibios / build (periph-build, 10, chibios) (push) Waiting to run
test chibios / build (revo-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (revo-mini, 10, chibios) (push) Waiting to run
test chibios / build (signing, 10, chibios) (push) Waiting to run
test chibios / build (stm32f7, 10, chibios) (push) Waiting to run
test chibios / build (stm32h7, 10, chibios) (push) Waiting to run
test chibios / build (stm32h7-debug, 10, chibios) (push) Waiting to run
test dds / build (sitl) (push) Waiting to run
test dds / build (stm32h7) (push) Waiting to run
test Linux SBC / build (bbbmini, armhf) (push) Waiting to run
test Linux SBC / build (bebop, armhf) (push) Waiting to run
test Linux SBC / build (bhat, armhf) (push) Waiting to run
test Linux SBC / build (canzero, armhf) (push) Waiting to run
test Linux SBC / build (erlebrain2, armhf) (push) Waiting to run
test Linux SBC / build (linux, base) (push) Waiting to run
test Linux SBC / build (navigator, armhf-musl) (push) Waiting to run
test Linux SBC / build (navigator64, aarch64) (push) Waiting to run
test Linux SBC / build (navio, armhf) (push) Waiting to run
test Linux SBC / build (navio2, armhf) (push) Waiting to run
test Linux SBC / build (pxf, armhf) (push) Waiting to run
test Linux SBC / build (pxfmini, armhf) (push) Waiting to run
test replay / build (replay, base) (push) Waiting to run
test replay / build (replay, clang) (push) Waiting to run
test scripts / build (astyle-cleanliness) (push) Waiting to run
test scripts / build (check_autotest_options) (push) Waiting to run
test scripts / build (logger_metadata) (push) Waiting to run
test scripts / build (param_parse) (push) Waiting to run
test scripts / build (python-cleanliness) (push) Waiting to run
test scripts / build (validate_board_list) (push) Waiting to run
test blimp / build (base) (push) Waiting to run
test blimp / build (clang) (push) Waiting to run
test blimp / autotest (sitltest-blimp) (push) Blocked by required conditions
test copter / build (base) (push) Waiting to run
test copter / build (clang) (push) Waiting to run
test copter / autotest (sitltest-copter-tests1a) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1b) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1c) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1d) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1e) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests2a) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests2b) (push) Blocked by required conditions
test copter / build-gcc-heli (push) Waiting to run
test copter / autotest-heli (sitltest-heli) (push) Blocked by required conditions
test ap_periph / build-gcc-ap_periph (push) Waiting to run
test ap_periph / autotest-can (sitltest-can) (push) Blocked by required conditions
test plane / build (base) (push) Waiting to run
test plane / build (clang) (push) Waiting to run
test plane / autotest (sitltest-plane-tests1a) (push) Blocked by required conditions
test plane / autotest (sitltest-plane-tests1b) (push) Blocked by required conditions
test plane / autotest (sitltest-quadplane) (push) Blocked by required conditions
test rover / build (base) (push) Waiting to run
test rover / build (clang) (push) Waiting to run
test rover / autotest (sitltest-balancebot) (push) Blocked by required conditions
test rover / autotest (sitltest-rover) (push) Blocked by required conditions
test rover / autotest (sitltest-sailboat) (push) Blocked by required conditions
test sub / build (base) (push) Waiting to run
test sub / build (clang) (push) Waiting to run
test sub / autotest (sitltest-sub) (push) Blocked by required conditions
test tracker / build (base) (push) Waiting to run
test tracker / build (clang) (push) Waiting to run
test tracker / autotest (sitltest-tracker) (push) Blocked by required conditions
test unit tests and sitl building / build (sitl, base) (push) Waiting to run
test unit tests and sitl building / build (sitl, clang) (push) Waiting to run
test unit tests and sitl building / build (unit-tests, base) (push) Waiting to run
test unit tests and sitl building / build (unit-tests, clang) (push) Waiting to run
this might have worked if parity1 and parity2 were static values - but theyr're not.  I'm guessing the code evolved
2025-01-29 21:45:37 +11:00
Iampete1 8e70588a9b GCS_MAVLink: use new misison present method 2025-01-28 10:30:06 +11:00
Peter Barker b54e795a0e GCS_MAVLink: allow for more than 327m range rangefinders 2025-01-21 10:54:05 +11:00
Peter Barker cc0669ffa3 GCS_MAVLink: remove code for sending of BATTERY2 message 2025-01-15 18:16:53 +11:00
Peter Barker c12a014515 GCS_MAVLink: remove MOUNT_CONFIGURE and MOUNT_CONTROL support 2025-01-03 14:18:25 +11:00