Commit Graph

62864 Commits

Author SHA1 Message Date
Peter Barker 77cccd08a3 autotest: add test for moving from loiter to guided 2024-04-13 08:34:42 +09:00
Peter Barker 3be1b9efa6 autotest: add set_home function 2024-04-13 08:34:42 +09:00
Clyde McQueen 50015b4196 autotest: reduce SITL baro noise 2024-04-12 14:07:12 -03:00
Tim Tuxworth 495726344c AP_Mount: Do not override default mode when first connecting to RC 2024-04-12 12:18:33 +09:00
Peter Barker 860498d30e Sub: remove redundant home_is_set check
this is already guaranteed to be the case
2024-04-11 20:24:16 -03:00
Peter Barker 43995763db AP_Camera: stop adjusting logged altitudes manually, use location methods 2024-04-11 22:39:09 +10:00
Peter Barker 0f913b5bdf autotest: add test altitudes in camera log messages are correct 2024-04-11 22:39:09 +10:00
Peter Barker d1a1bcba19 RC_Channel: process only transitions after rc is valid for arm_emergency_stop switch and parachute deploy switch 2024-04-11 22:17:08 +10:00
Andy Piper 904f1dffa7 AP_Bootloader: board ids for iFlight boards 2024-04-11 22:16:38 +10:00
Peter Barker c578a18b7f autotest: add test for compass_learn=3 when using gps-for-yaw 2024-04-11 20:49:03 +10:00
Andy Piper 563d31b1ea AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-04-11 18:38:08 +10:00
BloodSakura3774 9c87156266 board_types.txt: Reserving board id for sakurarc h743 2024-04-11 18:36:00 +10:00
Hubert 24cfe60df3 board_types.txt: Reserve ID for MicoAir405Mini 2024-04-11 18:35:51 +10:00
Peter Barker cddc590b8b Copter: move #ifs to outside case statements in do_aux_function
this means a user will get a warning if they try to run a function and it isn't supported
2024-04-11 18:35:27 +10:00
Thomas Frans d52f49ec36 AP_GPS: SBF report correct satellite count on NrSV DNU value
When the NrSV field of the SBF PVTGeodetic message contains the
Do-Not-Use value of 255, set the satellite count to 0 instead of
ignoring the change.
2024-04-11 18:35:16 +10:00
muramura a9d0bf856e AP_Mount: Do not perform unnecessary processing 2024-04-11 18:35:01 +10:00
Hubert 2c267f462d board_type.txt: Reserve an ID for NxtPX4v2 2024-04-11 18:34:51 +10:00
murata f605c0fbe3 RC_Channel: Notify function error if ADS-B is not implemented 2024-04-11 13:12:22 +10:00
Peter Barker b849fbbcca Copter: autoyaw: correct units returned by look_ahead_yaw
there are other methods on the autoyaw object which make it clear that they're working in cd, and others in there that work in degrees.  This method doesn't specify cd yet returns in that unit.

Change the method and state variable to store in degrees (as our naming standards suggest)
2024-04-11 10:24:58 +10:00
Henry Wurzburg 6b5bb4e864 hwdef:add BIDIR to MatekH7A3 2024-04-11 10:17:43 +10:00
Peter Barker 18850fdd1f ArduCopter: add option to flight mode pause/resume via aux function 2024-04-11 10:17:35 +10:00
Peter Barker 468158e0f9 RC_Channel: add option to flight mode pause/resume via aux function 2024-04-11 10:17:35 +10:00
mateksys 74e7132bd3 hwdef: add MatekH7A3 readme.md 2024-04-11 10:17:17 +10:00
Peter Barker f9e95be590 autotest: use defaults file to set speedup
this solves a problem where after a reboot the vehicle runs fast because we honour the --speedup parmeter over the SIM_SPEEDUP parameter.
2024-04-11 10:17:00 +10:00
Peter Barker c59e96cc15 autotest: remove unused unit conversion methods 2024-04-11 10:17:00 +10:00
Randy Mackay 065c7c6d9b Tools: locations.txt gets Kaga athletic stadium 2024-04-11 09:01:50 +09:00
Andrew Tridgell 5e3f26744a Plane: drop min Q_TRANSITION_MS to 500ms
Rolf makes a good argument for why some quadplanes need less than 2s
2024-04-11 07:16:15 +10:00
Peter Barker f83cde7760 GCS_MAVLink: correct spelling of dereferecing 2024-04-10 21:56:52 +10:00
Peter Barker 292ad8678a AP_Arming: force user to ack crashdump or get prearm failure 2024-04-10 21:56:52 +10:00
Andrii Fil a83c29cd67 ArduPlane: optional (CHUTE_OPTIONS:1) disarm defore parachute release 2024-04-10 21:55:51 +10:00
Andrii Fil 6ae12729da ArduCopter: optional (CHUTE_OPTIONS:1) disarm defore parachute release 2024-04-10 21:55:51 +10:00
Andrii Fil ed6ddf725d AP_Parachute: optional (CHUTE_OPTIONS:1) disarm defore parachute release 2024-04-10 21:55:51 +10:00
madhunm 0a1d9b06b5 Added board IDs for Eagle Eye Drones 2024-04-10 21:55:21 +10:00
Hubert 4893f1303c hwdef: correct hwdef for MicoAir405v2
Update hwdef: DMA allocation and LED mapping
Update README: UARTs DMA allocation
Update defaults.parm: GPS low baudrate
2024-04-10 21:55:01 +10:00
Peter Barker cd8f081611 AP_NavEKF: correct setting of _filled
Co-authored-by: luweiagi <luweiagi@163.com>
2024-04-10 21:53:54 +10:00
Peter Barker 99f5e74a8e AP_NavEKF: correct initialisation of ekf_imu_buffer
this init() call can be called on an existing buffer, in which case we clear the object.

