Commit Graph

36865 Commits

Author SHA1 Message Date
Peter Barker
34e09a55be GCS_MAVLink: support send_extended_sys_state 2019-03-12 09:16:13 +09:00
Peter Barker
e045f61473 Tools: autotest: add test for throw mode 2019-03-12 11:09:37 +11:00
Peter Barker
4db011f530 SITL: add SIM_SHOVE_* options to shove the simulated vehicle
The parameter values are time in milliseconds and body-frame
acceleration in m/s/s

So to test throw mode:
 mode throw
 param set SIM_SHOVE_Z -30
 arm throttle
 param set SIM_SHOVE_TIME 500
2019-03-12 11:09:37 +11:00
Mark Whitehorn
8c84fa5c64 AP_AHRS: apply AHRS trim in SITL 2019-03-12 10:52:55 +11:00
Michael du Breuil
0bf2fc004e AP_AHRS: Warn if the return value on (get, set)_origin is not checked 2019-03-12 08:27:42 +09:00
Michael du Breuil
281d3b1189 AC_Fence: check the return value of fetching the EKF origin 2019-03-12 08:27:42 +09:00
Peter Barker
cbb0bfb809 Plane: is_flying_vtol: if spool mode is shut down we are not flying
The subsequent check for get_throttle passes if you switch from QHOVER
to MANUAL on the ground while armed.  get_throttle returns > 0.01 - but
the motors are shut down so no output occurs.
2019-03-12 10:21:11 +11:00
Peter Barker
b47b97a981 Tools: autotest: add test for QuadPlane controller pre-arm checks 2019-03-12 10:14:14 +11:00
Peter Barker
cf45b54070 Plane: quadplane use prearm checks from Attitude and Position controllers 2019-03-12 10:14:14 +11:00
Mark Whitehorn
f7bf10fcfc ArduPlane: add rudder to tailsitter gain scaling 2019-03-12 10:12:23 +11:00
Peter Barker
499cc45ac0 AP_Math: move longitude_scale into Location class 2019-03-12 10:11:12 +11:00
Peter Barker
a1c751919c AP_Common: move longitude_scale into Location class 2019-03-12 10:11:12 +11:00
Peter Barker
d7735a316a Sub: remove unused calculation of longitude scale 2019-03-12 10:11:12 +11:00
Michael du Breuil
f7b34677df GCS_MAVLink: Don't send BATTERY_STATUS for empty instances 2019-03-11 22:42:59 +00:00
Michael du Breuil
d96aad86a5 AP_BattMonitor: Make type() const 2019-03-11 22:42:59 +00:00
Andrew Tridgell
52544e5b9f ChibiOS: fixed f412 build 2019-03-12 08:25:00 +11:00
Peter Barker
b450355ff6 Tools: autotest: remove needless wrappers, initialisation etc around guided-submode test
Also disable disarm delay due to autotest mavlink traffic issues
2019-03-11 16:19:30 +11:00
Andrew Tridgell
57ab496a1c Tools: fixed board selection in build_binaries.py 2019-03-11 15:55:57 +11:00
Andrew Tridgell
13e3c2fa92 Tools: fixed exception in generate_manifest.py 2019-03-11 15:44:28 +11:00
Peter Barker
28e27b4120 Tools: autotest: improve test reliability
Also remove redundant reset code

Tools: autotest: drain mav and all pexexpects before running each test

Tools: autotest: increase some timeouts for failures when running under GDB

Tools: autotest: correct ordering of operations in mount test
2019-03-11 13:59:51 +11:00
Andrew Tridgell
aca2115401 Tools: auto-build CubeYellow 2019-03-11 12:40:21 +11:00
Andrew Tridgell
2842063146 HAL_ChibiOS: optimize CubeYellow build
and fixed comment in CubeOrange
2019-03-11 12:40:21 +11:00
Andrew Tridgell
59652ad147 HAL_ChibiOS: added more IMU devices for Hex Cube boards 2019-03-11 12:40:21 +11:00
Andrew Tridgell
81cd103073 AP_InertialSensor: probe for new v2 invensense IMUs
also suppress LSM9DS0 whoami warnings, as these will now be common
with new IMUs

and make 20602 show up as a new devtype so we can distinguish it
2019-03-11 12:40:21 +11:00
Peter Barker
9f80e5b5f5 Tools: autotest: fix horizontal fence test
We do not receive position updates fast enough to reliably detect the
vehicle to be within 10m of home, so increase that radius
2019-03-11 11:25:04 +11:00
Peter Barker
6418226106 Tools: autotest: increase test diagnostics
Tools: autotest: improve wait_distance_home_gt output

