Commit Graph

39479 Commits

Author SHA1 Message Date
Andrew Tridgell 87f2839f3e GCS_MAVLink: fixed critical error on prefight cal ops 2019-12-12 20:43:35 +11:00
Andrew Tridgell 042f6c65e7 Plane: prepare for 4.0.2beta1 release 2019-12-09 14:14:43 +11:00
Andrew Tridgell 7b759c7bd8 Plane: updated release notes for 4.0.2beta1 2019-12-09 14:14:08 +11:00
Andrew Tridgell 595a49eec4 GCS_MAVLink: send temperature for IMUs 2019-12-09 13:25:18 +11:00
Andrew Tridgell 04827d229c AP_NavEKF2: don't use WMM tables unless we have a compass scale factor set 2019-12-09 13:18:01 +11:00
Andrew Tridgell c36687a79f SITL: added SIM_MAG_SCALING for testing scale factor errors
# Conflicts:
#	libraries/SITL/SITL.cpp
2019-12-09 13:18:01 +11:00
Andrew Tridgell bc7f811ff0 AP_GPS: cope with UAVCAN GPS that don't provide Aux message
thanks to @VadimZ for the suggestion
2019-12-09 13:18:01 +11:00
Randy Mackay 0cd737856d AP_RangeFinder: remove param conversion for 3rd and 4th
3rd and 4th instances were not available to users unless they used their own builds which is rare
this reduces the firmware's flash size a small amount
2019-12-09 13:18:01 +11:00
Randy Mackay 4cb470e4df AP_RangeFinder: param conversion fix
This resolves an issue with the parameter conversion when moving from Copter-3.6.x to 4.0 (and similar moves for other vehicle types)
2019-12-09 13:18:01 +11:00
Peter Barker 8fac70149d AP_Compass: tidy constructor 2019-12-09 13:18:01 +11:00
Peter Barker 03064f8eea AP_Compass: make compass_cal_status_t enum class Status within CompassCalibrator 2019-12-09 13:18:01 +11:00
Andrew Tridgell 342dd67dc0 AP_Compass: narrow range of allowed scale factor 2019-12-09 13:18:01 +11:00
Andrew Tridgell 536222859d AP_Compass: added COMPASS_OPTIONS
this allows user to set that calibration requires GPS lock
2019-12-09 13:18:01 +11:00
Andrew Tridgell 920007f3c4 AP_Compass: added estimation of compass scale factor
this adds new COMPASS_SCALE, COMPASS_SCALE2 and COMPASS_SCALE3
parameters, which give the sensor scaling factor. It is used to
compensate for an incorrect scaling in a compass.

