Commit Graph

58965 Commits

Author SHA1 Message Date
rishabsingh3003 601b01ed8b AP_Proximity: Add backend for scripted Lua Driver 2023-08-03 08:02:49 +09:00
Andy Piper 7238c603c1 AP_HAL_SITL: compile system as double so that time advances 2023-08-02 16:22:59 +01:00
Andy Piper ec02ac9378 wscript: recurse into AP_HAL_SITL 2023-08-02 16:22:59 +01:00
Andy Piper 6ea7d0a258 autotest: relax constraints on wait_speed_vector() 2023-08-02 16:22:59 +01:00
Andy Piper 6e37beb63c autotest: relax precision loiter test 2023-08-02 16:22:59 +01:00
Andy Piper 07f89833c0 autotest: increase home tolerance 2023-08-02 16:22:59 +01:00
Andy Piper 076a0e848c autotest: relax test limits for single-precision 2023-08-02 16:22:59 +01:00
Andy Piper 0665ac0f4f autotest: correct SetHome test for single precision 2023-08-02 16:22:59 +01:00
Andy Piper f726ca1809 Filter: fix notch filter test. 2023-08-02 16:22:59 +01:00
Andrew Tridgell e97f5d8012 AP_Math: mark test_math_double.cpp as double precision source
fixed test_math_double
the wrap check needs to be wrap_PI() as otherwise rounding of 2*PI if
just over 6.28 will give a large error
ensure double tests are double
test_vector2
2023-08-02 16:22:59 +01:00
Andy Piper d94e36fccc AP_Common: ensure that constants are float not double if not otherwise declared
use correct DOUBLE_PRECISION_SOURCES definition
portably define qsort argument in tests
fix test_location
add test_location to double sources
2023-08-02 16:22:59 +01:00
Andy Piper 744028e79e waf: ensure all constants are float not double if not otherwise declared
allow DOUBLE_PRECISION_SOURCES in ap_find_tests()
2023-08-02 16:22:59 +01:00
Peter Barker 925ac9bc4e ArduPlane: eliminate use of MINIMIZE_FEATURES for Plane features 2023-08-02 17:48:25 +10:00
Peter Barker 31281b5d11 AP_HAL_ChibiOS: eliminate use of MINIMIZE_FEATURES for Plane features 2023-08-02 17:48:25 +10:00
Peter Barker 00bc4a9e8b AP_GPS: add and use AP_GPS_DRONECAN_ENABLED 2023-08-02 17:46:30 +10:00
Andrew Tridgell 1723cca023 AP_CANManager: fixed owner of SLCAN UART
this broke when we moved to the unified AP_HAL locking system for
UARTs. The SLCAN code relied on the fact that the thread owner check
was not done for the read_locked() path. Now that we have a higher
level consistent API that check is done and SLCAN broke
2023-08-02 17:44:39 +10:00
Andrew Tridgell 0ed33653fc HAL_ChibiOS: added a method for just changing port owner 2023-08-02 17:44:39 +10:00
Andrew Tridgell a5fd60ec71 AP_CANManager: fixed usage of read_locked
this didn't actually cause an issue, but is wrong
2023-08-02 17:44:39 +10:00
Randy Mackay 9a29bf3f05 Mount: type param desc gets Viewpro 2023-08-02 17:25:25 +10:00
Peter Barker 117d99045d AP_Mount: correct ViewPro compilation under g++-7.5.0
non-trivial designators not implemented
2023-08-02 11:32:31 +09:00
Stephen Dade 50dc591b55 AP_Scripting: Account for nil battery in Rockblock and MAVLink_HL scripts 2023-08-02 12:18:46 +10:00
Randy Mackay 8499a6bd78 Copter: 4.4.0-beta4 release notes 2023-08-01 20:01:32 +09:00
Randy Mackay fa9c138fa7 Rover: 4.4.0-beta4 release notes 2023-08-01 20:01:30 +09:00
Andrew Tridgell 432fd28c45 Plane: update release notes for 4.4.0-beta4 2023-08-01 17:49:38 +10:00
Andrew Tridgell 6b0005d69a Tools: rebuild Here4AP bootloader 2023-08-01 11:38:03 +10:00
Andrew Tridgell 3cde2d964b hwdef: enable custom LED reset code 2023-08-01 11:38:03 +10:00
Andrew Tridgell abea5f8353 AP_Bootloader: added custom LED reset for Here4AP 2023-08-01 11:38:03 +10:00
Andrew Tridgell 865be0df64 hwdef: support for Here4 GPS 2023-08-01 11:38:03 +10:00
Andrew Tridgell 1a4d87bc45 AP_Periph: fixed build with cAN term defines and single CAN 2023-08-01 11:38:03 +10:00
Peter Barker 3c46db5261 AP_Periph: rename ins locals to avoid conflict with ins member variable 2023-08-01 11:37:14 +10:00
Peter Barker 17343e2228 Tools: build_options.py: add SLCAN to build options
saves 4.1kB when disabled
2023-08-01 11:33:26 +10:00
Peter Barker 46b262cb32 waf: tidy interpretation of -Werror 2023-08-01 11:31:07 +10:00
Peter Barker 09a59bc934 AP_LandingGear: avoid use of MINIMIZE_FEATURES in AP_LandingGear_config.h 2023-08-01 10:44:59 +10:00
Peter Barker ac9fd6fcb6 AP_HAL_ChibiOS: avoid use of MINIMIZE_FEATURES in AP_LandingGear_config.h 2023-08-01 10:44:59 +10:00
Peter Barker d5b064b660 Blimp: remove un-needed DO_FOLLOW code case
UNSUPPORTED is the default return value from any unhandled case
2023-08-01 10:43:34 +10:00
Peter Barker 5c7e22debb ArduPlane: correct return error return codes for DO_FOLLOW
in the case it wasn't compiled in the return code would be correct.

