Commit Graph

53789 Commits

Author SHA1 Message Date
Peter Barker 4561e78dd5 AP_Periph: include GCS_MAVLink.h for firmware version type define 2022-07-16 17:15:52 +10:00
Peter Barker 5286ad45ad AP_Common: AP_FWVersion doesn't need mavlink headers 2022-07-16 17:15:52 +10:00
Leonard Hall 0405451463 SITL: Fix BaroWindCorrection Test 2022-07-15 09:59:44 +09:00
Leonard Hall 7a5c71d8a4 Tools: Update Callisto Model 2022-07-15 09:59:44 +09:00
Peter Barker bceaa10794 autotest: add a test for rally point altitudes 2022-07-14 11:49:53 +10:00
Peter Barker da2b530ce8 AP_Rally: tidy creation of Location from RallyLocation 2022-07-14 11:49:53 +10:00
Andy Piper 591f43e7d0 scripts: add TRAMP to build options 2022-07-14 09:23:59 +10:00
Andrew Tridgell 5f5f70d20a Plane: fixed check for fixed wing approach QRTL start
ensure we are lined up, or we are at less than 0.5 of radius before we
switch to QRTL. This fixes the case where the stopping distance is
greater than the radius, prevening us from switching to QRTL while not
lined up with the landing point
2022-07-13 20:10:19 +10:00
Andrew Tridgell 0a7757a720 AP_RangeFinder: support Benewake H30 radar
30m max radar
2022-07-13 18:47:57 +10:00
Pierre Kancir 3969ae411b Dockerfile: improve docker env to be runnable noninteractively 2022-07-13 18:45:44 +10:00
Pierre Kancir 99ef5f5957 Tools: create an ardupilot entrypoint instead of hacking .bashrc on docker 2022-07-13 18:45:44 +10:00
Peter Barker ffc4910c7e AP_RangeFinder: reduce verbiage when detecting serial rangefinders 2022-07-13 18:39:06 +10:00
Peter Barker 55fb6c2c51 AP_OSD: include GCS_MAVLink for OSD_PARAM_NONE 2022-07-13 18:32:35 +10:00
Peter Barker 8f9ac91fa0 AP_AIS: include GCS_MAVLink.h
was getting mavlink_channel_t transitively
2022-07-13 18:32:35 +10:00
Peter Barker ba2b7b8014 GCS_MAVLink: remove mavlink-specific methods from AP_SerialManager 2022-07-13 18:32:35 +10:00
Peter Barker b958c3db70 AP_SerialManager: remove mavlink-specific methods from AP_SerialManager 2022-07-13 18:32:35 +10:00
Peter Barker 10bc615b57 AP_GPS: add include for GCS_MAVLink.h
The initialisation of the GPS_Fix enumeration is made from the mavlink headers.

