Commit Graph

56687 Commits

Author SHA1 Message Date
Andrew Tridgell
d921c427b1 AP_IOCMU: improved the safety button reset test code
this allows testing of either watchdog or hard-fault reset
2023-02-14 09:12:34 +11:00
Andrew Tridgell
65fadfa2fe AP_IOMCU: fixed an issue with double reset of IOMCU
if the IOMCU resets twice in quick succession then the code that
restores the safety state while flying can fail, leading to the
aircraft trying to continue flying with safety on

This results from two issues:

- a race in handling the last_safety_off variable
- the fact that plane sets the soft_armed state based on safety state
2023-02-14 09:12:34 +11:00
Peter Barker
a471d5a9b7 AP_Logger: add @FieldValueEnum for rangefinder status
will add meaning to Wiki and log analysis tools

--- LogMessages.rst-master	2023-02-11 14:03:51.204650105 +1100
+++ LogMessages.rst	2023-02-11 14:04:32.297022568 +1100
@@ -4764,6 +4764,20 @@
 | Dist     | Reported distance from sensor                 |
 +----------+-----------------------------------------------+
 | Stat     | Sensor state                                  |
+|          | Values:                                       |
+|          |                                               |
+|          | +----------------+---+--+                     |
+|          | | NotConnected   | 0 |  |                     |
+|          | +----------------+---+--+                     |
+|          | | NoData         | 1 |  |                     |
+|          | +----------------+---+--+                     |
+|          | | OutOfRangeLow  | 2 |  |                     |
+|          | +----------------+---+--+                     |
+|          | | OutOfRangeHigh | 3 |  |                     |
+|          | +----------------+---+--+                     |
+|          | | Good           | 4 |  |                     |
+|          | +----------------+---+--+                     |
+|          |                                               |
 +----------+-----------------------------------------------+
 | Orient   | Sensor orientation                            |
 +----------+-----------------------------------------------+
