Commit Graph
266 Commits
Author SHA1 Message Date
Peter Barker 118088422e ArduSub: remove conversion_table
Converted the old battery failsafe parameters (Mar-2018) and
COMPASS_ENABLE (Apr-2019).  Sub has no 4.2, 4.3, 4.4 or 4.6 release, so
the oldest version a user can be moving from once the migration floor is
4.3 is ArduSub-4.5.0, which has already had these applied.
2026-09-01 20:49:36 +10:00
Peter Barker eaf56f6dfa ArduSub: remove ATC_RAT_*_FILT parameter conversion
This moved ATC_RAT_RLL/PIT/YAW_FILT to ATC_RAT_*_FLTE and dates from
2019 - it is present in ArduSub-4.1.2 and ArduSub-4.5.0.  Sub has no
4.2, 4.3, 4.4 or 4.6 release, so the oldest version a user can be moving
from once the migration floor is 4.3 is ArduSub-4.5.0, which has already
had this applied.

Sub::convert_old_parameters() is left empty by this, so it goes too.
2026-09-01 20:49:36 +10:00
Peter Barker dd5900b9c3 ArduSub: remove parameter conversions from before 4.3
Sub has no 4.2, 4.3, 4.4 or 4.6 release, so the oldest version a user
can be moving from once the migration floor is 4.3 is Sub-4.5.  Both of
these conversions are present in ArduSub-4.5.0, so anybody running that
or later has already had them applied:

 - the airspeed object out of g2 (Jan-2022)
 - FENCE_ parameters into the AC_Fence object (Mar-2022)

Also drops the call to SRV_Channels::upgrade_parameters(), which is
being removed.
2026-09-01 20:49:36 +10:00
Peter Barker 8638dfad0d ArduSub: annotate and correct parameter conversion comments
Adds the missing PARAMETER_CONVERSION annotation to the conversion_table
(battery failsafe parameters, Mar-2018, and COMPASS_ENABLE, Apr-2019)
and to the attitude control _FILT to FLTE conversion (Jul-2019).
Remaining changes are date format corrections.  No functional change.

Also annotates the ARMDISARM_UNUSED to ARMDISARM rewrite of stored
RCn_OPTION values, which calls set_and_save() directly rather than going
through an AP_Param::convert_* helper and so was missed by an audit
anchored on those helpers.  It went in during Sep-2021, but Sub has no
4.2 to 4.4 releases, so established by content it first shipped in
ArduSub-4.5.0.
2026-08-31 08:18:26 +10:00
Peter Barker 4d8b24e29c ArduSub: adjust for EKF2 shim 2026-05-05 09:52:15 +10:00
Peter Barker 03d355aced ArduSub: adjust for AP_AHRS_NavEKF3 shim 2026-05-05 09:52:15 +10:00
Thomas Watson c6a9d385bd Sub: make flight mode parameters into array
This removes the need for the pointer to the first flight mode, and
removes the undefined behavior resulting from indexing past that first
flight mode and hoping the others follow (though this is unlikely to
pose a problem in practice).

Saves a few bytes of RAM and flash as the pointer is no longer needed
and code is no longer necessary to set it up.

