Commit Graph

5432 Commits

Author SHA1 Message Date
Mouna 2763ce027e Tools: adding my name to GIT_Success 2020-12-16 20:28:09 +09:00
Pierre Kancir 7a2a60e65c Tools: rover: correct test_setting_modes_via_mavproxy_switch for RTL and AUTO 2020-12-16 17:27:07 +09:00
Pierre Kancir 871b9fc12d Tools: plane : initial_mode_switch_mode 2020-12-16 17:27:07 +09:00
Pierre Kancir e4707c20ea Tools: rover: add initial_mode_switch_mode 2020-12-16 17:27:07 +09:00
Pierre Kancir 9550721ae4 Tools: add initial_mode testing 2020-12-16 17:27:07 +09:00
Sebastian Witt fe8ccca9a9 Tools: Add Diatone MambaF405 MK2 2020-12-16 19:07:07 +11:00
Andrew Tridgell f10f7d971d Tools: added --vehicle-binary to sim_vehicle.py
this is useful for using a pre-built binary
2020-12-16 08:45:11 +11:00
Pierre Kancir 7d88d104b8 Tools: put Rover SlewRate test on disable list for now 2020-12-16 08:25:52 +11:00
Andrew Tridgell 087eb8eeea Tools: rebuild CAN bootloaders for AP_Periph 2020-12-15 12:26:14 -08:00
Andrew Tridgell e0e4198358 AP_Bootloader: fixed can bootloader with old UAVCAN GUI tool
the part that was failing was the write of the leading words. That
part is not actually needed in this bootloader as we use a CRC before
running, so remove it, which fixes the old windows GUI tool.

This also saves some memory and flash
2020-12-15 12:26:14 -08:00
Dr.-Ing. Amilcar do Carmo Lucas fb8e1f4b9d Tools: Added support for 1/s and kg/m/m parameter units 2020-12-15 18:22:36 +11:00
Andrew Tridgell 23a9a14d64 Tools: convert to using hal.serial() instead of hal.uartX 2020-12-15 10:32:46 +11:00
Andrew Tridgell bab1bff2b9 Tools: added f303-M10070 bootloader 2020-12-14 16:31:03 +11:00
Andrew Tridgell 3cf71d11a9 AP_Periph: mark version as 1.3dev 2020-12-13 10:32:30 +11:00
Andrew Tridgell 52f66f3654 AP_Periph: updated release notes for 1.2.0beta1 2020-12-13 10:31:35 +11:00
Tom Pittenger 4b47ddf556 AP_Periph: add battery monitor to AP_Periph README 2020-12-13 09:35:28 +11:00
Phillip Kocmoud ce87b62dcc AP_Periph: Add alternate ordering of NCP5623 LED colors 2020-12-12 14:57:35 +11:00
Paul Riseborough 4cf78c34e7 Tools: Add autotest for copter wind estimation and baro correction 2020-12-11 15:21:41 +11:00
Paul Riseborough a3b5901218 autotest: Fix failing copter fly_square test
This test should be flown in ALT_HOLD, not  STABILIZE as that is better mode to test the record waypoint function becasue it removes the need to fine tune the RC3 value to match thrust/weight variation as the hover thrust is not learned fast enough at the start of the test.
2020-12-11 15:21:41 +11:00
Paul Riseborough e835da41fa Tools: Define momentum drag 2020-12-11 15:21:41 +11:00
Andrew Tridgell 5fc68a1ce5 autotest: adjust for new baro SITL param names 2020-12-11 15:21:41 +11:00
Peter Barker 813723d0b7 autotest: add test for needing AHRS to be healthy to arm 2020-12-11 09:55:40 +11:00
Peter Barker 9ad2961664 autotest: allow regex for matching wait_statustext 2020-12-11 07:35:02 +11:00
Peter Barker 50957fff89 Tools: autotest: bisect-helper.py can run autotest by name 2020-12-11 07:35:02 +11:00
Tom Pittenger 0c5cc16d7b AP_Periph: populate more fields in batteryinfo 2020-12-09 07:52:15 -08:00
Randy Mackay 9803a70d3f Tools: copter autotest spelling and format fixes 2020-12-09 19:30:48 +09:00
Randy Mackay 665e6ccdcb Tools: copter GCS fs tests explicitly set FS_GCS_ENABLE and FS_OPTIONS 2020-12-09 19:30:48 +09:00
Peter Barker 0406b28abd autotest: print exception if caught in test_alt_estimate_prearm 2020-12-09 18:06:18 +11:00
Peter Barker cecdc798ca autotest: present strings for unexpected results in run_cmd_get_ack 2020-12-09 14:09:44 +11:00
Andrew Tridgell 39c21e662d AP_Periph: check compass and baro health before using 2020-12-08 20:41:12 +11:00
Andrew Tridgell 74813e7761 AP_Periph: stop sending airspeed when unhealthy 2020-12-08 20:41:12 +11:00
giacomo892 75333dcd2f AP_Periph: support output of MSP airspeed sensor 2020-12-08 20:41:12 +11:00
Tom Pittenger f62a27ca8a Tools/AP_Bootloader: differentiate FAIL_REASON_BAD_LENGTH errors 2020-12-08 14:23:11 +11:00
Andrew Tridgell d0c1fd701f AP_Periph: prevent loop stuck internal error in AP_Periph bootloader flash 2020-12-08 13:22:36 +11:00
Andrew Tridgell c6548cc1b9 autotest: fixed use of GND prefix 2020-12-08 13:22:17 +11:00
Andrew Tridgell 3f6fd49507 Replay: rename baro params to BARO* 2020-12-08 13:22:17 +11:00
Andrew Tridgell dde940380f Tools: update param files to not reference GND parameters 2020-12-08 13:22:17 +11:00
Andrew Tridgell cd2f2f96eb rename barometer parameters to BARO prefix 2020-12-08 13:22:17 +11:00
murata 59445674e7 scripts: Support for decacopters 2020-12-08 11:59:10 +11:00
murata 690d64d664 LogAnalyzer: Support for decacopters 2020-12-08 11:59:10 +11:00
murata 2d55c2c42f pysim: Support for decacopters 2020-12-08 11:59:10 +11:00
murata a46333eff5 Tools: Support for decacopters 2020-12-08 11:59:10 +11:00
Peter Barker 768e3e7931 autotest: adjust Vicon test for new PREARM-checking code
The new check that the prearms-passing bit from the autopilot
indicated prearms have passed was failing here because the yaw isn't
alighed until we frob channel 7.

