Commit Graph

65852 Commits

Author SHA1 Message Date
Andy Piper
e45219f428 AP_Math: not working 2024-12-21 18:00:45 +00:00
Andy Piper
fe7a31c506 AP_Math: WIP polygon tests 2024-12-20 19:44:00 +00:00
Andy Piper
1bca12ab26 AC_Fence: convert degrees to meters correctly 2024-12-19 21:06:52 +00:00
Andy Piper
2ca827f66c AC_Fence: convert margin to degrees before checking 2024-12-19 17:57:25 +00:00
Andy Piper
d4c36299e4 autotest: flake8 clean 2024-12-19 09:21:33 +00:00
Andy Piper
7897494d74 AP_Math: instantiate closest_distance_between_line_and_point_squared 2024-12-19 09:17:13 +00:00
Andy Piper
900d6c4a2e AC_Fence: fix poly loader 2024-12-18 18:57:54 +00:00
Andy Piper
ce6dcacb11 AP_Math: buidl fix for templates 2024-12-18 18:44:01 +00:00
Andy Piper
4f9ad370a3 autotest: update copter fence margin check 2024-12-18 18:27:19 +00:00
Andy Piper
854eacab92 AP_Math: add template versions of Polygon_closest_distance_point() 2024-12-18 18:27:19 +00:00
Andy Piper
339f36897c AC_Fence: add margin checks to polyfence loader 2024-12-18 18:27:19 +00:00
Andy Piper
f41ce5f6ff AP_Scripting: add get_breached_margins() 2024-12-18 18:27:19 +00:00
Andy Piper
b896b3ed9d autotest: test for fence margin warnings 2024-12-18 18:27:19 +00:00
Andy Piper
ddc7bc92aa AC_Fence: add support for warnings at fence margins 2024-12-18 18:27:19 +00:00
Eric Katzfey
5c9003dd02 AP_Volz_Protocol: Moved member variable definition within proper #define block to prevent unused variable warning 2024-12-18 21:50:27 +11:00
bugobliterator
42e2e23464 AP_Networking: fix memory error generated by CAN mcast driver 2024-12-18 21:48:54 +11:00
Andreas Gising
300e5ccedd AP_Scripting: add glide-into-wind example without RC override 2024-12-18 19:35:34 +11:00
Peter Barker
f5d81abb42 AP_AHRS: return EAS from get_unconstrained_airspeed_EAS
Co-authored-by: luweiagi <luweiagi@163.com>
2024-12-18 19:10:15 +11:00
Peter Barker
46b9f06011 AP_AHRS: use TAS in DCM drift correction code
Co-authored-by: luweiagi <luweiagi@163.com>
2024-12-18 19:10:15 +11:00
Siddharth Purohit
92241daef1 AP_InertialSensor: do not read FIFO faster than requested rate for ICM45686 2024-12-18 19:05:20 +11:00
Randy Mackay
523b34fbb9 AP_Scripting: add follow-target-send applet 2024-12-18 18:28:12 +11:00
Randy Mackay
5c7cfa13cf AP_Scripting: add FOLLOW_TARGET msg definition 2024-12-18 18:28:12 +11:00
Randy Mackay
56cb20ac50 AP_Scripting: add get_vel_target poscontrol binding 2024-12-18 18:28:12 +11:00
Randy Mackay
74c702674b AC_PosControl: add get_vel_target and get_accel_target 2024-12-18 18:28:12 +11:00
Randy Mackay
f02b1ddea2 Rover: mavlink stream rate requests not saved to params 2024-12-18 18:16:29 +11:00
Bob Long
726e05afb2 autotest: update SIM_ENGINE_FAIL to mask 2024-12-18 18:06:50 +11:00
Bob Long
dee88b4ecb SITL: default SIM_ENGINE_MUL to 0
This makes SIM_ENGINE_FAIL work a little more intuitively, since it is
usually used to simulate a complete failure.

