Commit Graph

33587 Commits

Author SHA1 Message Date
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
Andrew Tridgell
25f5e9171d Plane: update release notes for 3.9.5 2019-01-27 14:20:30 +11:00
Andrew Tridgell
be531e9742 Plane: fix tailsitter logged attitude targets 2019-01-25 10:14:21 +11:00
Andrew Tridgell
69bf224730 Plane: ignore battery failsafe during landing
fixes https://github.com/ArduPilot/ardupilot/issues/10320
2019-01-24 08:22:25 +11:00
Andrew Tridgell
ba53230f70 HAL_ChibiOS: fixed CAN on Pixhawk4 and PH4-mini
the silent pins floating disabled CAN
2019-01-23 13:26:55 +11:00
Andrew Tridgell
98fa9454ed HAL_ChibiOS: disable USART6_TX on fmuv5
this prevents it acting as a pullup on SBUS input for Pixhawk4. Thanks
to David Sidrane for the suggestion.

This also enables the extra 3 PWMs for PH4-mini
2019-01-18 09:45:46 +11:00
Andrew Tridgell
71e776640f Plane: updated release notes for 3.9.5beta2 2019-01-15 14:37:10 +11:00
Andrew Tridgell
3b7c6071c5 Plane: prepare for 3.9.5beta2 2019-01-15 14:36:52 +11:00
Andrew Tridgell
55f0c1cac3 Tools: update IO_Firmware for Pixhawk4 2019-01-15 10:41:50 +11:00
Andrew Tridgell
7040b6c2d7 AP_RCProtocol: on DSM sync error don't reset channel count
this fixes the issue noticed by Andreyl in 3.6.5rc1
2019-01-15 10:41:50 +11:00
Andrew Tridgell
c882262ff9 Plane: fixed EKF yaw reset
we need to do the yaw reset before updating the rest of quadplane, or
it is not effective

thanks to Leonard for noticing the bug!
2019-01-15 10:41:50 +11:00
Andrew Tridgell
e33d42e659 SITL: added simulated battery for quadplane
needed for motor interference for mag
2019-01-15 10:41:50 +11:00
Michael du Breuil
0a7fc2fd12 AP_HAL_ChibiOS: Fix FMUv2 LED lighting up 2019-01-11 17:46:20 +11:00
Andrew Tridgell
99d8353166 Plane: update release notes 2019-01-11 13:41:57 +11:00
Andrew Tridgell
3df6f55777 Plane: update release notes for 3.9.5beta1 2019-01-11 13:34:37 +11:00
Andrew Tridgell
b93aed2ceb Plane: prepare for 3.9.5beta1 2019-01-11 13:28:09 +11:00
Andrew Tridgell
81b5c3a7da HAL_ChibiOS: fixed sdcard build 2019-01-11 13:25:32 +11:00
Andrew Tridgell
12be040da2 AP_BoardConfig: fixed build 2019-01-11 13:15:36 +11:00
Andrew Tridgell
4732266017 HAL_ChibiOS: fixes for DrotekP3Pro 2019-01-11 13:15:33 +11:00
Kevin Lopez Alvarez
2069cff1bf AP_BoardConfig: add ChibiOS FMUv4pro defines 2019-01-11 13:15:31 +11:00
Kevin Lopez Alvarez
6c2cf4ecc0 AP_HAL: add ChibiOS FMUv4pro 2019-01-11 13:15:29 +11:00
Kevin Lopez Alvarez
f350b3ce57 HAL_ChibiOS: add MCU tables for STM32F469 2019-01-11 13:15:23 +11:00
Kevin Lopez Alvarez
3ae1b0d3c3 HAL_ChibiOS: add DrotekP3Pro hardware definitions 2019-01-11 13:15:20 +11:00
Andrew Tridgell
623a7c3bf3 waf: fixed static link build
for bebop
2019-01-11 13:15:09 +11:00
Andrew Tridgell
a57f3880d1 Plane: fixed VTOL takeoff to ignore lat/lon in mission
we should always takeoff vertically
2019-01-11 12:42:18 +11:00
Siddharth Purohit
8a64876eb2 HAL_ChibiOS: add CubePurple/PH2Slim board config 2019-01-10 21:35:04 +11:00
Andrew Tridgell
9467e0fa04 AP_RCProtocol: bring up to date with master
this adds new RC protocol decoders for SRXL, SUMD and ST24 as well as
updating to latest soft-serial decoder
2019-01-09 13:52:42 +11:00
Andrew Tridgell
51ee86583b ChibiOS: added sd slowdown support 2018-12-31 08:15:21 +11:00
Andrew Tridgell
1240b79cc8 DataFlash: allow startup with no microSD
this allows logging to work with insert after boot
2018-12-31 08:15:14 +11:00
Andrew Tridgell
99d0f7a77d HAL_ChibiOS: try to mount microSD after boot 2018-12-31 08:15:12 +11:00