We should probably move away from this, converting from our own enumeration to the mavlink enumeration when required (emitting mavlink packets and receiving in AP_GPS_MAV)
2022-07-13 18:32:35 +10:00
Iampete1 712611c50e Plane: Quadplane: add yaw command model 2022-07-13 18:26:36 +10:00
Peter Barker 4de69823e8 AP_HAL_ChibiOS: allow crashdump even if !HAL_GCS_ENABLED
We can dump these to SD card, for example.
2022-07-13 18:23:37 +10:00
Andy Piper 6ab6aa1ef4 AP_VideoTX: Tramp VTX support
Tramp enabled on 2Mb boards with OSD via AP_TRAMP_ENABLED
2022-07-13 18:22:34 +10:00
Andy Piper 58ea8d6b7b AP_Vehicle: wire-in tramp support 2022-07-13 18:22:34 +10:00
Andy Piper c541639e13 AP_SerialManager: add Tramp protocol 2022-07-13 18:22:34 +10:00
Andy Piper 81aa5b9dc6 AP_HAL_ChibiOS: make available/available_locked consistent with read/read_locked 2022-07-13 18:17:07 +10:00
Iampete1 cf14e741ee AP_NavEKF3: only include log struture if enabled 2022-07-13 18:14:12 +10:00
Iampete1 68b7293d9a AP_Proximity: move to config.h pattern and only include log structures if enabled 2022-07-13 18:14:12 +10:00
Iampete1 db9b57c0a3 AP_AIS: move to config.h pattern 2022-07-13 18:14:12 +10:00
Iampete1 8afc07d85b AP_VisualOdom: only include log structure if enabled 2022-07-13 18:14:12 +10:00
Iampete1 71b00e0f75 AP_GPS: use config.h pattern and only include log structures if enabled 2022-07-13 18:14:12 +10:00
Peter Barker 00329ae443 AP_GPS: stop reading arbitrary amounts of data in GPS init
We don't like doing this in other places as the vehicle can go out to
lunch for arbitrary periods of time
2022-07-13 17:56:38 +10:00
Peter Barker b88f414320 AP_GPS: allow UBLOX driver to be compiled out 2022-07-13 17:56:38 +10:00
Peter Barker e858a0fab7 AP_GPS: factor out a _detect_instance method
This means we don't need the goto to handle the case of a detected GPS,
and it also allows for restructure remove the "else" statements, which
will allow compilinmg out the uBlox driver
2022-07-13 17:56:38 +10:00
Andrew Tridgell 0b9c5d6dc1 AP_ESC_Telem: fixed race condition in update_rpm()
if another thread updates at the same time then we could get division
by zero
2022-07-13 17:33:00 +10:00
Andrew Tridgell 1995dbf47c AP_Scripting: added update_rpm() scripting binding 2022-07-13 17:33:00 +10:00
Andrew Tridgell ec31a13275 AP_ESC_Telem: expose update_rpm() for scripting 2022-07-13 17:33:00 +10:00
Tamas Nepusz 19bc7ebebe build_bootloaders.py should invoke bin2hex.py with the same Python interpreter as its own 2022-07-13 17:24:19 +10:00
Randy Mackay 67520c55d5 Tools: move Karuizawa location 2022-07-12 21:29:24 +09:00
TunaLobster 670378dc73 Tools: rstemit.py: Change Range to be clearer meaning 2022-07-12 12:58:39 +10:00
Peter Barker d768bcc904 GCS_MAVLink: eliminate get_mavlink_channel
there's no dependence on any SerialManager stuff when determining this.  The protocol passed through was always mavlink...
2022-07-12 11:32:57 +10:00
Peter Barker 8ab0c03ada AP_SerialManager: eliminate get_mavlink_channel
there's no dependence on any SerialManager stuff when determining this.  The protocol passed through was always mavlink...
2022-07-12 11:32:57 +10:00
Peter Barker 38119e17c7 GCS_MAVLink: correct gcs_out_of_space_to_send methodname
the "_count" is incorrect given the method which this calles on the link object
2022-07-12 11:10:53 +10:00
Peter Barker d1f4e95b26 AP_Rally: clarify that rtl altitude is in cm amsl 2022-07-12 11:06:27 +10:00
Peter Barker a2a63e14b1 AP_Rally: tidy calculation of nearest rally/home 2022-07-12 11:06:27 +10:00
Andrew Tridgell 4d4a1ddd42 waf: setup UBSAN_ENABLED define 2022-07-12 11:00:08 +10:00
Andrew Tridgell 9b0c8674d6 HAL_SITL: catch ubsan errors into a log file 2022-07-12 11:00:08 +10:00
Andrew Tridgell 88f0a324fd AP_Math: added rounding functions
prevent undefined behaviour in float -> integer types
2022-07-12 11:00:08 +10:00
Andrew Tridgell e2a83ba428 AP_NavEKF3: fixed undefined behaviour in logging 2022-07-12 11:00:08 +10:00
Andrew Tridgell a24ed6a7f1 AP_NavEKF2: fixed undefined behaviour in logging 2022-07-12 11:00:08 +10:00
Andrew Tridgell f55aadfedf HAL_SITL: fixed undefined behaviour in GPIO 2022-07-12 11:00:08 +10:00
Andrew Tridgell 2f7a8769c0 autotest: added --ubsan and --ubsan-abort to sim_vehicle.py and autotest.py
allows for undefined behaviour checking in SITL
2022-07-12 11:00:08 +10:00
Andrew Tridgell acf56204f2 waf: added --ubsan and --ubsan-abort options 2022-07-12 11:00:08 +10:00