Commit Graph

1005 Commits

Author SHA1 Message Date
Iampete1
55936895e3 GCS_MAVLink: send AVAILABLE_MODES_MONITOR message 2024-11-26 08:44:31 +09:00
Peter Barker
4773571525 GCS_MAVLink: stop creating unnecessary Location object on stack
Location is implicitly zero.
2024-11-18 20:58:22 +11:00
Iampete1
26152416ab GCS_MAVLink: add support for AVAILABLE_MODES msg 2024-11-13 20:11:50 +11:00
Peter Barker
866e00f143 GCS_MAVLink: remove handling of HIL_GPS
... per deprecation/removal schedule
2024-11-13 19:41:00 +11:00
Peter Barker
d4e15b1ae7 GCS_MAVLink: add specific defines for sending of GPS mavlink messages 2024-11-13 19:40:19 +11:00
Peter Barker
96bc2f5e57 GCS_MAVLink: use set_alt_m 2024-11-06 18:12:48 +11:00
Stephen Dade
9a563e222f GCS_MAVLink: Check if set_message_interval is too fast 2024-10-02 09:22:43 +10:00
Iampete1
d7599f225c GCS_MAVLink: Common: Allow scripting to receive messages which fail CRC check 2024-10-01 10:25:22 +10:00
Peter Barker
423daaa71f GCS_MAVLink: split sending terrain report from terrain request 2024-10-01 10:13:06 +10:00
Nick Exton
67642867e3 GCS_MAVLink: Add handler for VIDEO_STREAM_INFORMATION request 2024-10-01 08:18:54 +09:00
muramura
c0d14ec397 GCS_MAVLink: Add conditions and delete the same processing 2024-09-19 11:44:57 +10:00
Iampete1
c19e5713ae GCS_MAVLink: Fix Airspeed without AHRS 2024-09-17 22:11:06 +10:00
Iampete1
8318109546 GCS_MAVLink: add support for AIRSPEED message 2024-09-17 09:10:17 +10:00
Randy Mackay
2db7a9520a GCS_MAVLink: support camera-thermal-range 2024-09-10 20:59:49 +09:00
Peter Barker
78f0175e20 GCS_MAVLink: reject SET_MESSAGE_INTERVAL commands with p3 set
this is going to be used for changing the rate of a specific instance of a message at some stage

we have to reject it for now so that when the index is used the GCS is told that their message is invalid in this older version of the autopilot
2024-09-10 11:43:52 +10:00
Tatsuya Yamaguchi
a7f9abcff9 GCS_MAVLink: use SourceSetSelection enum class 2024-09-08 10:02:29 +10:00
Andrii Fil
e74afdfcea GCS_MAVLink: support MAV_CMD_EXTERNAL_WIND_ESTIMATE 2024-09-04 10:14:45 +10:00
Peter Barker
127e634589 GCS_MAVLink: add and use Battery backend internal-use-only flag
sometimes the information from a backend is very useful for logging, but not via telemetry.

Add an option bit to signify this
2024-08-08 09:12:08 +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
9049aeaff6 GCS_MAVLink: accept mavlink standard force arm/disarm value for forced arming
the mavlink standard specifies just one value to do either arm or disarm.  Conform to that standard
2024-08-02 16:29:13 +10:00
Peter Barker
be377da6a4 GCS_MAVLink: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker
5911b87ae3 GCS_MAVLink: rename ins get_primary_accel to get_first_usable_accel 2024-06-26 17:12:12 +10:00
koehlert
7092cb4717 GCS_MAVLink: support HIGHRES_IMU
HIGHRES_IMU MAVLink message. Built in to 2MB boards or not by default.
2024-06-18 09:29:04 +10:00
Peter Barker
9c42a5d9dd GCS_MAVLink: warn on use of old fence point / rally point protocols 2024-06-11 09:39:56 +10:00
Peter Barker
fc560e8219 GCS_MAVLink: avoid casting DroneCAN backend to incorrect type
- split get_type into allocated_type and configured_type
 - check allocated type rather than configured type when looking at backends

Prevents overwrite of random memory when backends are changed at runtime.
2024-06-11 09:31:46 +10:00
Brad Bosch
3b150d2e4c GCS_MAVLink: Add support for parity to Serial passthrough
Add code to reflect USB ACM parity setting to the passthrough port alongside existing support for ACM baud rate changes.  Some use cases for serial passthrough require specific parity settings.