The 3D compass calibration process will set the correct value
automatically, otherwise users can set the value to a known value for
an existing compass
2019-12-09 13:18:01 +11:00
Randy Mackay ae234635e8 AP_Compass: minor comment fix
Co-Authored-By: Peter Barker <pb-gh@barker.dropbear.id.au>
2019-12-09 13:18:01 +11:00
lukezhqin f59d22aa41 AP_Compass: fix thin_samples to avoid comparing sample to itself 2019-12-09 13:18:01 +11:00
Randy Mackay b87f42bc07 AP_Compass: fix calibrator update when step one fails 2019-12-09 13:18:01 +11:00
Randy Mackay d9fde84ccb AP_Compass: rename CompassCalibrator::clear to stop 2019-12-09 13:18:01 +11:00
Randy Mackay 6c8ee8fa67 AP_Compass: remove unused calc_mean_squared_residuals 2019-12-09 13:18:01 +11:00
Randy Mackay a5e0af6868 AP_Compass: add comments to calibrator 2019-12-09 13:18:01 +11:00
Randy Mackay 243cf3b22d AP_Compass: formatting fixes
this should be a non-functional change
2019-12-09 13:18:01 +11:00
Randy Mackay 69a7a52e5f AP_Compass: constify get_completion_mask and remove use of auto 2019-12-09 13:18:01 +11:00
Randy Mackay cf34abba87 AP_Compass: constify get_orientation 2019-12-09 13:18:01 +11:00
Andrew Tridgell 47fe57bd8d AP_Compass: remove expected error
this happens with AK09916 probing on invensense sensor
2019-12-09 13:18:01 +11:00
Andrew Tridgell 3b244bbc7f AP_Compass: disable HIL for AP_Periph
this saves several k of flash
2019-12-09 13:18:01 +11:00
Randy Mackay 88761e59f0 AP_Compass: LEARN param default to 0 for all vehicles 2019-12-09 13:18:01 +11:00
Andrew Tridgell 1afd603fa8 AP_Compass: don't show too many params when max compasses 1 2019-12-09 13:18:01 +11:00
Andrew Tridgell 5d4b457305 mavlink: submodule update 2019-12-09 13:18:01 +11:00
Andrew Tridgell 16c2fd76a6 ChibiOS: fixed I2C transaction bugs
This adds protections for unexpected interrupts on all I2C variants
2019-12-09 13:18:01 +11:00
Andrew Tridgell 2d25adca33 HAL_ChibiOS: fixed build of sparky2
running out of flash
2019-12-09 13:18:01 +11:00
Andrew Tridgell 9f76d2cf50 AP_BLHeli: fixed critical errors caused by BLHeli code 2019-12-09 13:18:01 +11:00
Andrew Tridgell 1fa764c915 HAL_ChibiOS: update mRoX21-777 I2C mask
all external
2019-12-09 12:58:55 +11:00
Phillip Kocmoud 0fffc77dae HAL_ChibiOS: update mRoControlZeroF7 I2C mask 2019-12-09 12:58:52 +11:00
Andrew Tridgell eb0075e4fb AP_Bootloader: added more protection against line noisy triggering bootloader
this is in reponse to a report from Ryan of the Hybrid project who
found that mavlink on telem1 could make bootloader get stuck
2019-12-09 12:58:21 +11:00
Andrew Tridgell 32247d5ff4 AP_Bootloader: added STM32H7xx chip revisions 2019-12-09 12:58:10 +11:00
Andrew Tridgell 59b576ebf3 AP_BattMonitor: added Durandal selection for batt mon pins 2019-12-09 12:57:44 +11:00
Andrew Tridgell 5fe0cd16ab HAL_ChibiOS: enable MatekF765 LED pin
- use tonealarm for buzzer
 - add more baro options
2019-12-09 12:56:40 +11:00
yaapu 4bf6f4c297 Ap_Frsky_Telem: replaced the passthrough scheduler with a WFQ one.
This replaces the default scheduler with a WFQ one
2019-12-09 12:56:13 +11:00
vierfuffzig 91c77e6df4 AP_BLHeli: fix eRPM conversion 2019-12-09 12:55:37 +11:00
Andy Piper 00406180c4 AP_HAL_ChibiOS: specify Durdanal IMUs so that ordering is correct 2019-12-09 12:54:14 +11:00
Henry Wurzburg 4d4b4d46a2 HWDEF: Speedybeef4 change I2C internal mask to 0 to allow probing ext baros 2019-12-09 12:54:06 +11:00
Andrew Tridgell 3a1b24c9bb HAL_ChibiOS: fixed handling of 16bit timer wrap
this fixes #12948
2019-12-09 12:45:20 +11:00
Andrew Tridgell 6f9abb8a4b HAL_ChibiOS: added assert for systime_t size 2019-12-09 12:45:09 +11:00
Andrew Tridgell 1d77453017 Plane: prepare for 4.0.1 release 2019-11-22 14:52:06 +11:00
Andrew Tridgell 784a613d30 Plane: updated release notes for 4.0.1 2019-11-22 14:51:53 +11:00
Andrew Tridgell 9a978c1eef AP_Airspeed: switched to recursive semaphore
this is needed by the SDP3X driver. It is the simplest fix for the
issue
2019-11-20 07:35:07 +11:00
Peter Barker 435dfcc614 Plane: do not trust fence-channel PWM during RC failsafe 2019-11-19 10:59:28 +11:00
Andrew Tridgell 99932a3319 AP_GPS: fixed cast for comparison with txspace 2019-11-19 07:49:55 +11:00
Andrew Tridgell c8f6697859 AP_TECS: removed TECS_LAND_PMIN
thanks to TunaLobster for pointing out that it is redundent
2019-11-19 07:47:33 +11:00
Andrew Tridgell d86304a315 Plane: prepare for 4.0.1beta1 2019-11-17 11:59:58 +11:00