The intent of the prearm seems ot have been to ensure we can get a
global position - that can be accomplished by polling the home position.
2020-12-07 11:21:30 +11:00
Peter Barker 9207bd8a8a autotest: remove armability check from compass calibration test
The new prearm-checking code has shown that we're not actually armable
after all!

Even the new prearm bit won't tell you if you can arm - you have to arm
to test that!
2020-12-07 11:21:30 +11:00
Peter Barker 087300749c autotest: ensure we have position without being armable for compass cal check 2020-12-07 11:21:30 +11:00
Peter Barker 38e324f141 autotest: do not check prearm bit in dataflash-over-mavlink
We won't be armable - but the other checks we make will ensure we get
the error we are looking for

Also use a more reliable way of draining the data from the autopilot
2020-12-07 11:21:30 +11:00
Peter Barker 5707d8ecc0 autotest: check new MAV_SYS_STATUS_PREARM_CHECK in wait_ready_to_arm 2020-12-07 11:21:30 +11:00
Andrew Tridgell 97cbf17d01 Tools: added HitecMosaic to autobuild 2020-12-06 16:48:08 +11:00
Andrew Tridgell cb34025fef Tools: added HitecMosaic bootloader 2020-12-06 16:48:08 +11:00
Andrew Tridgell 9fa60be1ba AP_Periph: break out node status send 2020-12-06 16:48:08 +11:00
Andrew Tridgell 6ce9207394 AP_Periph: set HitecMosaic as AP_Periph target 2020-12-06 16:48:08 +11:00
Peter Barker be52e642f7 autotest: adjust Replay gps bit to make final logfile replayable 2020-12-03 17:28:26 +11:00
Peter Barker d0236ceac9 Replay: check_replay_branch.py: inspect all logs for replayability 2020-12-03 17:28:26 +11:00
Randy Mackay 28e769a79e Tools: link AP_WheelEncoder for all vehicles 2020-12-01 14:01:17 +09:00
Andrew Tridgell 0c2770a8d4 AP_Periph: added DEBUG parameter for displaying stack usage 2020-12-01 11:14:50 +11:00
Andrew Tridgell d586a2d853 AP_Periph: added magic FLASH_BOOTLOADER=42/43 values
when FLASH_BOOTLOADER=42 we will enter into a lockup loop, which will
trigger a watchdog. This is useful for testing watchdog support
2020-12-01 11:14:50 +11:00
Peter Barker ba0367fa9f Replay: add check_replay_branch.py to check for EKF output changes
Create a replay log using master branch.
Check out a specified branch, compile and run Replay against replay log
Run check_replay.py over the produced log
2020-12-01 10:40:09 +11:00
Peter Barker 8d756d8758 Replay: check_replay.py: default to print for progress function 2020-12-01 10:40:09 +11:00
Andrew Tridgell 4e4a044d5d Tools: removed inhibitGps and inhibitGpsVertVel options
these were unused
2020-12-01 10:33:50 +11:00
Peter Barker 17f806cdb9 autotest: add test for execution of button-bound functions 2020-12-01 10:06:57 +11:00
Peter Barker 12f001066b autotest: split out a wait_armed function 2020-12-01 10:06:57 +11:00
Peter Barker 211cd5255d autotest: tweak beacon test to be replay-friendly 2020-11-30 18:50:24 +11:00
Peter Barker 498b0b79a3 autotest: Replay tests OpticalFlow and Beacons
autotest: run Replay on log generated by test.Copter.BeaconPosition