in the case that the parameter was invalid we would return FAILED, which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker d41e677c08 Copter: correct return error return codes for DO_FOLLOW
in the case it wasn't compiled in the return code would be correct.

in the case that the parameter was invalid we would return UNSUPPORTED , which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker a79a8ca659 ArduCopter: rely on conversion from long to int for DO_FOLLOW
we have code which tries to handle commands coming in as command long as command int.

Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00
Peter Barker 354e3fa5bf Plane: rely on conversion from long to int for DO_FOLLOW
we have code which tries to handle commands coming in as command long as command int.

Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00
Martin Luessi 459ea697d9 AP_HAL_ChibiOS: RADIX2HD target change Serial4 default protocol to ESC telemetry 2023-08-01 10:40:53 +10:00
Andrew Tridgell a8c17873fc AC_Fence: added option bit for union of inclusion areas
this allows for treating total inclusion area as union of all
inclusion areas. This is useful for:

- circles with corridors between them
- a fence for each flying site all loaded at once
- temporary addition of an extra area to a complex fence
2023-08-01 10:40:17 +10:00
Peter Barker 3ee2d24f1c AC_Fence: clarify bit 2 in FENCE_ENABLE parameter
these aren't just polygon fences ('though they used to be)
2023-08-01 10:17:54 +10:00
Peter Barker 17ec5f7d3b GCS_MAVLink: use long-to-int conversion code for SET_ROI_SYSID
also remove more code based on the mount-enabled define
2023-08-01 10:16:14 +10:00
Peter Barker 8b88dcf336 autotest: ensure we test SET_ROI_SYSID as both command-long and command-int 2023-08-01 10:16:14 +10:00
Iampete1 b4cd3a4d26 AC_AttitudeControl: Heli: move integrate_bf_rate_error_to_angle_errors to private 2023-08-01 09:14:46 +09:00
Iampete1 6ece7ffb2e AC_AttitudeControl: Heli: remove unused flags 2023-08-01 09:14:46 +09:00
Iampete1 d927af03e9 Copter: remove heli motors param checks, moved to motors arming check 2023-08-01 09:12:51 +09:00
Iampete1 40414499fd Copter: AP_Arming: print multiple failures at once. 2023-08-01 09:12:51 +09:00
Iampete1 3e246c9d25 AP_Motors: Heli: remove loop rate "RSC control mode change failed" meassage 2023-08-01 09:12:51 +09:00
Iampete1 c5f3d5a98b AP_Motors: Heli: move heli parameter check to arming check 2023-08-01 09:12:51 +09:00