Commit Graph

55432 Commits

Author SHA1 Message Date
Peter Barker 2f1bda4375 AP_HAL_ChibiOS: explicitly default MSP off for AP_Periph
several Periphs already define this on
2022-11-09 10:21:44 +11:00
Peter Barker 8777d68ac1 autotest: drain self.mav while waiting on other link
In the short period of time it takes for us to get organised/draining mavlink connections, the ArduPilot process might block writing to the primary mavlink connection - in which case we'll never get the message we requested.

Should solve

2022-08-31T23:17:43.6904119Z AT-0227.6: waiting for a message - any message....
2022-08-31T23:17:43.6904958Z AT-0227.6: Received (ATTITUDE {time_boot_ms : 3146, roll : 0.00013471684360411018, pitch : -4.076504410477355e-05, yaw : -2.1274349689483643, rollspeed : 6.679168291157112e-05, pitchspeed : 3.297374496469274e-05, yawspeed : 9.125166684498254e-07})
2022-08-31T23:17:43.6905505Z AT-0227.6: Waiting for mission count of (3) from (1:1) to (243:250)
2022-08-31T23:17:43.6905909Z AT-0227.6: Asserted mission count (type=2) is 3 after 0.100000s
2022-08-31T23:17:43.6906252Z AT-0227.6: Get first item on new link
2022-08-31T23:17:43.6906620Z AT-0289.2: Received exception (Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6907047Z Traceback (most recent call last):
2022-08-31T23:17:43.6907386Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 3067, in test_rally
2022-08-31T23:17:43.6907719Z     m2 = self.get_mission_item_int_on_link(
2022-08-31T23:17:43.6908080Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 2288, in get_mission_item_int_on_link
2022-08-31T23:17:43.6908469Z     raise NotAchievedException("Did not receive MISSION_ITEM_INT")
2022-08-31T23:17:43.6908841Z common.NotAchievedException: Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6909118Z )
2022-08-31T23:17:43.6909468Z AT-0289.2: Exception caught: Did not receive MISSION_ITEM_INT
2022-11-09 09:17:08 +11:00
Andrew Tridgell 9ec13be880 AP_GPS: fixed injection of RTCM on 2 different CAN buses
if we have two CAN GPS on difference can drivers we need to inject to
both
2022-11-09 09:05:33 +11:00
Andrew Tridgell 8637b2098f AP_Scripting: allow aerobatic sequences to load from a txt file
this allows for complex sequences to be defined in a file like
"trick72.txt"

the example shows how it is done
2022-11-09 09:03:37 +11:00
Willian Galvani ec03459a83 AP_Baro: GND_ -> BARO_ 2022-11-08 11:20:59 -03:00
Willian Galvani 307d7bde62 AP_Baro: add Bus6 to BARO_EXT_BUS values 2022-11-08 11:20:59 -03:00
Willian Galvani 5ae3f96cbe AP_HAL_Linux: add LEAK probe pin to Navigator gpio whitelist 2022-11-08 09:46:50 -03:00
Peter Barker 6f9a948b9b AP_Hott_Telem: move definition of HAL_HOTT_TELEM_ENABLED to minimise include file 2022-11-08 20:23:58 +11:00
Peter Barker 7b93bdd7fd AP_HAL_ChibiOS: move definition of HAL_HOTT_TELEM_ENABLED to minimise include file 2022-11-08 20:23:58 +11:00
Peter Barker 85e5e7181f AP_Soaring: move definition of HAL_SOARING_ENABLED to minimise include file 2022-11-08 20:23:58 +11:00
Peter Barker 8708b5f256 AP_HAL_ChibiOS: move definition of HAL_SOARING_ENABLED to minimise include file 2022-11-08 20:23:58 +11:00
Andy Piper 209dd15346 AP_Logger: need to be able to finish format messages even when there is no fence 2022-11-08 17:56:00 +11:00
Peter Barker 506030820e AP_HAL: define HAL_MAX_CAN_PROTOCOL_DRIVERS for bootloader in hwdef.h 2022-11-08 12:06:54 +11:00
Peter Barker fc8ad509f7 AP_HAL_ChibiOS: define HAL_MAX_CAN_PROTOCOL_DRIVERS for bootloader in hwdef.h 2022-11-08 12:06:54 +11:00
Andrew Tridgell f84e0c9e8b AP_GPS: disable GPS lag checking in AP_Periph
it is much more useful to check on the flight controller, not on the
periph, or users just get mysterious failures
2022-11-08 11:39:20 +11:00
Peter Barker 6bb84e5da0 AP_Notify: make explicit define for notify's NCP5623 2022-11-08 10:56:12 +11:00
Peter Barker 6e6fb70541 AP_HAL_ChibiOS: make explicit define for notify's NCP5623 2022-11-08 10:56:12 +11:00
Henry Wurzburg a84f6b6dee Plane: added AUTOTUNE_AXES function to normal tune
Co-authored-by: Peter Hall
2022-11-08 10:54:36 +11:00
Iampete1 1547c65ff3 AP_Scripting: bindings: logging: add flag to copy format strings 2022-11-08 10:49:43 +11:00
Iampete1 1df00d879a AP_Logger: add option allocate scripting format strings in msg_fmt_for_name 2022-11-08 10:49:43 +11:00
Lucas De Marchi 175e6d3e7e Tools: Update fram params for skyviper
Set the necessary SERVO*_FUNCTION params so it doesn't conflict.
2022-11-08 08:21:06 +09:00
Peter Barker 0bea140239 AP_OpticalFlow: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker 2f29dd9b18 AP_Compass: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker 4bdac4afc5 AP_Mount: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker bc5839c1f4 AP_AdvancedFailsafe: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker 06d90b1a1e GCS_MAVLink: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker 9be030309a AP_VisualOdom: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker 4fccfdd56f AP_Scripting: include cleanups 2022-11-08 09:49:19 +11:00
Peter Barker a6510daf6a AP_RangeFinder: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 65a92a481a GCS_MAVLink: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 09a602589f AP_LTM_Telem: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker b0818d72e6 ArduSub: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 96900ea627 AP_VideoTX: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 6f9a6d2973 AP_RCTelemetry: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 1ce48a9947 AP_NMEA_Output: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 6561398a46 AP_MSP: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 7b36903f26 AP_Devo_Telem: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 6946bd2529 AP_Airspeed: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker c8302e115a AP_AIS: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker 162d93c742 AP_Soaring: tidy includes 2022-11-08 09:49:19 +11:00
Peter Barker ad32805213 AP_OSD: tidy includes 2022-11-08 09:49:19 +11:00
Peter Barker 410a4ccaff AP_Arming: tidy includes 2022-11-08 09:49:19 +11:00
Peter Barker ab4b508311 Tools: remove OMNIBUSF7V2-bdshot 2022-11-08 09:01:57 +11:00
Peter Barker 7d103b9218 AP_HAL_ChibiOS: remove OMNIBUSF7V2-bdshot 2022-11-08 09:01:57 +11:00
Peter Barker b3b0abe6c1 Tools: bisect_helper.py: update submodules when bisecting build 2022-11-08 09:01:12 +11:00
Peter Barker 3a859b4173 Tools: fix bisect helper
Python3 made stringification different, showing up this problem
2022-11-08 09:01:12 +11:00
Peter Barker 49ec94af1b autotest: add test for manual throttle control for ICEngine 2022-11-08 08:59:56 +11:00
Andrew Tridgell e6af416f94 AP_Scripting: fixed yaw glitch on init in aerobatics 2022-11-08 08:44:23 +11:00
Andrew Tridgell 1488edb1d8 HAL_SITL: fixed sleep time with speedup
and removed sleep in threads for cygwin, as granulatity of sleep is
too high, resuling in very poor lua performance
2022-11-07 21:22:43 +11:00
Andrew Tridgell 6a3c7f8cf6 AP_Scripting: get ahrs state once at the start of each loop
this minimises the impact of slow lua scripting
2022-11-07 21:22:43 +11:00