autotest: test OpticalFlow in replay tests
2020-11-30 18:50:24 +11:00
Tom Pittenger 58c7f8279d Tools/autotest: fix CI by updating new ADSB_ENABLE->ADSB_TYPE param name 2020-11-30 16:05:17 +11:00
Tom Pittenger 2218f8292a Tools: remove ADSB param that is already default 2020-11-30 16:05:17 +11:00
Andrew Tridgell 895b9a34f9 Tools: support uartI, allowing a total of 9 uarts
this allows for OTG2 on the MatekH743 board, which makes SLCAN much
easier
2020-11-30 14:09:31 +11:00
Mehmet Recep Aşkar 31ebcdff75 Tools: added name to GIT_Success.txt 2020-11-30 08:28:54 +09:00
Pierre Kancir cd98129022 Autotest: fix css loading for autotest.ardupilot.org 2020-11-28 19:14:16 +11:00
Phillip Kocmoud 602388224b AP_Bootloader: Repurpose unused mRo board ID 2020-11-28 17:16:55 +11:00
Randy Mackay bce3c551e7 Tools: sub set-position-target-global-int sends target once 2020-11-27 10:52:17 +09:00
Randy Mackay d63fe1eb6c Tools: sub set-position-target uses negative altitude 2020-11-27 10:52:17 +09:00
Pierre Kancir 07ffac429b Tools: rover: add test for slew rate 2020-11-25 17:49:20 +09:00
Peter Barker ab95a1f8fd Tools: create a heading function to remove duplication 2020-11-25 18:51:43 +11:00
Peter Barker 8be13ac5db Tools: update instrall-prereqs-ubuntu for groovy 2020-11-25 18:51:43 +11:00
Peter Barker 9e20f4a68d autotest: add a test for compass yaw sources 2020-11-25 15:19:00 +11:00
Tom Pittenger cf2b3d9bc6 AP_Periph: add AP_BattMonitor support 2020-11-25 14:20:53 +11:00
Pierre Kancir 2e5a5cd43f Tools: correct comment on SITLtest-can 2020-11-25 10:10:03 +11:00
Andrew Tridgell 3366ee9496 Tools: fixed replay CI build 2020-11-24 20:46:37 +11:00
Peter Barker 3f6b398a01 autotest: include EK2,EK3 and DAL LogStructures in code-defined messages 2020-11-24 15:33:37 +11:00
Peter Barker b788a172c8 autotest: add simple test for IE24 generator
Tools: Modified richenpower autotest setup

