70209 Commits

Author SHA1 Message Date
ES-Alexander
a667b8f8ed libraries: AP_ServoRelayEvents: add missing compilation check 2025-12-06 08:41:04 +11:00
Thomas Watson
fbf146fc35 AP_Scripting: fix spelling mistake in error message 2025-12-04 21:12:30 -06:00
Thomas Watson
3b93ae972b AP_Scripting: fix binding generator spelling mistakes 2025-12-04 21:12:30 -06:00
Bob Long
46de336e8e Tools: fix legacy GPS names in default param files 2025-12-05 10:20:59 +11:00
Bob Long
f98584f09f Tools: param_check: complain about legacy params
When generating metadata for the test, don't emit legacy parameters.
2025-12-05 10:20:59 +11:00
Bob Long
0186c0e9cc Tools: relax test_generate_metadata unit test
This section was simultaneously too strict and not strict enough. This
section mainly confirms that the vehicle argument is passed on.
2025-12-05 10:20:59 +11:00
Peter Barker
458a99dd25 AP_Compass: enable MMC5XX3 only on boards with >1024kB
out of space on Pixhawk1-1M.  boards which include this in their hwdef will still get the driver, but it won't be available for external probing on 1MB boards.
2025-12-05 07:30:18 +11:00
jagadeeshdinesh
0ea41a4246 AP_Compass: add support for MMC5XX3 (MMC5983MA) external I2C compasses 2025-12-05 07:30:18 +11:00
Oscar Laptop
0476187043 Rover: Added AMP limiter 2025-12-05 07:26:59 +11:00
Rhys Mainwaring
80261650a7 autotest: fix multi-vehicle default path
- Ensure all items in the path for default parameters are modified .

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2025-12-04 11:52:44 -06:00
Thomas Watson
11b1a3edc6 AP_Beacon: use ARMING_SKIPCHK in sitl params
This also probably actually makes this parameter effective by removing
the ALL bit.
2025-12-04 11:52:13 -06:00
Thomas Watson
9ed2413e6e Tools/Frame_params: manually convert ARMING_SKIPCHK
The meaning is the same as before, for better or worse.

Some files only for older firmwares were not touched.
2025-12-04 11:52:13 -06:00
Thomas Watson
b1bdf3a5c1 SITL/examples: update to use ARMING_SKIPCHK in params
These conversions were done by spirit rather than literally. Note that
the webots python params get several more checks enabled but the one
disabled now matches the comment.
2025-12-04 11:52:13 -06:00
Thomas Watson
0801494db2 AP_HAL_ChibiOS: manually convert ARMING_SKIPCHK in default params
The meaning is the same as before, for better or worse.
2025-12-04 11:52:13 -06:00
Thomas Watson
c9ca278bce AP_HAL_ESP32: use ARMING_SKIPCHK in stampfly default params
AIRSPEED check was inexplicably disabled before as well, but it's
compiled out so re-enabling it doesn't matter.
2025-12-04 11:52:13 -06:00
Thomas Watson
0f8054dbd6 autotest: use ARMING_SKIPCHK 2025-12-04 11:52:13 -06:00
Thomas Watson
39e957b9ca Rover: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
41b46bf804 Blimp: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
edd333b891 ArduSub: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
58e3562a3b ArduPlane: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
a5eba5f95b ArduCopter: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
436047600a AP_Arming: turn ARMING_CHECK into ARMING_SKIPCHK
This lowers the effort required to turn off just one arming check.
Previously, a user had to disable the ALL bit and enable every check
except the undesired one. Now they can just disable that one directly.
Hopefully this will result in less vehicles with no arming checks
whatsoever, presuming only one check is giving the user grief.

This, as a side effect, removes the difference between the ALL bit set
and all non-ALL bits set (e.g. the latter disables IMU heater checks).
It also ensures the user will get any new arming checks even if they
have skipped one.

People who need to disable all current and future checks for e.g. bench
testing can still do this efficiently by setting the parameter to `-1`,
leveraging that this sets all bits in 2s complement arithmetic.

A parameter conversion is included that skips no checks if the old ALL
bit is set; otherwise it migrates the user's selected checks. If no
checks were enabled, it disables all current and future checks.
2025-12-04 11:52:13 -06:00
Thomas Watson
e0bf41659d AP_Param: expand get_param_by_index index
In some cases the index can be more than a `uint8_t` so just use the
underlying type in the `ConversionInfo`.

This is a no compiler output change.
2025-12-04 11:52:13 -06:00
Thomas Watson
cd5828573c autotest: don't fiddle with ARMING_CHECK in BeaconPosition
The mentioned bug must have been fixed as the test works now without
doing any fiddling. The code never worked properly anyway, `1 ^ 25` is
nonsense and presumably should have been `1 << 25`.
2025-12-04 11:52:13 -06: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
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
Thomas Watson
d992ff3972 Tools/Replay: add AP_Arming object to replay vehicle
Now that we call the AP_Arming singleton's initialization method in
AP_Vehicle, we have to ensure an AP_Arming exists for all vehicles.
Otherwise we get a segfault.