2023-02-13 08:34:58 +11:00
Andy Piper
61064a1efe AP_HAL_ChibiOS: probe external compasses on foxeer reaper f745 2023-02-12 18:02:01 +11:00
Andy Piper
665df46764 bootloaders: update bootloader for MambaH743v4 to include VTX power 2023-02-12 18:00:54 +11:00
Andy Piper
33f359b8e8 AP_HAL_ChibiOS: enable VTX power on MambaH743v4 2023-02-12 18:00:54 +11:00
Andrew Tridgell
4a96221a70 Plane: release notes for 4.3.4-beta1 2023-02-12 17:37:07 +11:00
Andrew Tridgell
6bf633d5d9 AP_Scripting: added parameters for EFI_SkyPower 2023-02-12 07:02:15 +11:00
Andrew Tridgell
46370a7b2c AP_Scripting: added param docs for ship landing 2023-02-12 07:02:15 +11:00
Andrew Tridgell
2d127c27c3 Tools: throw an error on duplication parameters in libraries 2023-02-12 07:02:15 +11:00
bugobliterator
090ef6f2e4 AP_HAL_ChibiOS: add HAL_WITH_MCU_MONITORING define for H757 2023-02-11 16:07:07 +11:00
Andrew Tridgell
01d72aef17 Tools: cope with not being in top directory
autotest runs from ../buildlogs
2023-02-11 12:56:05 +11:00
Andrew Tridgell
62b7d0276e Tools: don't put lua parameters in rst output 2023-02-11 12:56:05 +11:00
Andrew Tridgell
04c6fc6ea3 AP_Scripting: added param docs for VTOL-quicktune.lua 2023-02-11 12:56:05 +11:00
Andrew Tridgell
51a6c69f9b Tools: support parameter docs from lua applets and drivers 2023-02-11 12:56:05 +11:00
Shiv Tyagi
5400aefd82 Tools: add test for duplicate labels in build_options.py 2023-02-11 12:31:02 +11:00
Shiv Tyagi
8892930adb Tools: fix duplicate label NMEA in build_options.py 2023-02-11 12:31:02 +11:00
Iampete1
a75dc0a49d AP_Scripting: Docs: correct update_rpm and set_rpm_scale markup 2023-02-11 11:14:25 +11:00
Peter Barker
67500cce36 AP_HAL: SITL: add defaults for Rover frame class and string 2023-02-11 10:36:33 +11:00
Peter Barker
2af6a05fa2 AP_NavEKF3: include writeWheelOdom symbol even if no body-odom
like the method above it, we need this symbol or we won't compile
2023-02-11 10:36:33 +11:00
Peter Barker
a9a40242af Tools: extract_features.py: grab stderr in run_process method 2023-02-11 10:02:20 +11:00
Peter Barker
0278773ea6 .github: set -ex in test_size.yml workflow 2023-02-11 10:02:20 +11:00
Peter Barker
2d38c8a896 Tools: fix show_output bug in run_program methods
just because we're not showing output doesn't mean we shouldn't raise exceptions on failure!
2023-02-10 21:52:47 +11:00
murata
a6feb97668 Copter: Match type to set value 2023-02-10 15:38:10 +09:00
Peter Barker
ba51b56865 .github: correct extract features for AP_Periph 2023-02-10 16:24:41 +11:00
Peter Barker
76e913dc90 Tools: add validation to extract_features, fix same 2023-02-10 16:24:41 +11:00
Subashchandar
3d3158a5d5 AP_Bootloader: add board id for PixFlamingo L4R5 v1 2023-02-10 12:35:18 +11:00
Patrick José Pereira
875a57adeb Tools: scripts: Use Enum values over int
Properties need to be Enum type to use with defined enums

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2023-02-09 17:39:21 -03:00
Bob Long
7889afc452 AP_Baro: fix bug in alt error arming check
get_altitude_difference already subtracts MSL altitude
2023-02-10 06:46:08 +11:00
Peter Barker
b4fc6b2215 AP_HAL_ChibiOS: do not detect extra bmm150 instances on SkyViper-v2450 2023-02-09 17:52:52 +11:00
Peter Barker
9035de80ca AP_Compass: do not detect extra bmm150 instances on SkyViper-v2450 2023-02-09 17:52:52 +11:00
Peter Barker
a7a2779a0f AP_HAL_ChibiOS: add and use AP_COMPASS_BMM150_ENABLED 2023-02-09 17:52:52 +11:00
Peter Barker
feb809fbb7 AP_Compass: add and use AP_COMPASS_BMM150_ENABLED 2023-02-09 17:52:52 +11:00
Peter Barker
0b127e0437 AP_HAL_ChibiOS: exclude more code based on HAL_WITH_IO_MCU 2023-02-09 17:52:10 +11:00
Peter Barker
c0b0ae44d5 Copter: don't use uninitialised stack data when determining ekf_over_threshold 2023-02-09 09:28:46 +09:00
Andrew Tridgell
080d7615fc AP_BattMonitor: support EFI "battery" backend
this maps Ah to Litres and Amps to Litres/hour
2023-02-09 07:12:39 +11:00
Andrew Tridgell
99f997161a Plane: holdoff auto takeoff till rudder neutral
when arming with rudder we need to hold off the takeoff until the user
has released the rudder stick or we can yaw badly during the takeoff
2023-02-09 07:02:32 +11:00
Andrew Tridgell
7d12095deb AP_Arming: added last_arm_method() 2023-02-09 07:02:32 +11:00
Andrew Tridgell
b06df0da49 AP_Scripting: added quadplane payload place script 2023-02-09 07:02:12 +11:00
Andrew Tridgell
64810f5713 AP_Scripting: added docs for new bindings 2023-02-09 07:02:12 +11:00
Andrew Tridgell
2e5c5074af AP_Scripting: added bindings for quadplane package place 2023-02-09 07:02:12 +11:00
Andrew Tridgell
2989e2deba Plane: added support for NAV_PACKAGE_PLACE mission item
this works in conjunction with a lua script to allow for a wide
variety of package place options
2023-02-09 07:02:12 +11:00
Andrew Tridgell
510d979b79 AP_Vehicle: added set_land_descent_rate scripting method 2023-02-09 07:02:12 +11:00
Peter Barker
b3de3364e2 Tools: add advanced failsafe to build options 2023-02-08 19:00:13 +11:00
Peter Barker
7b8c69d505 Tools: size_compare_branches.py: add --extra-hwdef-branch option
also adds for --master

This allows you to test the same builds without changing branches but with different hwdef scripts, by specifying the same branch with --master
2023-02-08 19:00:13 +11:00
Peter Barker
1aa5e07564 Blimp: remove vestige of advanced failsafe 2023-02-08 19:00:13 +11:00
Peter Barker
77039f38f6 ArduSub: add and use AP_ADVANCEDFAILSAFE_ENABLED 2023-02-08 19:00:13 +11:00
Peter Barker
648a13d3f7 ArduPlane: add and use AP_ADVANCEDFAILSAFE_ENABLED 2023-02-08 19:00:13 +11:00
Peter Barker
8259f3f870 GCS_MAVLink: add and use AP_ADVANCEDFAILSAFE_ENABLED 2023-02-08 19:00:13 +11:00
Peter Barker
c12486829a hwdef: SkyViper doesn't need AP_AdvancedFailsafe 2023-02-08 19:00:13 +11:00