Also fixes the bounds check condition of that array to match its size so
there is no longer the possibility of indexing one past it.
2026-04-13 12:50:48 +01:00
Willian Galvani a1136dcfef Sub: create and use param for controlling parameters migration 2026-04-07 08:30:43 +10:00
Willian Galvani 5ca4ea937b Sub: add parameters migration for lights and actuators 2026-04-07 08:30:43 +10:00
Randy Mackay d06e7cbe63 Sub: improve origin conversion array name 2026-02-24 14:50:55 +09:00
Randy Mackay 459668fbdb Sub: integrate WPNAV rename to WP 2026-02-24 14:50:55 +09:00
Randy Mackay 0c59c5ce50 Sub: use AHRS_ORIGIN in place of local ORIGIN params 2026-02-05 14:24:44 -05:00
Randy Mackay 8c5bd7b39a Sub: integrate AC_Loiter param change to use meters 2026-02-02 18:23:43 -05:00
Randy Mackay 8ba67d9eda Sub: integrate ANGLE_MAX move to ATC 2026-01-28 08:45:12 +11:00
Randy Mackay a99edabc10 Sub: call Circle parameter conversion 2026-01-26 22:22:38 -05:00
Willian Galvani 8205874bb6 Sub: automatically fix misconfigured relays
or just warns the users if the servo_function is already assigned to something else
2025-12-17 00:14:58 +11:00
Willian Galvani ba1db43a73 Sub: automatically correct leak pin to gpio 2025-12-17 00:14:58 +11:00
Thomas Watson 7c903adff8 ArduSub: remove old ARMING_CHECK conversion
This conversion was dropped for other vehicles in late 2024. This
conversion is in 4.0.0.
2025-12-04 11:52:13 -06:00
Bob Long 24f73b1f10 global: add Range to expo param doc 2025-10-23 08:13:22 +11:00
Bob Long 9ff7b9c346 global: add Range to EKF failsafe param doc 2025-10-23 08:13:22 +11:00
Iampete1 0b82583da4 ArduSub: move RPM lib to vehicle 2025-07-22 10:33:55 +10:00
Henry Wurzburg 7508324495 Sub:correct operation of pilot input and rc failsafes 2025-06-20 11:56:09 +10:00
Willian Galvani 5e72d6b210 ArduSub: refactor aux servos 2025-06-17 09:39:18 +10:00
Henry Wurzburg 211157c38b Sub:Add OSD into std builds for FPV 2025-06-09 09:10:43 +10:00
Henry Wurzburg 81ae61ceec Sub:add RSSI params 2025-05-27 11:52:12 +10:00
Willian GalvaniandPeter Barker 4277dbaf34 Sub: allow surface mode to operate with no baro
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2025-05-27 11:26:13 +10:00
Willian Galvani 65a91a1eab Sub: limit throttle when surfaced 2025-05-07 13:11:24 -03:00
Henry Wurzburg 7486650dd8 ArduSub: add RC to Sub 2025-04-25 12:21:43 -03:00
Peter Barker e231fa02b6 ArduSub: tweak MAV parameter names 2025-04-07 10:58:41 +10:00
Peter Barker 20bf4f696d ArduSub: add parameter conversion for MAV parameters 2025-04-07 10:58:41 +10:00
Peter Barker 14b9d50a35 ArduSub: SYSID_MYGCS and enforce move up to GCS, change to MAV_MYGCS_ENFRCE 2025-04-07 10:58:41 +10:00
Peter Barker fe125dd5b1 ArduSub: move streamrate parameters to GCS_MAVLINK base class 2025-04-07 10:58:41 +10:00
Peter Barker c757e705d3 ArduSub: create and use MAV_ parameter namespace
Move serveral parameters in
2025-04-07 10:58:41 +10:00
Clyde McQueen 2a28b77ef6 Sub: limit poshold xy velocity to PILOT_SPEED to avoid bounceback 2025-02-03 13:05:01 -03:00
muramura c8d21083ad Sub: fix param increment description 2025-01-13 20:33:33 +09:00
Peter Barker f2d0607b90 ArduSub: adjust for renaming of RC_Channel and GCS_MAVLink headers 2024-12-26 11:01:22 +11:00
Peter Barker 1f0c31bcef Sub: remove ENABLE/DISABLE defines, use 0/1 instead
same as Plane, Rover, Sub, Tracker
2024-09-02 20:05:14 -03:00
Clyde McQueen e8bd38092e Sub: reduce PILOT_SPEED_ minimums 2024-08-29 20:00:54 -03:00
Willian Galvani 9e0fd1c9d5 Sub: make gcs failsafe timeout a parameter 2024-08-01 09:40:16 +10:00
Willian GalvaniandClyde McQueen 62d9b14a65 Sub: add arming check for backup origin
Co-authored-by: Clyde McQueen <clyde@mcqueen.net>
2024-07-11 14:17:54 -03:00
Willian GalvaniandClyde McQueen 78a7c86bbd Sub: create backup origin for gps-less operation with WMM
Co-authored-by: Clyde McQueen <clyde@mcqueen.net>
2024-07-11 14:17:54 -03:00
Peter Barker a5d7000ffd ArduSub: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
Peter Barker 633a72e118 ArduSub: remove redundant @Values from parameter documentation 2024-05-21 14:27:05 +10:00
Thomas Watson 58c51f9fe6 Sub: unmark FORMAT_VERSION as read-only
Matches other vehicles and allows GCSes to use documented behavior of a
zero write to FORMAT_VERSION to reset EEPROM contents.
2024-04-10 17:45:37 +10:00
Peter Barker bd8fdd29d8 ArduSub: move serial_manager parameters up to base class 2024-02-29 12:12:19 +11:00
Peter Barker 5e35c8850f ArduSub: remove unused old_top_element param from convert_class 2024-02-27 10:37:45 +11:00
Peter Barker 620723767d ArduSub: simplify g2 object conversion 2024-02-27 10:37:45 +11:00
Clyde McQueen f9db039dcc Sub: add SURFTRAK mode 2024-02-21 18:59:20 -03:00
Peter Barker ccc9231c67 ArduSub: 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
Peter Barker df72d3faac ArduSub: move parameter storage formatting up to AP_Vehicle 2024-02-13 14:23:35 +11:00