Commit Graph

33566 Commits

Author SHA1 Message Date
Andrew Tridgell fed89a0b16 HAL_ChibiOS: added commented out test code for watchdog 2019-04-20 13:55:27 +10:00
Andrew Tridgell 3cb134b67c AP_Baro: skip cal on watchdog reset 2019-04-20 13:55:21 +10:00
Andrew Tridgell 7e675805fa AP_Airspeed: skip cal on watchdog reset 2019-04-20 13:55:17 +10:00
Andrew Tridgell 9d34494bfd Plane: show message for skipping gyro cal 2019-04-20 13:55:13 +10:00
Andrew Tridgell 3f0af2ce29 AP_InertialSensor: skip gyro cal on watchdog reset 2019-04-20 13:55:08 +10:00
Andrew Tridgell ad2ff5a207 HAL_ChibiOS: implement was_watchdog_reset()
# Conflicts:
#	libraries/AP_HAL_ChibiOS/Util.h
2019-04-20 13:55:03 +10:00
Andrew Tridgell 4b4eb33558 AP_HAL: added was_watchdog_reset()
# Conflicts:
#	libraries/AP_HAL/Util.h
2019-04-20 13:54:41 +10:00
Andrew Tridgell ac5294c974 HAL_ChibiOS: record reason for reset
allows us to tell if reset was due to watchdog
2019-04-20 13:54:18 +10:00
Andrew Tridgell 5823a6b963 HAL_ChibiOS: use BRD_OPTIONS to enable watchdog
# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-04-20 13:54:14 +10:00
Andrew Tridgell 348506b3c4 AP_BoardConfig: added BRD_OPTIONS
used to enable STM32 watchdog

# Conflicts:
#	libraries/AP_BoardConfig/AP_BoardConfig.cpp
#	libraries/AP_BoardConfig/AP_BoardConfig.h
2019-04-20 13:53:45 +10:00
Andrew Tridgell 78ac3e1e2f HAL_ChibiOS: added IWDG watchdog support
this resets the MCU if the main loop stops for 1 second

# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-04-20 13:52:31 +10:00
Andrew Tridgell d74723efd1 Tools: added CUAVv5Nano bootloader 2019-04-11 16:12:35 +10:00
Andrew Tridgell ae2d4e6edc HAL_ChibiOS: change CUAVv5Nano default PWM count to 11 2019-04-11 16:12:32 +10:00
Andrew Tridgell 021816ecbc HAL_ChibiOS: fixed CUAVv5Nano uarts 2019-04-11 16:12:29 +10:00
Andrew Tridgell ee9d084757 HAL_ChibiOS: support for CUAVv5Nano board
F765 with no IOMCU
2019-04-11 16:12:27 +10:00
Andrew Tridgell 1420265513 HAL_ChibiOS: fixed fallback to microSD for storage
this is used when FRAM fails on a board with microSD support. The
double init caused the validate() in the FATFS code to fail
2019-04-07 13:40:24 +10:00
Andrew Tridgell 6a3513fb0e Plane: prepare for 3.9.7 release 2019-04-01 17:42:44 +11:00
Andrew Tridgell 9bc1a537b5 Plane: update release notes for 3.9.7 2019-04-01 17:42:13 +11:00
Andrew Tridgell f50a6b59cc AP_TECS: fixed a bug in changes from rate-limited to non-limited airspeed
The calculation of the non-limited airspeed rate demand used the last
non-limited airspeed, whereas it should have used the last adjusted
value. This led to a single frame spike in airspeed demand, which fed
through to a sudden change in pitch integrator.
2019-04-01 09:29:25 +11:00
Andrew Tridgell b1a8055f20 AP_TECS: prevent airspeed demand spikes causing large pitch changes
a short term spike in the derivative of speed demand could cause the
constraint on the pitch integrator to push the pitch integrator to
very low values, causing a sharp nose down which takes a long time to
recover from
2019-04-01 09:29:25 +11:00
Andrew Tridgell a8568402ef Plane: updated release notes for 3.9.6 2019-03-04 08:14:22 +11:00
Andrew Tridgell 9bc8a65970 Plane: prepare for 3.9.6 2019-03-04 08:13:17 +11:00
Andrew Tridgell 0360f887a0 HAL_ChibiOS: allocate threads from any heap
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
2019-02-27 12:00:18 +11:00
Andrew Tridgell a3fa359a63 Plane: prepare for 3.9.6beta1 2019-02-26 07:23:15 +11:00
Andrew Tridgell 8fa140de16 Plane: updated release notes for 3.9.6beta1 2019-02-26 07:22:27 +11:00
Andrew Tridgell 7b6d74be13 Plane: check motor spool state in vtol approach check 2019-02-25 13:29:00 +11:00
Andrew Tridgell 1135a91846 autotest: added defaults for compass3 offsets 2019-02-25 10:52:25 +11:00
Andrew Tridgell d71c8bc7ce AP_Compass: change to 3 compasses in SITL 2019-02-25 10:52:25 +11:00
Andrew Tridgell cc4c7d648d waf: fixed ROMFS compression to use zero timestamp
this makes the apj file indepenent of build date, which fixes this
issue:

https://discuss.ardupilot.org/t/arducopter-waf-build-repeatability/37182
2019-02-25 10:52:25 +11:00
Rob Ratcliff 199412adf2 RC_Channel: treat UINT16_MAX as a value of 0 in set_override
Addresses ignore R/C override issue documented here:
https://github.com/ArduPilot/ardupilot/issues/1667
2019-02-25 10:52:25 +11:00
Randy Mackay 8d3e1e45a7 AC_PosControl: remove unnecessary init of last_update_xy_ms 2019-02-25 10:52:25 +11:00
Andrew Tridgell f03893c2f8 HAL_ChibiOS: setup APJ board IDs in environment 2019-02-25 10:52:25 +11:00
Andrew Tridgell 3471a5d567 waf: fixed git hash in generated APJ file
# Conflicts:
#	Tools/ardupilotwaf/chibios.py
2019-02-25 10:52:25 +11:00
Andrew Tridgell 2187ee4611 HAL_ChibiOS: fixed mini-pix uart order 2019-02-25 10:52:25 +11:00
Andrew Tridgell 659e8395d5 AP_NavEKF3: fixed EKF compass switching
when we had 3 compasses the lack of the 'break' meant when we switched
compass in flight we would always switch back instantly to the one
that we had just rejected.
2019-02-25 10:52:25 +11:00
Andrew Tridgell fe724e40b3 AP_NavEKF2: fixed EKF compass switching
when we had 3 compasses the lack of the 'break' meant when we switched
compass in flight we would always switch back instantly to the one
that we had just rejected.
2019-02-25 10:52:25 +11:00
Andrew Tridgell 037469db30 AC_WPNav: prevent I term buildup during landing
this prevents I term buildup in the XY velocity controller during
landing. This to account for the EKF giving a non-zero horizontal
velocity when we have touched down. The I term buildup in the XY
velocity controller can lead to the attitude error going above the
level for disabling the relax function as the throttle mix is
changed. That results in large motor outputs which can tip over the
vehicle after touchdown.

Thanks to Leonard for the suggestion
2019-02-25 10:52:25 +11:00
Andrew Tridgell bc95c25cc9 Plane: use WP height for height above ground in vtol landing
this allows for landings above or below the takeoff height without
requiring the use of terrain data. It allows both the use of vfwd
motor for holding against wind, and the correct height for land final
descent rate
2019-02-25 10:52:25 +11:00
Andrew Tridgell 4b33865ee2 AP_Math: fixed inefficient sq() function 2019-02-25 10:52:25 +11:00
Michael du Breuil 9d528205c7 Plane: Update throttle mix 2019-02-25 10:52:25 +11:00
Andrew Tridgell c755deff21 Plane: allow fwd motor to run in VTOL land hor positioning
this fixes an issue with vtol landings below the takeoff point
2019-02-25 10:52:25 +11:00
Michael du Breuil 7a33d949ca Plane: Don't overwrite the quadplane loiter relax 2019-02-25 10:52:25 +11:00
Andrew Tridgell 51acb72152 AP_RangeFinder: fixed lightware serial with LW20 lidar
it needs a longer serial write to force it to serial mode from i2c
2019-02-25 10:52:25 +11:00
Andrew Tridgell 3dd4cf4d87 AP_Rangefinder: probe all I2C buses for rangefinders 2019-02-25 10:52:25 +11:00
Andrew Tridgell a2f0ff7386 Filter: fixed crash on zero cutoff frequency
this fixes #10435
2019-02-25 10:52:25 +11:00
Andrew Tridgell e981966640 Plane: call AHRS resetHeightDatum() on baro reset
this prevents the AMSL estimate from the EKF going off badly if we
disarm at a high altitude
2019-02-25 10:52:25 +11:00
Andrew Tridgell 0c2ea764ce Plane: handle VTOL landing with incorrect height
if landing above expected height then run landing detector to allow a
switch from LAND_DESCEND to LAND_FINAL

this prevents the plane sitting on the ground until the battery runs
out
2019-02-25 10:52:25 +11:00
Andrew Tridgell 82c85de469 Plane: separate out slew limit logic for left/right throttles 2019-02-02 12:24:00 +11:00
Andrew Tridgell 1a56659eec Plane: apply throttle slew to dual-motor setups
thanks to Alex for noticing this issue
2019-02-02 09:38:21 +11:00
Andrew Tridgell 45fa3913ec Plane: prepare for 3.9.5 release 2019-01-27 14:20:40 +11:00