For example, even parity is used and required by the USART protocol used in the STM32 system bootloader. This enhancement allows the use of standard flash programming tools such as STM32CubeProgrammer to flash connected STM based peripherals such as Receivers and Telemetry radios via serial passthrough.  Some examples of such peripherals include the FrSky R9 receivers as well as various other STM based LoRa modules used by the mLRS project.
2024-06-11 09:24:32 +10:00
Peter Barker
78fcf7057c GCS_MAVLink: move switch for sending camera messages into AP_Camera
neatens GCS_Common a bit, reduces repetitive code
2024-06-05 10:29:01 +10:00
Andrew Tridgell
9b046f5a12 GCS_MAVLink: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker
b7cf418d1e GCS_MAVLink: allow handling of AP_MAVLINK_MSG_HIL_GPS_ENABLED to be compiled out 2024-05-23 09:16:32 +10:00
Peter Barker
549411133b GCS_MAVLink: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Brad Bosch
e8d2097ec4 GCS_MAVLink: Avoid serial passthrough buffer exhausted/lost data
Just don't read more than we can write.
2024-04-29 20:06:43 +10:00
Peter Barker
7d10b0fc4d GCS_MAVLink: add and use AP_HOME_ENABLED 2024-04-17 18:09:25 +10:00
Brad Bosch
6538e8c9ae GCS_MAVLink: Cleanup and Reduce chance of GCS FTP timeout
Delete unneeded orphan comment
replace get_last_txbuf() with a predicate
Make txbuf flow control threashold consistent between Parameter download and FTP and keep it in range where we are also slowing down normal streams
Delay sending text banner until after first FTP response to reduce latency on slow links
Don't let flow control delay setting ftp.last_send_ms so as to slow down normal streams as soon as possible to improve FTP response time
2024-04-16 09:16:52 +10:00
Brad Bosch
bbfb0ed001 GCS_MAVLink: Make get_last_txbuf() safer
Add check for stale radio_status to get_last_txbuf()
Move last_txbuf into last_radio_status struct
2024-04-16 09:16:52 +10:00
Peter Barker
f83cde7760 GCS_MAVLink: correct spelling of dereferecing 2024-04-10 21:56:52 +10:00
Peter Barker
420f80db75 GCS_MAVLink: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
Clyde McQueen
10f39c3d28 GCS_Common: defer to AP_AHRS::set_origin to write logs 2024-04-02 11:00:22 +11:00
Randy Mackay
ff7486e3cc GCS_MAVLink: forward set-camera-source to AP_Camera 2024-03-25 09:19:18 +09:00
Peter Barker
abd5d0e3e9 GCS_MAVLink: cope with AHRS not being available 2024-03-19 07:00:10 +11:00
Stephen Dade
faf2ae3a9c GCS_MAVLink: filter out additional messages for High Latency link 2024-03-12 21:13:47 +11:00
Peter Barker
a79569ccf3 GCS_Common: add missing include for AP_RCProtocol
we directly use this library's singleton, so include the header
2024-03-09 18:42:57 +11:00
olliw42
0bb98c3db5 GCS_MAVLink: handle RADIO_RC_CHANNELS 2024-03-09 10:47:39 +11:00
Peter Barker
9fc068d704 GCS_MAVLink: send set_position_target_global_int with non _INT frame
deprecating and hopefully removing the _INT frames.

This method is only called by Rover, so thankfully the altitude is not that important...
2024-03-08 13:28:14 +11:00
Marek S. Lukasiewicz
baf0da74ed GCS_MAVLink: Match handling of MAV_CMD_EXTERNAL_POSITION_ESTIMATE to common MAVLink dialect 2024-03-07 18:13:51 +11:00
Andrew Tridgell
0aba1ce939 GCS_MAVLink: pass channel number to AP_GPS on RTCM injection 2024-03-06 19:38:06 +11:00
Peter Barker
d6df142eaa GCS_MAVLink: allow FTP to be compiled out with build_options.py 2024-03-03 08:38:22 +11:00
Randy Mackay
442c90ff1b GCS_MAVLink: send Odometry quality to VisualOdom 2024-02-28 18:52:37 +11:00
Peter Barker
0fe9027b23 GCS_MAVLink: handle MAV_CMD_DO_SET_SAFETY_SWITCH_STATE 2024-02-27 21:10:39 +11:00
Peter Barker
5cc48a12e2 GCS_MAVLink: remove code based on ENABLE parameters 2024-02-27 11:02:48 +11:00
Peter Barker
362867415f GCS_MAVLink: move gripper up to AP_Vehicle
also make the singleton return a reference rather than a pointer
2024-02-21 21:05:12 +11:00