This is nicer than disabling AP_ARMING_ENABLED for replay and causing a
full recompile. Also nicer than checking that the singleton is not
nullptr as this is zero overhead for all other vehicles.
2025-12-04 11:52:13 -06:00
Thomas Watson
e1880eb6fc Tools/Replay: remove unused configure function
This is never called as the main `wscript` does not recurse into this
directory until build time. Even if it were called, it would update the
environment for all builds instead of just replay. Even if it did update
the environment, nobody reads that variable so there's no effect.
2025-12-04 11:52:13 -06:00
Thomas Watson
445bb60e01 AP_Vehicle: rehabilitate AP_Arming init
Was prototyped many years ago but never defined or called.
2025-12-04 11:52:13 -06:00
Thomas Watson
18fc5a34b1 AP_Arming: rehabilitate AP_Arming init
Was prototyped many years ago but never defined or called.
2025-12-04 11:52:13 -06:00
Arwayday
4161509207 hwdef: add board type AP_HW_HWH7 with ID 1223 2025-12-04 11:07:33 +11:00
Bob Long
c1d939253f AP_HAL_ChibiOS: update CarbonixF405 2025-12-04 10:10:55 +11:00
Peter Barker
9f8380d888 hwdef: remove unused HAL_BUZZER_ON/HAL_BUZZER_OFF defines
these haven't been used in a very long time.  Their replacement infers the same default behaviour, so that's nice.
2025-12-04 09:31:06 +11:00
Andy Piper
83e2647b5e AP_Scripting: add access to more fence methods 2025-12-03 19:18:19 +00:00
Peter Barker
bf7ba24ef4 AP_HAL_ChibiOS: hwdef: remove unused BOARD_PWM_COUNT_DEFAULT defines
this hasn't been used in years
2025-12-03 12:53:20 -06:00
Peter Barker
78f04ef38e AP_HAL: ensure BOARD_PWM_COUNT_DEFAULT stays dead
we removed most of these years ago, but some crept back in.

Kill them with fire.
2025-12-03 12:53:20 -06:00
Peter Barker
30d49c6f9f hwdef: remove unused ADC lines from iomcu hwdef.inc
these don't ever appear to have been used!
2025-12-03 12:16:50 -06:00
Peter Barker
430bbced6e AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT
not used since at least 2022
2025-12-03 12:11:20 -06:00
Peter Barker
5e6e163c03 AP_HAL: add sanity check that HAL_COMPASS_DEFAULT stays out of code
most of these were removed in 2022.

Many have crept back in, so kill them with fire.
2025-12-03 12:11:20 -06:00
Christian Clauss
685441fdf7 Tools: Use del x.attr instead of delattr(x, 'attr') 2025-12-03 11:51:28 -06:00
Peter Barker
a3f5193c75 GCS_MAVLink: add exception to 'forward bad crc frames' for RADIO_STATUS+
review request to not forward these message IDs even in the face of the option being set to ignore CRCs.

tridge is worried about routing loops
2025-12-03 20:22:28 +11:00
Peter Barker
5a5c71f570 GCS_MAVLink: move loopback check before bad-crc forward check
we don't want to forward these even if they have a bad CRC, lest we create a routing loop
2025-12-03 20:22:28 +11:00
Peter Barker
0a34a59448 GCS_MAVLink: add option to forward messages with bad CRCs 2025-12-03 20:22:28 +11:00
Randy Mackay
5fe4264669 Tools: rover require-location-for-arming update
home is set even with low sats
failure message is Need Position Update when using EKF
2025-12-03 18:18:55 +11:00
Randy Mackay
ba5fb4820c AP_AHRS: options defaults to no dcm fallback for rover 2025-12-03 18:18:55 +11:00
Karen Simeon
ae7b6fb919 AP_Mount_Mavlink: fix GIMBAL_DEVICE_FLAGS_RETRACT being overwritten 2025-12-03 09:56:06 +09:00
tailvildev
e108a7ab30 Tools: added name to GIT_Success.txt 2025-12-03 09:55:35 +09:00
Henry Wurzburg
952ce21f2e RC_Channel:add metadata for new switches 2025-12-03 06:45:07 +11:00
Bob Long
c40bd1e8d5 Tools: legacy-param options for param_parse.py 2025-12-02 22:15:22 +11:00
Randy Mackay
5f9a8f7efe Tools: update build options for MAVLink Mount 2025-12-02 21:43:07 +11:00