autotest: IE24: Add error code failsafe test
2020-11-24 12:54:52 +11:00
Pierre Kancir 6534557832 Tools: fix replay build on build_ci.sh 2020-11-24 10:10:33 +11:00
Peter Barker 935d39322c autotest: correct test for mode-change-reason change 2020-11-24 10:09:37 +11:00
Randy Mackay f257dc20d0 Tools: add test.Copter.GPSViconSwitching to CopterTests1d 2020-11-20 16:43:44 +09:00
Randy Mackay b6fe039a9f Tools: autotest for beacon sets EK3_SRC params 2020-11-20 16:43:44 +09:00
Phillip Kocmoud ef80935173 Bootloader: Add bootloader for Pixracer Pro and Control Zero OEM H7 2020-11-18 18:28:24 +11:00
Phillip Kocmoud 701ab83f01 HAL_ChibiOS: Added support for mRo ControlZero OEM H7 flight controller 2020-11-18 18:28:24 +11:00
Andrew Tridgell ce95b7e81a waf: added --enable-memory-guard option 2020-11-18 17:14:43 +11:00
Andrew Tridgell 70a8853e6a Replay: adjust lost message threshold
this needs to be a bit higher to cope with truncated logs (if SITL
ends in the middle of an EKF log write then we end up with a mismatch
in log msg counts)
2020-11-18 14:56:19 +11:00
Andrew Tridgell 32bead6013 Replay: use common events and structures
allows for --force-ekf2 and --force-ekf3 to run the other EKFs events
when needed
2020-11-17 13:45:07 +11:00
Andrew Tridgell 1250f62c88 Replay: fix for WriteV usage and cleanup unused code 2020-11-16 10:28:43 +11:00
Andrew Tridgell e143257f8a Replay: added GSF msgs to check_replay.py 2020-11-16 10:28:43 +11:00
Andrew Tridgell e122d8ae8e Replay: allow build with "./waf replay"
a bit easier to remember
2020-11-16 10:28:43 +11:00
Tom Pittenger 3b6513b932 Tools: add CubeBlack to list of AP_Periph supported boards 2020-11-14 02:26:59 -08:00
Michael du Breuil 960437d446 Tools: Add the SFML configuration flags as needed for joysticks 2020-11-13 15:38:22 +11:00
Peter Barker 29b913cd41 autotest: avoid using undefined fmt variable 2020-11-12 21:00:04 +11:00
bugobliterator f502af99b2 AP_Periph: fix uninitialised buffer arrays 2020-11-11 19:52:37 +11:00
Peter Barker 55697a8f8e Tools: correct decoding of hex values in watchdog decoder 2020-11-11 19:27:49 +11:00
Peter Barker 58bdae1b52 autotest: get Valgrind closer-to-working
This gets us past the reboot problem for the most part, where Valgrind doesn't like you exec'ing
2020-11-11 18:22:58 +11:00
Andrew Tridgell 00cfc1932f autotest: fixed arm delay in replay test
thanks to Peter
2020-11-10 16:15:45 +11:00
Andrew Tridgell 2e60fbc6d3 waf: fixed headers check 2020-11-10 16:15:45 +11:00
Andrew Tridgell 7308384cdc Replay: require a filesystem for replay 2020-11-10 16:15:45 +11:00
Andrew Tridgell 20ecac5e9f Replay: fixed build on boards with OSD 2020-11-10 16:15:45 +11:00
Andrew Tridgell 5f669e22ff autotest: adjust optical flow speed test 2020-11-10 16:15:45 +11:00
Andrew Tridgell 4edc784dc4 Replay: allow replay on ChibiOS 2020-11-10 16:15:45 +11:00
Andrew Tridgell 1a1ca7cca7 autotest: fly a bit higher in optical flow test
test was occasionally hitting the ground
2020-11-10 16:15:45 +11:00
Andrew Tridgell 7568639af7 Replay: don't build on chibios 2020-11-10 16:15:45 +11:00
Andrew Tridgell 025cf8f72b autotest: cleanup load_local_module 2020-11-10 16:15:45 +11:00
Andrew Tridgell 0ca54016bb Replay: cleanup use of globals 2020-11-10 16:15:45 +11:00
Andrew Tridgell 690af580c9 autotest: abstract out load_local_module()
this will be useful for other tests
2020-11-10 16:15:45 +11:00
Andrew Tridgell f674d124d6 autotest: use SITL replay 2020-11-10 16:15:45 +11:00
Andrew Tridgell 85aa64780c Replay: allow replay to run on SITL instead of linux HAL 2020-11-10 16:15:45 +11:00
Andrew Tridgell 7b50780c5e autotest: fixed rmtree error in autotest 2020-11-10 16:15:45 +11:00
Andrew Tridgell a37cae5dae autotest: added test.Copter.Replay test 2020-11-10 16:15:45 +11:00
Andrew Tridgell f1f547f723 Replay: allow check_replay to be called as library 2020-11-10 16:15:45 +11:00
Andrew Tridgell 0d8a36d0c0 Replay: fixed linux build warning 2020-11-10 16:15:45 +11:00
Andrew Tridgell 3dff0b3d58 autotest: removed dcm yaw test
this should not be part of replay PR
2020-11-10 16:15:45 +11:00
Andrew Tridgell 541d11ee05 Replay: cleanup unused code 2020-11-10 16:15:45 +11:00
Andrew Tridgell fb4b149a73 travis: fixed for tools group for DAL standalone 2020-11-10 16:15:45 +11:00
Andrew Tridgell 367c993673 Replay: fixed cast of REY3 2020-11-10 16:15:45 +11:00
Andrew Tridgell e7fa722290 Replay: support overriding parameters 2020-11-10 16:15:45 +11:00
Andrew Tridgell 18e3c478f3 travis: added replay to travis build tests 2020-11-10 16:15:45 +11:00
Andrew Tridgell 403275beea autotest: added RBOH message 2020-11-10 16:15:45 +11:00
Andrew Tridgell 3d2f07e757 Replay: support body frame odometry 2020-11-10 16:15:45 +11:00
Andrew Tridgell 4a06641048 autotest: added RWOH message 2020-11-10 16:15:45 +11:00
Andrew Tridgell afb11cf29b Replay: support wheel odomotry 2020-11-10 16:15:45 +11:00
Andrew Tridgell 7f0113b82d autotest: added REPH and REVH 2020-11-10 16:15:45 +11:00
Andrew Tridgell 0ee8b415f2 Replay: support external position and velocity data 2020-11-10 16:15:45 +11:00
Andrew Tridgell ef5baaf482 autotest: added ROFH msg 2020-11-10 16:15:45 +11:00
Andrew Tridgell 1fb421ae6a Replay: handle optical flow
and move frame processing to AP_DAL
2020-11-10 16:15:45 +11:00
Andrew Tridgell 614a77d2c9 Replay: allow for early log end in check_replay.py
when session is killed we can lose one frame worth of EKF msgs
2020-11-10 16:15:45 +11:00
Andrew Tridgell 4cd5ac5164 Replay: add call to RFRF handler 2020-11-10 16:15:45 +11:00
Andrew Tridgell 8ba067608b autotest: cope with LogStructure.h in multiple places
and allow for no docs in replay msgs
2020-11-10 16:15:45 +11:00
Andrew Tridgell 09265a8a9b Replay: improved failure reporting in check_replay.py 2020-11-10 16:15:45 +11:00
Andrew Tridgell 42d62e138b Tools: updated test helpers to assist in replay testing
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell 3ae237b652 autotest: started work on replay testing 2020-11-10 16:15:45 +11:00
Andrew Tridgell 161f2a8d2f autotest: improved error msg for missing doc fields
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell 0c1d665818 waf: support no-gcs and DAL builds 2020-11-10 16:15:45 +11:00
Andrew Tridgell 81f96aedd2 Replay: new replay implemention
this uses log msgs from AP_DAL to replay more accurately

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Siddharth Purohit 87564f145b AP_Periph: add docs for CAN SITL 2020-11-09 19:37:00 +11:00
Peter Barker c786e3560c Tools: decode_watchdog.py: tool to decode watchdog information 2020-11-07 09:59:04 +11:00
Peter Barker b55838f7ff Tools: make decode-ICSR script an object 2020-11-07 09:59:04 +11:00
bugobliterator c1dc6465cf Tools: add CANGPSCopterMission mission file 2020-11-04 19:59:40 +11:00
bugobliterator c72c96fa9c Tools: setup CI test for CANBus 2020-11-04 19:59:40 +11:00
bugobliterator 60e8d747c6 AP_Periph: fix build type for SITL builds to use "sitl_*" 2020-11-04 19:59:40 +11:00
bugobliterator ed3683fce3 AP_Periph: use native_millis for use in SITL 2020-11-04 19:59:40 +11:00
bugobliterator 48b59973b5 waf: add sitl_gps support to simulate AP_Periph GPS 2020-11-04 19:59:40 +11:00
bugobliterator e4c5d7b697 AP_Periph: get AP_Periph ready for SITL build 2020-11-04 19:59:40 +11:00
PercyFung dce2f78d6f Update GIT_Success.txt
add name
2020-11-03 22:48:25 -08:00
Pierre Kancir fd0e822074 Tools: fix sqlite database creation 2020-10-29 13:07:26 +11:00
Andrew Tridgell 3e3da61396 Tools: fixes from review feedback 2020-10-28 14:20:44 +11:00