Presumably since we've just zeroed all the elements its safe to say that we should mark the object as having never-been-filled
2024-04-10 21:53:54 +10:00
Peter Barker 8452f5f0cd AP_NavEKF: add tests for ekf_imu_buffer 2024-04-10 21:53:54 +10:00
Peter Barker 42c4329d4c RC_Channel: require RC switch position transition for arming
currently if you turn your transmitter on at runtime we may try to arm the vehicle if your arming switches are asserted.

This patch changes things to we don't trust the first position seen from an RC receiver - we must see a transission for the arming options
2024-04-10 21:53:23 +10:00
Peter Barker 1ed388c2e6 Tools: add test for ArmingSwitch after reboot 2024-04-10 21:53:23 +10:00
Peter Barker 021d637edc Copter: make landing-detector-disarm-logic clearer 2024-04-10 21:52:58 +10:00
Peter Barker 800a834740 autotest: add test for PILOT_THR_BHV parameter 2024-04-10 21:52:58 +10:00
richaravoil d63307f881 Tools : add a script to make an OEM setup 2024-04-10 21:52:39 +10:00
Peter Barker f55c35487b AP_VisualOdom: correct unused variable in visualodom
when both logging and gcs are compiled out
2024-04-10 21:52:28 +10:00
Cedric0489 ef044e39e9 Tools: reserve ID for PixPilot-V6PRO 2024-04-10 21:52:18 +10:00
Andrew Tridgell 739d4a7fc8 hwdef: the RM3100 should run at max 1MHz on SPI bus 2024-04-10 21:40:51 +10:00
Alexis Guijarro a50c19f622 mRo Control Zero Classic: Added ADC input for servo rail 2024-04-10 19:01:51 +10:00
Thomas Watson 319d1a794f Blimp: unmark FORMAT_VERSION as read-only
Matches other vehicles and allows GCSes to use documented behavior of a
zero write to FORMAT_VERSION to reset EEPROM contents.
2024-04-10 17:45:37 +10:00
Thomas Watson 58c51f9fe6 Sub: unmark FORMAT_VERSION as read-only
Matches other vehicles and allows GCSes to use documented behavior of a
zero write to FORMAT_VERSION to reset EEPROM contents.
2024-04-10 17:45:37 +10:00
Thomas Watson d5a25d7c89 Copter: unmark FORMAT_VERSION as read-only
Matches other vehicles and allows GCSes to use documented behavior of a
zero write to FORMAT_VERSION to reset EEPROM contents.
2024-04-10 17:45:37 +10:00
Peter Barker 39c87c0b1b Plane: call update_loiter before determining whether to fly home or not
we are calling "reached_loiter_target" as part of our checks as to whether to fly home or not.

We need to call update_loiter so the L1 controller can update its internal state for the new waypoint which do_RTL has set.  Depending on location (but typically), that will mean that L1's reached_loiter_target() will then return false, so we fly home.

This bug was affected by f8d7be5e43 .  Any sort of altitude error greater than 10m would delay us entering the landing sequence, allowing the L1 controller to update its state.
2024-04-10 17:44:25 +10:00