Commit Graph

46084 Commits

Author SHA1 Message Date
Randy Mackay
4032ac9884 AC_AutoTune: level criteria is 5deg for plane and 2.5 for all others 2021-02-06 14:45:53 +09:00
Andrew Tridgell
2e9b2fbc2b Plane: update release notes for 4.0.9beta1 2021-02-06 15:46:01 +11:00
Michael du Breuil
623951a262 AP_HAL_ChibiOS: Add some extra GPS SBF config 2021-02-05 11:52:29 -07:00
Michael du Breuil
5f3b1b92a4 AP_GPS: SBF don't send configuration until we've recieved a prompt
This fixes a configuration problem with SBF unit's where sometimes we
fail to detect the GPS unit continously, until it's been manually
configured. This was tested by doing a hard reset to the GPS unit.

This also now accepts a set of defines from the hwdef, or build
environment, which allows us to specify extra config options.
2021-02-05 11:52:29 -07:00
Michael du Breuil
d9ffd04a96 AP_GPS: Broadcast the detect message on AP_Periph over CAN 2021-02-05 11:52:29 -07:00
Andrew Tridgell
b113fe15ab Tools: added MatekH743-periph to autobuild 2021-02-05 20:13:36 +11:00
basti
a3c47e0a23 AP_OSD: add SD-card handling to font README 2021-02-05 19:48:06 +11:00
Randy Mackay
f20fc28a85 Tools: param files to ease SITL setup of GPS-for-yaw 2021-02-05 17:22:27 +09:00
Peter Barker
3da156e358 AP_InertialSensor: prevent nullptr dereference in SITL 2021-02-05 15:02:12 +11:00
Andrew Tridgell
6144136b61 Filter: fixed reset of filters to first value
the delay elements were set incorrectly
2021-02-05 15:01:22 +11:00
Tom Pittenger
d1e6b0befb AP_HAL_ChibiOS: Add ADC1 support to STM32F3
This is useful for AP_Periph battery monitoring
2021-02-04 16:30:38 -08:00
murata
09f04e8a5a AP_RangeFinder: Devices are enabled and disabled by type
AP_RangeFinder: Devices are enabled and disabled by type

AP_RangeFinder: Delete some description of I2C function address.
2021-02-05 09:44:27 +11:00
Andrew Tridgell
b8e82a56f3 HAL_ChibiOS: don't start rout ticks till after full system init
this prevents an occasional boot hang on systems with DShot
enabled. We shouldn't be starting DShot output till after setup() is
complete as the outputs are still being configured
2021-02-05 07:17:57 +11:00
Randy Mackay
a09bdcdda1 Tools: default param file to ease using copter SITL with vicon 2021-02-04 20:21:00 +09:00
Peter Barker
f847758272 Filter: add gtest suite 2021-02-04 20:50:48 +11:00
Peter Barker
514dfa4b71 SITL: SF45B: increase resolution to 1 degree
The mode filter tends to squish a lot of data if we don't get this
correct.
2021-02-04 20:50:21 +11:00
Tatsuya Yamaguchi
83417c1df7 AP_Notify: modify NTF_BUZZ_VOLUME description 2021-02-04 17:27:00 +09:00
Peter Barker
ee2f615352 AP_Proximity: RPLidarA2: correct face distances are assigned to 2021-02-04 16:57:48 +11:00
Peter Barker
567e9733b6 autotest: augment bisect-helper.py to help with flapping tests
- option to allow for a string which must be present in the outout
 - option for strings which must not be present in the output
 - repeat option so test must pass many times
 - elaborate diagnostic output
 - option to run under Valgrind (to provoke races)

The output from each test run is poked into a directory in /tmp

