Andrew Tridgell
6d2e060deb
waf: add -fcheck-new to g++ build
...
this ensures the compiler doesn't assume that new always returns a
non-NULL value. Without this the compiler may remove the error path in
code like this:
```
MyObject *x = new MyObject;
if (x == nullptr) {
::printf("Alloc failed\n");
}
```
the reason it can do this is the new operator is marked as throwing an
exception on failure, which means the error path is unreachable. As we
don't have C++ exceptions in ArduPilot could (and do!) have code that
ends up losing protection against allocation failures
2023-01-09 15:04:22 +11:00
Randy Mackay
0d18ee71fa
GCS_MAVlink: send_autopilot_state_for_gimbal_device sends ef z-axis rate target
2023-01-09 10:34:34 +09:00
Randy Mackay
e076ce64a1
Copter: replace get_rate_bf_targets with get_rate_ef_targets
2023-01-09 10:34:34 +09:00
Randy Mackay
78f1b18b64
AP_Vehicle: replace get_rate_bf_targets with get_rate_ef_targets
2023-01-09 10:34:34 +09:00
Randy Mackay
5981e8bbaa
AC_AttitudeControl: add get_rate_ef_targets accessor
2023-01-09 10:34:34 +09:00
Andrew Tridgell
3d5ef88c43
AC_AttitudeControl: fixed time wrap bug in is_active_xy()
...
this failed at 70 minutes
2023-01-08 16:02:42 +11:00
Andrew Tridgell
f39f4e35c2
GCS_MAVLink: optimise FTP for available bandwidth
...
when we don't have hardware flow control don't use more than 1/3 of
available bandwidth for ftp outgoing transfers. This makes parameter
download faster on radios without flow control
2023-01-08 15:11:32 +11:00
Andrew Tridgell
a14c5b2955
AP_HAL: check for null buffer in ObjectBuffer get_size()
2023-01-08 15:11:32 +11:00
Andrew Tridgell
41de8286ef
GCS_MAVLink: check for alloc failure of ObjectBuffer
2023-01-08 15:11:32 +11:00
Andrew Tridgell
db45682b3d
AP_Scripting: check for alloc failure of ObjectBuffer
2023-01-08 15:11:32 +11:00
Andrew Tridgell
03f4ab515d
AP_HAL_Linux: check for alloc failure of ObjectBuffer
2023-01-08 15:11:32 +11:00
Andrew Tridgell
6bff28d5d5
AP_CANManager: check for alloc failure of ObjectBuffer
2023-01-08 15:11:32 +11:00
Andrew Tridgell
e184e78e52
AC_Avoidance: check for alloc failure of ObjectBuffer
2023-01-08 15:11:32 +11:00
Andrew Tridgell
57ee3a4e02
GCS_MAVLink: send FTP replies directly from the FTP thread
...
this saves over 700 bytes of memory while also making ftp faster
2023-01-08 15:11:32 +11:00
Andrew Tridgell
7a741a0a2d
AP_GPS: fixed use of undulation for GPS2_RAW
...
GPS2_RAW needs to use undulation of 2nd receiver
2023-01-08 13:30:11 +11:00
Andrew Tridgell
17c25780c7
AP_GPS: support UNIHEADINGA message for Unicore NMEA
...
this allows for good yaw even without a RTK fix, which makes yaw with
dual-antenna Unicore GPS modules much more useful
2023-01-08 13:30:11 +11:00
bugobliterator
cf2d1ec290
Tools: fix CI error while building for macos
2023-01-08 11:48:33 +11:00
auturgy
82ad70968f
AP_Bootloader: sync ArduPilot and PX4 boards.txt
...
This PR aligns boards.txt between ArduPilot and PX4. A matching PR will be submitted to the other repo.
2023-01-07 21:06:54 +11:00
Sanket Sharma
20550d42a9
updated ardupilot_gazebo source and dependencies
2023-01-07 08:13:37 +09:00
Sanket Sharma
3a85f1152b
Tools: Add ardupilot_gazebo install script
...
Added ardupilot_gazebo package for simulation purposes
2023-01-07 08:13:37 +09:00
murata
42a2a51dc7
AP_Landing: Change from division to multiplication
2023-01-06 11:31:09 -08:00
Andrew Tridgell
b80dca38ff
GCS_MAVLINK: added check_payload_size() method
...
this saves flash by moving common code to cpp
2023-01-06 22:50:42 +11:00
Peter Barker
f20769057b
autotest: give WindEstimate more time to converge
...
this was right on the edge
2023-01-06 15:06:22 +11:00
Peter Barker
54a4b7a98b
GCS_MAVLink: use chibios_hwdef.py to disable fence on AP_Periph
2023-01-06 12:39:06 +11:00
Peter Barker
28592269ff
AP_HAL_ChibiOS: use chibios_hwdef.py to disable fence on AP_Periph
2023-01-06 12:39:06 +11:00
Tom Pittenger
401f55254b
Tools: fix wsl2 check in sim_vehicle to match uploader.py
2023-01-06 11:27:52 +11:00
Peter Barker
d9564d973d
autotest: fix un-set variable problem in verify_innov
2023-01-06 11:11:22 +11:00
Tom Pittenger
c68bab44a5
Tools: fix wsl2 sim_vehicle.py host IP check
2023-01-05 19:45:41 +09:00
WillyZehnder
b64cec7e36
Tools:environment_install:install-prereqs-ubuntu.sh: Mint to Ubuntu
...
translate Mint-codenames to Ubuntu-codenames
2023-01-05 08:30:42 +11:00
Iampete1
3299976eae
AP_Airspeed: move setting of first backend defualts to constructor to avoid race
2023-01-05 08:27:45 +11:00
Peter Barker
f5320f1691
autotest: rover: remove pointless try/except block
2023-01-05 07:29:44 +11:00
Andrew Tridgell
0b7353bb89
AP_Filesystem: detect inconsistent parameter count
...
on incorrect param count invalidate it so a 2nd param ftp will get the
right count
2023-01-04 21:50:24 +11:00
Andrew Tridgell
f0bc31cdc3
AP_Vehicle: invalidate param count at end of vehicle startup
2023-01-04 21:50:24 +11:00
Tom Pittenger
642ebb44cf
Tools/autotest: automate sim_vehicle in WSL2
2023-01-04 20:03:34 +11:00
Peter Barker
1a262010ff
autotest: simplify Plane Rangefinder test
...
this was written before there was an implicit context and reboot-on-failure at the level calling these tests
2023-01-04 18:29:41 +11:00
Peter Barker
3854e4a99d
AP_AHRS: get_relative_position_D_home: don't use home until set
2023-01-04 18:11:01 +11:00
Peter Barker
341d66800a
hwdef: minimize features on VRBrain-v52 and VRCore-v10
...
these are failing to build on the firmware server
2023-01-04 18:06:18 +11:00
Peter Barker
fe4e4b0aff
AP_HAL: correct sitl-on-hw compilation for Helicopters
2023-01-04 18:04:28 +11:00
Peter Barker
95527894de
AP_InertialSensor: define AP_INERTIALSENSOR_ENABLED in a new AP_InertialSensor_config.h
2023-01-04 18:02:34 +11:00
Peter Barker
e8c5296087
AP_HAL: define AP_INERTIALSENSOR_ENABLED in a new AP_InertialSensor_config.h
2023-01-04 18:02:34 +11:00
Peter Barker
de54bcbc21
AP_HAL_ChibiOS: define AP_INERTIALSENSOR_ENABLED in a new AP_InertialSensor_config.h
2023-01-04 18:02:34 +11:00
Henry Wurzburg
8de4195ffc
AP_Scripting: add readme.md file and completion
2023-01-04 16:20:12 +11:00
Andrew Tridgell
ea89f04a56
AP_Scripting: script switching system
...
Co-authored-by:Henry Wurzburg (hwurzburg@yahoo.com )
2023-01-04 16:20:12 +11:00
Peter Barker
128a6430de
autotest: add test for AHRS backend wind estimates
2023-01-04 12:30:27 +11:00
Peter Barker
c728483a7e
AP_HAL_SITL: add option to create uart connection to file
2023-01-04 12:29:49 +11:00
Andy Piper
2c990f9e1c
AP_HAL_ChibiOS: MambaH743 v2 with dual ICM42688
2023-01-04 08:12:44 +11:00
murata
0fedd83208
AP_SerialManager: Add 2Mbps for simulator
2023-01-03 12:52:07 +11:00
Tom Pittenger
d0b7e5fe82
modules: fix DroneCAN/libcanard to point back at its master
2023-01-03 12:51:21 +11:00
Kirill Shilov
4e3081cdf8
AIRLink hwdef: added heater parameters
2023-01-03 12:08:57 +11:00
Peter Barker
389eb3ac50
AP_HAL_ChibiOS: minimize Mamba405-2022
2023-01-03 11:39:18 +11:00