Commit Graph

43858 Commits

Author SHA1 Message Date
Andrew Tridgell
a9ca78532e Tools: added MSP bus type to decode 2020-09-09 06:35:50 +10:00
Andrew Tridgell
4b1552eebe AP_HAL: added BUS_TYPE_MSP
for MSP sensors
2020-09-09 06:35:50 +10:00
Andrew Tridgell
c7b03dc936 AP_OSD: added missing OSD types to param docs 2020-09-09 06:35:50 +10:00
yaapu
5e88a856e9 AP_Compass: support for MSP compass 2020-09-09 06:35:50 +10:00
yaapu
ea53ce2a3f AP_Baro: support for MSP barometer 2020-09-09 06:35:50 +10:00
Andrew Tridgell
94670879f8 AP_GPS: allow hwdef.dat override of GPS rate 2020-09-09 06:35:50 +10:00
yaapu
85b61d6bf3 AP_GPS: added support for MSP GPS sensors 2020-09-09 06:35:50 +10:00
yaapu
266b747ffc AP_MSP: added support for MSP sensors 2020-09-09 06:35:50 +10:00
Andrew Tridgell
844db20db0 HAL_ChibiOS: use a default node ID for f303-MatekGPS 2020-09-09 06:35:50 +10:00
Andrew Tridgell
9c24415f86 AP_Periph: support output of MSP sensor data 2020-09-09 06:35:50 +10:00
Andrew Tridgell
5647aadbcf AP_GPS: added API for getting last iTOW 2020-09-09 06:35:50 +10:00
Andrew Tridgell
5f5c7735a3 AP_MSP: support AP_Periph MSP send 2020-09-09 06:35:50 +10:00
Andrew Tridgell
9c7568eb5f HAL_ChibiOS: enable MSP output for f303-MatekGPS 2020-09-09 06:35:50 +10:00
chobits
f4320c935c AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot 2020-09-08 18:57:30 +10:00
Peter Barker
4d59939db6 AP_BattMonitor: create and use new AP_HAL::PWMSource object 2020-09-08 16:10:50 +10:00
Peter Barker
abfd995fff AP_RSSI: create and use new AP_HAL::PWMSource object 2020-09-08 16:10:50 +10:00
Peter Barker
72b49efc78 AP_RangeFinder: create and use new AP_HAL::PWMSource object 2020-09-08 16:10:50 +10:00
Peter Barker
55f72c1534 AP_HAL: create and use new AP_HAL::PWMSource object 2020-09-08 16:10:50 +10:00
Peter Barker
9228f47dc9 autotest: create collections-on-context to record selected messages 2020-09-08 14:19:08 +10:00
Peter Barker
f3866e5f39 autotest: disable button test 2020-09-08 12:31:15 +10:00
Andrew Tridgell
e9b8a20312 Plane: fixed hover learn in quadplanes for THR_MIN>0
petrol quadplanes commonly have THR_MIN>0, and without this change
cannot ever learn the hover throttle
2020-09-08 11:09:25 +10:00
Andrew Tridgell
7c5a0a6a43 Tools: disable LOG_REPLAY by default in autotest
LOG_REPLAY prevents us logging when we have sensor failures, which
makes many tests hard to debug
2020-09-08 11:01:14 +10:00
Andrew Tridgell
c03c43e52c AP_NavEKF3: use same mag switch pattern as EKF2
based on Pauls suggested change
2020-09-08 11:01:14 +10:00
Paul Riseborough
da7bb44a61 AP_NavEKF2: Consolidate magnetometer timeout checks 2020-09-08 11:01:14 +10:00
Andrew Tridgell
37866ec3cf AP_Compass: fixed compass logging when first compass unhealthy
keep logging compasses if any are healthy
2020-09-08 11:01:14 +10:00
Andrew Tridgell
80ef6fa7f2 Tools: added a MagFail test
ensures that both EK2 and EK3 will failover to a new compass on
compass failure
2020-09-08 11:01:14 +10:00
Andrew Tridgell
3836b59041 AP_NavEKF3: fixed handling of failed compass
when a compass goes unhealthy due to sensor failure we should try
another compass after 10s if another compass is available
2020-09-08 11:01:14 +10:00
Andrew Tridgell
6b9e595602 AP_NavEKF2: fixed handling of failed compass
when a compass goes unhealthy due to sensor failure we should try
another compass after 10s if another compass is available
2020-09-08 11:01:14 +10:00
Andrew Tridgell
c2feebea13 AP_Compass: allow simulation of compass sensor failure 2020-09-08 11:01:14 +10:00
Andrew Tridgell
bf9c76a5c3 SITL: added SIM_MAGn_FAIL parameters 2020-09-08 11:01:14 +10:00
Peter Barker
5c2b478feb SRV_Channel: remove unused set_output_pwm_first method 2020-09-08 10:55:23 +10:00
Mark Whitehorn
629f2153e0 Plane: move arming delay logic into AP_Arming_Plane 2020-09-08 10:54:42 +10:00
Mark Whitehorn
2b4772269d Plane: tiltrotors: allow vectored yaw motor tilt when disarmed
add disarm tilt delay
add arming delay
add Q_OPTIONS for disarmed motor tilt and delayed arming
add comment explaining arming delay option
eliminate millis() wrap in arming delay
2020-09-08 10:54:42 +10:00
Mark Whitehorn
bcdd16025b Plane: replace AP_MotorsMatrixTS with AP_MotorsMatrix 2020-09-08 10:50:31 +10:00
Mark Whitehorn
d3c1838fbe AP_Motors: remove AP_MotorsMatrixTS 2020-09-08 10:50:31 +10:00
Peter Barker
dba3158446 Copter: correct mode change for GCS failsafe in SmartRTL mode
In the case that you:
 - have previously done a successful SmartRTL flight
 - get a mid-air gcs failsafe and enter SmartRTL
 - recover from that gcs failsafe but remain in SmartRTL
 - get another mid-air failsafe