Tools: autotest: emit progress for parameter sets

Tools: autotest: add progress for RC health checks

Tools: autotest: remove pointless context
2019-03-11 11:25:04 +11:00
Peter Barker
c5c67362fa Tools: autotest: do not test Copter for loiter-requires-position 2019-03-11 11:03:03 +11:00
Peter Barker
2ef24e700e Tools: autotest: correct gripper tests
set_rc swallows messages - like the statustext messages we are looking
for
2019-03-11 10:46:57 +11:00
Andrew Tridgell
88f34a8456 Tools: added bootloader build for mindpx-v2 2019-03-11 09:58:12 +11:00
Andrew Tridgell
7577ebb33e HAL_ChibiOS: added bootloader hwdef for mindpx-v2 2019-03-11 09:58:12 +11:00
Andrew Tridgell
f7b6f9d70b HAL_ChibiOS: added retries to flash based storage
this prevents a single flash write error from causing parameter reset
2019-03-11 09:52:19 +11:00
Andrew Tridgell
7f0f2661e3 ChibiOS: added fatfs IO retries
this should help reduce the impact of poor connections to microSD cards
2019-03-11 09:14:10 +11:00
Andrew Tridgell
f30f7ca395 travis: added F7 and H7 boards to travis builds
ensure these two build types don't get broken
2019-03-11 08:53:06 +11:00
Peter Barker
d48eab893a Tools: autotest: stop swallowing critical messages with get_sim_time() 2019-03-10 21:55:51 +11:00
Peter Barker
38e26757fd Tools: autotest: add option to quieten some functions
Useful when you know the output is not going to be useful
2019-03-10 21:55:51 +11:00
Andrew Tridgell
63895d8b0c HAL_ChibiOS: setup dummy pointers for H7 SPI 2019-03-10 21:53:06 +11:00
Andrew Tridgell
249676ca32 ChibiOS: submodule update
added dummy pointers for SPIv3
2019-03-10 21:53:06 +11:00
Andrew Tridgell
1414988870 HAL_ChibiOS: use spiSend/spiReceive
this fixes an issue with microSD on F405.
2019-03-10 21:53:06 +11:00
Tom Pittenger
d47663c0ba Tools: allow uploader.py to detect ttyS* on Ubuntu on Windows (WSL) 2019-03-10 21:31:22 +11:00
Peter Barker
e4b3ad377d Tools: autotest: acceptance distance for rally points is WP_RADIUS 2019-03-10 21:10:28 +11:00
Peter Barker
c464da69f1 Tools: autotest: fix Plane guided test
70 degrees is past LIM_ROLL_CD!
2019-03-10 20:33:38 +11:00
Peter Barker
01440f2587 Tools: autotest: increase debug on precland 2019-03-10 20:09:27 +11:00
Andrew Tridgell
dff3ea416c AP_InertialSensor: allow for LSM9DS0 to be used on I2C 2019-03-10 09:03:06 +11:00
Randy Mackay
cf8a7fd423 AP_Logger: add values to backend-type param description 2019-03-09 14:22:28 +09:00
Peter Barker
2a9e0859c7 Tools: autotest: use class map for getting test class for full test name 2019-03-09 15:32:28 +11:00
Peter Barker
a504f9ac8d Tools: autotest: add option to use cached home for distance_to_home 2019-03-09 12:44:06 +11:00
Tom Pittenger
785c91e269 AP_Common: Semaphore is missing an include
Everyone who is already including common/Semaphore has extra includes to make this compile. This reduces that dependancy
2019-03-08 17:24:48 -08:00
Peter Barker
529903622d Tools: autotest: reduce output lines in NavDelay test
Also remove pointless (unclosed) contexts and try blocks
2019-03-09 10:03:10 +11:00
Andrew Tridgell
26d1371d25 HAL_ChibiOS: separate out DMA allocation for sdcard IO
this fixes an issue with DMA to SPI6 on STM32H7. On the H7 SRAM4 can
be used for DMA and BDMA to all devices except for SDMMC which uses
IDMA.

by separating out DMA of sdcard data from other data we can arrange
for DMA to all devices to work
2019-03-09 07:33:47 +11:00
Andrew Tridgell
a7c91d1cb4 HAL_ChibiOS: show all SPI clocks 2019-03-09 07:33:47 +11:00