Peter Barker
6338d10b5f
global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
...
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.
Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11: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
Peter Barker
4161c425d1
GCS_MAVLink: simplify MissionItemProtocol get_item interface
...
stop passing through _link and the original msg, move use to the base class instead.
starts fence and rally also using the "correct the GCS's count" code.
This also corrects the error code when correcting the GCS's count to INVALID_SEQUENCE rather than just ERROR
2025-02-06 10:20:23 +11:00
Peter Barker
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
...
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
Andy Piper
03cdab003b
GCS_MAVLink: enable HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED on littlefs
2025-01-21 11:10:31 +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
Iampete1
230f8248c9
GCSMAVLink: MisisonItemProtocol: fill in targets after reading item and set type and seq in getter
2025-01-14 03:41:10 +00:00
Iampete1
9b39ab0a6d
GCS_MAVLInk: MissionItemProtocol_Waypoints: remove unnessisary sets on ret_packet
2025-01-14 03:41:10 +00:00
Peter Barker
c12a014515
GCS_MAVLink: remove MOUNT_CONFIGURE and MOUNT_CONTROL support
2025-01-03 14:18:25 +11:00
Iampete1
7fd3106871
GCS_MAVLink: set source index when running aux functions
2024-12-24 11:34:07 +11:00
Iampete1
a5741a53cb
GCS_MAVLink: move to AuxFuncTrigger structure
2024-12-24 11:34:07 +11:00
Peter Barker
33a788ebb5
GCS_MAVLink: move sending of WATER_DEPTH into Rover code
...
only compiled in on Rover at the moment.
need to add an additional Rover-specific check for frame type, so move this code into Rover for now.
2024-12-17 20:17:19 +11:00
Eric Katzfey
7c1cc26509
GCS_MAVLink: Remove pragma to disable compiler warning and instead cast enum to int to fix the code.
2024-12-15 15:16:21 +11:00
Iampete1
55936895e3
GCS_MAVLink: send AVAILABLE_MODES_MONITOR
message
2024-11-26 08:44:31 +09:00
Peter Barker
650b9784a0
GCS_MAVLink: validate vertex count before assignment
...
this assignments following these lines were silently truncating the param1 value to uint8_t value
2024-11-25 11:37:38 +11:00
Peter Barker
e19636e4ad
GCS_MAVLink: Rally: correct mission_type in mission_item_int conversion
2024-11-25 11:37:38 +11:00
Peter Barker
69e3d59eb9
GCS_MAVLink: Fence: correct mission_type in mission_item_int conversion
2024-11-25 11:37:38 +11:00
Peter Barker
f2ed243037
GCS_MAVLink: correct handling of more than 256 fence items
2024-11-25 11:37:38 +11: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
Peter Barker
355c499a24
GCS_MAVLink: stop compiling old rallypoint protocol in by default
...
We're gradually removing support for this protocol.
Still available on the custom build server
2024-11-18 08:34:08 +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
Andrew Tridgell
b34417f683
GCS_MAVLink: raise number of MAVLink ports
...
with CAN serial ports and network serial ports sometimes need more
2024-10-15 13:13:54 +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
koehlert
9beca76f44
GCS_MAVLink: fix includes to ap_message
...
"GSC_config.h" is needed for HIGHRES_IMU_ENABLED flag.
2024-09-11 08:57:24 +09: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
Andrew Tridgell
3dd44dd8e0
GCS_MAVLink: zero signing key structure for valgrind
...
the signing key structure is not marked as packed, which means it has
a 4 byte padding between the uint32_t magic and the uint64_t
timestamp. This gets written to the database and valgrind warns about
a write of uninitialised bytes. It is harmless as when the structure
is read the field is not used
2024-09-07 19:23:01 +10:00
Andrii Fil
e74afdfcea
GCS_MAVLink: support MAV_CMD_EXTERNAL_WIND_ESTIMATE
2024-09-04 10:14:45 +10:00
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
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
Thomas Watson
abae008250
GCS_MAVLink: remove vestigial SERIAL_CONTROL_DEV_SHELL support
...
The HAL always returns nullptr so the function always returns, which is
handled already by the default.
2024-08-06 09:08:04 +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