Also, drive-by fix of the SIM_ENGINE_MUL documentation.
2024-12-18 18:06:50 +11:00
Bob Long
58c3854325 SITL: make SIM_ENGINE_FAIL a mask
The param docs already claimed it was one.
2024-12-18 18:06:50 +11:00
Peter Barker
7c084e9955 autotest: use perfect sim gps to avoid races in frsky test
can't get mavlink and frsky to agree on a value!
2024-12-17 21:31:15 +11:00
Peter Barker
31ec6f66d9 autotest: fix FRSkyPassThroughSensorIDs test
need to clear the read buffers before re-polling sensors - just in case we don't need to!
2024-12-17 21:31:15 +11:00
Peter Barker
84440108e3 AP_AHRS: rename DCM members to clarify EAS vs TAS 2024-12-17 20:17:48 +11:00
Peter Barker
73710d888d Rover: tidy WATER_DEPTH send checks 2024-12-17 20:17:19 +11:00
Peter Barker
07edfdd323 Rover: only send WATER_DEPTH for boat frames 2024-12-17 20:17:19 +11:00
Peter Barker
9f2253a109 Rover: 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
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
Peter Barker
c5284c6fdf Rover: allow WATER_DEPTH mavlink message rate to be specified
... and reduce the default rate

this is currently unconditionally streamed at 50Hz, chewing up all available bandwidth on some telemetry radios.
2024-12-17 20:17:19 +11:00
Peter Barker
6e49333a40 AP_HAL_ChibiOS: do not build QuickTune on peripherals
kills heavy peripherals

../../libraries/AP_Quicktune/AP_Quicktune.cpp: In member function 'void AP_Quicktune::update(bool)':
../../libraries/AP_Quicktune/AP_Quicktune.cpp:177:32: error: 'vehicle' is not a member of 'AP'
  177 |     const auto &vehicle = *AP::vehicle();
      |                                ^~~~~~~
compilation terminated due to -Wfatal-errors.

[ 688/1225] Compiling libraries/AP_TemperatureSensor/AP_TemperatureSensor_TSYS03.cpp
Waf: Leaving directory `/home/pbarker/rc/ardupilot/build/CubeOrange-periph-heavy'
2024-12-17 20:16:30 +11:00
Peter Barker
439c85e793 AP_Airspeed: correct compilation when AP_AIRSPEED_AUTO_CAL_ENABLE is false
CubeNode was trying to check a parameter which doesn't exist

../../libraries/AP_Airspeed/Airspeed_Calibration.cpp: In member function 'void AP_Airspeed::send_airspeed_calibration(const Vector3f&)':
../../libraries/AP_Airspeed/Airspeed_Calibration.cpp:179:23: error: 'class AP_Airspeed_Params' has no member named 'autocal'
  179 |         if (!param[i].autocal && !calibration_enabled) {
      |                       ^~~~~~~
compilation terminated due to -Wfatal-errors.
2024-12-17 11:32:55 +11:00
Andy Piper
7a16bf1987 AP_HAL_ChibiOS: ICM42688 for OrqaF405Pro 2024-12-17 11:21:54 +11:00
Eric Katzfey
1ae898d623 Tools: Frame_params: Added parameter set for the ModalAI Sentinel with IO board and PWM ESCs 2024-12-17 11:21:02 +11:00
Peter Barker
f19eddad74 AP_NavEKF3: apply -O2 to AP_NavEKFx.h
the core.h file adjusts the optimisation level; use it when including the AP_NavEKFx.h header file
2024-12-17 11:18:54 +11:00
Peter Barker
c6ec6cb428 AP_NavEKF2: apply -O2 to AP_NavEKFx.h
the core.h file adjusts the optimisation level; use it when including the AP_NavEKFx.h header file
2024-12-17 11:18:54 +11:00
Peter Barker
52291b622a AP_Generator: apply -Os to all cpp files 2024-12-17 11:11:27 +11:00
Henry Wurzburg
223d683441 ArduPlane: update FS actions metadata with DO_RETURN_PATH_START 2024-12-17 09:34:49 +11:00
Henry Wurzburg
7ee8893820 ArduCopter: update FS actions metadata with DO_RETURN_PATH_START 2024-12-17 09:34:49 +11:00
Henry Wurzburg
85258153ac AP_BattMonitor: update FS actions metadata with DO_RETURN_PATH_START 2024-12-17 09:34:49 +11:00
Peter Barker
535830665c Tools: stop making python python3
this isn't something we should be doing to people's environments
2024-12-17 09:19:20 +11:00
Peter Barker
c8b2663593 .github: stop making python python3
this isn't something we should be doing to people's environments
2024-12-17 09:19:20 +11:00
Peter Barker
ab4614dd98 AP_HAL_ESP32: stop making python python3
this isn't something we should be doing to people's environments
2024-12-17 09:19:20 +11:00
Peter Barker
05e5d2e6bb AP_SerialManager: move serial port init of Volz protocol into Volz library 2024-12-17 09:14:08 +11:00