Commit Graph
120 Commits
Author SHA1 Message Date
Peter Barker d2af33604b Rover: remove parameter conversions from before 4.3
Trims conversion_table down to just the TRQ1_ block, which was added
May-2024 and so is still required.  Everything above it - battery
(Oct-2013), serial baud (Jan-2015), MOT_THR (Aug-2017), COMPASS_ENABLE
(Apr-2019), WP_RADIUS (May-2019), sailboat (May-2019), ATC_TURN_MAX_G
(May-2021), WP_PIVOT (Dec-2021) and PRX1_ (Aug-2022) - is present in
Rover-4.4.0, the oldest release a Rover user can be moving from once the
migration floor is 4.3, as Rover has no 4.3.

Also removes the WP_SPEED/CRUISE_SPEED conversion (May-2019) and the
attitude control FF/FILT conversion (Jul-2019) on the same grounds.
2026-09-01 20:49:36 +10:00
Peter Barker d58eccbe15 Rover: remove CH7_OPTION to RC7_OPTION parameter conversion
Added in 2019 for the Rover-3.4 to 3.5 upgrade, and present in
Rover-4.4.0 - the oldest release a Rover user can be moving from once
the migration floor is 4.3, as Rover has no 4.3.
2026-09-01 20:49:36 +10:00
Peter Barker 73823811b9 Rover: remove parameter conversions from before 4.3
Rover has no 4.3 release, so the oldest version a user can be moving
from once the migration floor is 4.3 is Rover-4.4.  All of these
conversions are present in Rover-4.4.0, so anybody running that or later
has already had them applied:

 - the airspeed object out of g2 (Jan-2022)
 - the AIS object out of g2 (Mar-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
Henry WurzburgandClaude Opus 5 81b23bbc9f Rover: remove non-functional RST_SWITCH_CH parameter
RST_SWITCH_CH is documented as "RC channel to use to reset to last flight
mode after geofence takeover", but nothing in Rover reads it. The member it
binds to, reset_switch_chan, has exactly two references in the tree: its
declaration and its GSCALAR. There is no reset-on-geofence-takeover
behaviour in Rover for it to control.

Plane went through this already. It removed its own RST_SWITCH_CH in favour
of the MODE_SWITCH_RESET RC auxiliary function, and carries a conversion for
it in its conversion_table[]. Rover has no MODE_SWITCH_RESET handler, so
there is nothing here to convert to and no behaviour to preserve: the
parameter is simply doing nothing.

Removed in the usual way, leaving a "RST_SWITCH_CH was here" marker and
keeping the k_param_reset_switch_chan key so the enumeration after it does
not shift.

The companion RESET_SWITCH_CHAN_PWM define, the other half of the same
removed feature, goes in #34213.

This drops Rover:RST_SWITCH_CH from the generated parameter metadata and
nothing else, and saves 80 bytes of flash on SITL.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 11:41:18 +10:00
Henry WurzburgandClaude Opus 5 8f94cedce7 Rover: remove obsolete parameter documentation
These four @Param blocks sit on their own after the var_info tables,
attached to nothing. Their own preamble says they were put there so beta
Mission Planner could pick up descriptions from master, and that they could
be removed "once Rover-3.6-beta testing begins".

All four describe parameters that no longer exist:

  CH7_OPTION        replaced by RC7_OPTION in Rover-3.5
  AUX_CH            gone with the same rework
  PIVOT_TURN_ANGLE  converted to WP_PIVOT_ANGLE
  PIVOT_TURN_RATE   converted to WP_PIVOT_RATE

The last two still have their entries in conversion_table[], which is what
actually carries an old stored value across, and is untouched.

These are not merely dead comments. param_parse.py harvests them, so the
generated metadata has been advertising four parameters the firmware does
not have. Regenerating Rover metadata before and after removes exactly
Rover:CH7_OPTION, Rover:AUX_CH, Rover:PIVOT_TURN_ANGLE and
Rover:PIVOT_TURN_RATE, and changes nothing else.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 09:03:34 +09:00
Peter Barker 3aa6bcf19f Rover: annotate and correct parameter conversion comments
Rover's conversion_table spans eleven years, so it gets an annotation
per block rather than one for the table: battery (Oct-2013), serial baud
(Jan-2015), MOT_THR (Aug-2017), COMPASS_ENABLE (Apr-2019), WP_RADIUS
(May-2019), WP_PIVOT (Dec-2021), sailboat (May-2019), ATC_TURN_MAX_G
(May-2021), PRX1_ (Aug-2022) and TRQ1_ (May-2024).

Also annotates the CH7_OPTION to RC7_OPTION conversion (Jan-2019), the
WP_SPEED/CRUISE_SPEED conversion (May-2019) and the FF/FILT conversion
(Jul-2019).  Remaining changes are date format corrections.  No
functional change.

Also annotates the RCn_OPTION conversions - ARMDISARM_UNUSED to
ARMDISARM, and Rover's SAVE_TRIM to TRIM_TO_CURRENT_SERVO_RC - which call
set_and_save() directly rather than an AP_Param::convert_* helper and so
were missed by an audit anchored on those helpers.  Established by
content: absent from Rover-4.1.5, present in Rover-4.2.0.
2026-08-31 08:18:26 +10:00
Stephen Dade aa0d7a0cb9 Rover: Add guided mode timeout parameter 2026-08-17 17:38:46 +10:00
Yuri Rage 76e3821e63 Rover: improve crash_check 2026-07-07 08:33:58 +09:00
Peter BarkerandClaude Opus 4.8 5d302f145e Rover: move beacon up to AP_Vehicle
The beacon object now lives in AP_Vehicle; remove it from g2 and convert the stored BCN parameters across from the old g2 location.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 10:28:56 +10:00
Peter Barker 2db58b5c9d Rover: adjust for EKF2 shim 2026-05-05 09:52:15 +10:00
Peter Barker 6cea7ac471 Rover: adjust for AP_AHRS_NavEKF3 shim 2026-05-05 09:52:15 +10:00
Thomas Watson 94d58a3f0b Rover: make mode parameters into array
This removes the need for the pointer to the first mode, and removes the
undefined behavior resulting from indexing past that first 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
Peter Barker 8264a9b4a2 Rover: remove unused local 'info' variable
previously used for conversion, factoring and possibly removal of conversions makes this no longer necessary
2025-12-31 15:19:02 +11:00
Thomas Watson 069939b87c Rover: 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 27f6e9f20b global: add Range to pin number param doc 2025-10-23 08:13:22 +11:00
yuri-rage 9316be7658 Rover/Parameters.cpp: update FRAME_TYPE description 2025-09-29 19:59:47 +09:00
Iampete1 4edf983ce7 Rover: move RPM lib to vehicle 2025-07-22 10:33:55 +10:00
Willian Galvani 5f127907ac Rover: add 'Loiter or Hold' as a failsafe action 2025-05-28 08:26:17 +10:00
co63oc afee3173bd Rover: correct typos and mis-spellings 2025-05-04 23:36:45 +10:00
Peter Barker bd93bd788e Rover: tweak MAV parameter names 2025-04-07 10:58:41 +10:00
Peter Barker 8abdebfefc Rover: add parameter conversion for MAV parameters 2025-04-07 10:58:41 +10:00
Peter Barker 3092b11d16 Rover: move telem_delay up into MAV_TELEM_DELAY 2025-04-07 10:58:41 +10:00
Peter Barker 155ba77b54 Rover: SYSID_MYGCS and enforce move up to GCS, change to MAV_MYGCS_ENFRCE 2025-04-07 10:58:41 +10:00
Peter Barker 05c0fa2c14 Rover: move streamrate parameters to GCS_MAVLINK base class 2025-04-07 10:58:41 +10:00
Peter Barker c0f28cbbde Rover: create and use MAV_ parameter namespace
Move serveral parameters in

Rover: create and use MAV_ parameter namespace

Move serveral parameters in
2025-04-07 10:58:41 +10:00
Peter Barker 42f1aea9f3 Rover: adjust for renaming of RC_Channel and GCS_MAVLink headers 2024-12-26 11:01:22 +11:00
Peter Barker 6e0f39e3e1 Rover: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Peter Barker 227b6780b2 Rover: remove ENABLE/DISABLE defines 2024-08-06 09:38:08 +09:00
Peter BarkerandDavid Buzz 3def5f7433 Rover: correct compilation with AP_RRSI_ENABLED false
Co-authored-by: David Buzz <davidbuzz@gmail.com>
2024-07-24 09:11:39 +10:00
Rhys Mainwaring 408401250b Rover: add frame type Omni3Mecanum
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-07-16 16:28:06 +09:00
Peter Barker c40b1627dd Rover: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
Peter Barker 562e5c0b72 Rover: remove redundant @Values from parameter documentation 2024-05-21 14:27:05 +10:00
Randy Mackay 2867b0c2a6 Rover: torqeedo multiple backend integration
shorten param prefix
add param conversion
2024-05-08 17:51:09 +10:00
muramura ac3f27ab7b Rover: Add terminate to parameter description 2024-05-06 10:46:13 +09:00
Peter Barker 97b9c5d4b5 Rover: cope with AP_AVOIDANCE_ENABLED being false 2024-03-11 18:07:18 +11:00
Peter Barker ef82d8b8cc Rover: move AC_Avoidance defines into libraries 2024-03-11 18:07:18 +11:00
Peter Barker 0d43f93160 Rover: move serial_manager parameters up to base class 2024-02-29 12:12:19 +11:00
Peter Barker f673617b54 Rover: remove unused old_top_element param from convert_class 2024-02-27 10:37:45 +11:00
Peter Barker 9af383f634 Rover: convert EFI cvonversion to g2_conversion entry 2024-02-27 10:37:45 +11:00
Peter Barker c26bb2b33b Rover: 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 5f24f33711 Rover: move parameter storage formatting up to AP_Vehicle 2024-02-13 14:23:35 +11:00
Peter Barker aa4a805bb6 Rover: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker b315192dcf Rover: move scripting up to AP_Vehicle 2024-02-07 18:24:12 +11:00
Peter Barker 13af81ba61 Rover: add comment for lost AP_Stats object params 2024-02-07 18:24:12 +11:00
Peter Barker e4cf674891 Rover: move AP_Stats to AP_vehicle 2024-01-30 11:12:21 +11:00
Peter Barker 8bdd0294b8 Rover: correct compilation when HAL_LOGGING_ENABLED is false 2024-01-17 18:25:55 +11:00
Michael du Breuil 3937e96738 Rover: Fix AP_Relay param naming 2023-12-19 10:01:01 +11:00
Randy Mackay fc2ba985bb Rover: SYSID_MYGCS param increment 2023-11-28 07:54:45 +09:00
Pierre Kancir 911a467e37 Rover: make Mode::Number enum class 2023-09-27 08:12:23 +10:00
Pierre Kancir 7dc0c567ce Rover: make Failsafe_Action enum class 2023-09-27 08:12:23 +10:00