then without this patch you will enter LAND mode.

When determining our failsafe action, we were looking at whether we
should just continue landing.  To do that, we ask the current mode if we
are landing.  Problem is that SmartRTL was handing back the wrong answer
- it was handing back ModeRTL's answer rather than its own, and
ModeRTL's answer was "yes, I'm landing", as that's the last state that
step 1 in the above list leaves that mode in.

This patch simply hands back the correct answer for, "am I landing"
2020-09-08 09:05:03 +09:00
Peter Barker
d508ba97c5 autotest: add test for SmartRTL getting another GCS failsafe
Test for specific bug where we would land instead of continue in
SmartRTL
2020-09-08 09:05:03 +09:00
Peter Barker
397b95154c Copter: remove superfluous RETURN_TARGET_ALTTYPE_ from enum class names
Just repeats what's in the required prefix for the enum class
2020-09-08 10:01:59 +10:00
Andrew Tridgell
74686f8dc4 GCS_MAVLink: fixed locking of mavlink in serial control
this fixes takeover of mavlink ports for high serial numbers
2020-09-08 09:01:16 +10:00
vierfuffzig
a547af97c6 AP_OSD_Screen.cpp: fix aviation unit vspd sym
in aviaition units it's ft / min actually, not ft / s. stumbled across this thanks to increased attention to the vspeed panel using @samuelctabor awesome soaring addons ;)
2020-09-08 08:13:24 +10:00
bugobliterator
fbc0b9e599 AP_UAVCAN: silence function cast warning/error for Registry template 2020-09-08 07:42:20 +10:00
Samuel Tabor
3c0d4b6d5a autotest: Add start time argument and parsing. 2020-09-07 21:20:25 +10:00
Samuel Tabor
21a8471d2d SITL: Add start time argument. 2020-09-07 21:20:25 +10:00
vierfuffzig
63fdac0048 AP_HAL_ChibiOS: add USART3 as alt config on OmnibusNanoV6 2020-09-07 15:34:01 +10:00
Peter Barker
e81b6e1f17 travis: shift tests around to avoid 50m limit on travis
Recent additions to copter-tests2 mean we're running out of time there
2020-09-07 12:57:51 +10:00
Andrew Tridgell
d6e3b5834a AP_MSP: change font to fix arrows and added --font and --list-fonts 2020-09-07 11:59:20 +10:00
Andrew Tridgell
ad6a1af2fc AP_MSP: cleanup after control-C 2020-09-07 11:59:20 +10:00
Andrew Tridgell
c83fd8edf2 AP_MSP: fixed use of float in pygame for py3 2020-09-07 11:59:20 +10:00
Andrew Tridgell
a9ecac4fff Tools: added --osdmsp option to sim_vehicle.py 2020-09-07 11:59:20 +10:00
yaapu
65b70dddb2 AP_MSP:msposd.py added a DJI look and feel to some items 2020-09-07 11:59:20 +10:00