The number of runs a test took to fail is poked into a different file in /tmp, helping to tune the --autotest-test-passes parameter
2021-02-04 16:22:28 +11:00
Peter Barker
c2e310d75f autotest: add test for OBSTACLE_DISTANCE_3D message 2021-02-04 15:50:45 +11:00
Peter Barker
393ec5d6f7 autotest: add test for MAVProxy proximity sensor 2021-02-04 12:03:35 +11:00
WillyZehnder
acfe815305 AP_Scripting: make get_control_mode_reason available to lua 2021-02-04 08:32:35 +09:00
Peter Barker
84953c2e39 AP_BattMonitor: fix constexpr-and-MIN don't get along bug
lib/libArduCopter_libs.a(AP_BattMonitor_SMBus_NeoDesign.cpp.0.o): In function `AP_BattMonitor_SMBus_NeoDesign::timer()':
/home/pbarker/rc/ardupilot/build/sitl/../../libraries/AP_BattMonitor/AP_BattMonitor_SMBus_NeoDesign.cpp:27: undefined reference to `AP_BattMonitor_SMBus_NeoDesign::max_cell_count'
collect2: error: ld returned 1 exit status
2021-02-04 09:17:57 +11:00
Patrick José Pereira
ba293084e3 SITL: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
61bcbfea14 AP_TempCalibration: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
12cd138030 AP_HAL: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
6bdc1704f4 AP_GPS: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
e9a299d96e AP_CANManager: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
danlaks
d244f22522 Tools: AP_Bootloader: Add AP_HW_SWBOOMBOARD_PERIPH identifier
SpektreWorks Boom Board AP_Periph device
2021-02-04 08:37:32 +11:00
Andy Piper
baf8c9d70c ChibiOS: update to latest ChibiOS to include osalDbgAssert redefine 2021-02-03 23:35:44 +11:00
Andrew Tridgell
c580151d75 ChibiOS: fixed SRAM3 size for cache disable 2021-02-03 23:35:44 +11:00
Andy Piper
2cdc202d19 AP_HAL_ChibiOS: use non-cachable SRAM3 for DMA on H743
Adjust SRAM1+SRAM2 to 256k as describe in the H743 reference manual
Provide access to mem_info() information

Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2021-02-03 23:35:44 +11:00
Andy Piper
cfac268f13 AP_Filesystem: add @SYS/memory.txt
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2021-02-03 23:35:44 +11:00
Andy Piper
0eff201016 AP_HAL: add mem_info()
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2021-02-03 23:35:44 +11:00
murata
de9382b0f4 AP_Mission: Reflecting the result of the process 2021-02-03 22:15:02 +11:00
Peter Barker
af29f34f2c Plane: store previous_mode_reason only as a local
It's never used outside the mode-changing method.
2021-02-03 20:33:25 +11:00
murata
698f967b63 GCS_MAVLink: Notify the maximum number of missions
Update libraries/GCS_MAVLink/MissionItemProtocol.cpp

Co-authored-by: WickedShell <Wicked.Shell.Scripts@gmail.com>

GCS_MAVLink: Notify the maximum number of missions
2021-02-03 20:31:50 +11:00
Peter Barker
82edfc6237 Sub: remove unused prev_control_mode_reason 2021-02-03 19:22:25 +11:00
Michael du Breuil
f854477efe AP_BattMonitor: Limit the scope of possible corruption if the NeoDesigns gets a bad cell count 2021-02-03 19:21:39 +11:00
Andrew Tridgell
699e61da57 Tools: auto-build new matek boards 2021-02-03 19:05:12 +11:00
Andrew Tridgell
4a178d5c44 Tools: added new Matek bootloaders 2021-02-03 19:05:12 +11:00
Marko
00d0fe876d AP_Compass: Added support for internal i2c bus to VRBrain-v51
Now the internal compass HMC5883 of the VRBrain-v51 is correctly recognized

Co-authored-by: Pierre Kancir <pierre.kancir.emn@gmail.com>
2021-02-03 19:00:48 +11:00
Iampete1
e600df680e Plane: instantly switch from RTL to QRTL if within radius 2021-02-03 18:53:54 +11:00
Andy Piper
553425f994 Scripts: add bi-directional dshot firmware to built binaries 2021-02-03 18:49:06 +11:00
Andy Piper
49f0ba058c Bootloaders: add bi-directional dshot bootloaders 2021-02-03 18:49:06 +11:00
Andy Piper
06a1500f98 AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly
minimise bi-directional dshot configs for:

CubeOrange
Durandal
MatekF405
MatekH743
OmnibusNanoV6
Pixracer
mRoPixracerPro
omnibusf4pro
CUAV-X7
2021-02-03 18:49:06 +11:00
Patrick José Pereira
07c3435f9d SITL: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Patrick José Pereira
7b6f1225ba AP_WheelEncoder: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Patrick José Pereira
b8360a08c7 AP_Vehicle: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Patrick José Pereira
9904b397d8 AP_UAVCAN: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00