Commit Graph

64078 Commits

Author SHA1 Message Date
Peter Barker 0cf357eb51 autotest: increase timeout for GCSMission upload test
MAVProxy may not have gotten all of the waypoints uploaded in 5 seconds.
2024-07-09 16:48:29 +10:00
Peter Barker 481e0301dd hwdef: H757_EVAL: make it not-AP_Periph
avoids this compilation error:

../../Tools/AP_Periph/can.cpp:152:33: error: static assertion failed: DroneCAN bootloader cannot support external flash
  152 | static_assert(EXT_FLASH_SIZE_MB == 0, "DroneCAN bootloader cannot support external flash");
compilation terminated due to -Wfatal-errors.
2024-07-09 12:00:52 +10:00
Randy Mackay 5a8ed5fb51 AP_NavEKF: option to align extnav to optflow pos estimate 2024-07-09 11:59:36 +10:00
Thomas Watson 1249388f23 AP_Common: use template parameter in bitmask functions
Substantially improves code optimization and reduces memory usage.
2024-07-09 11:51:41 +10:00
Thomas Watson 6a4520e8fd AP_Common: clean up bitmask operators
Code already won't compile if there are different numbers of bits as the
template parameter will be different.
2024-07-09 11:51:41 +10:00
Thomas Watson b030b8e789 AP_Common: correctly bound bitmask datatypes
Probably won't work correctly (and of questionable use) if less than 1.
The `first_set()` function might not be able to return a valid value if
greater than INT16_MAX.

unsigned int needs to be >= uint32_t so that the shift ops are in range.
2024-07-09 11:51:41 +10:00
Thomas Watson 0b320fe303 AP_Common: unify bitmask out of bounds checking
Ensures out-of-bounds reads and writes are never performed for setting,
clearing, and checking. Fixes test failure when the number of bits
evenly divides the word size.
2024-07-09 11:51:41 +10:00
Thomas Watson 9a89223531 AP_Common: fix bitmask setall()
Fixes an issue where the last word was not set to all 1s if the number
of bits evenly divided the word size.

Also fixes UB if there were 31 valid bits.
2024-07-09 11:51:41 +10:00
Thomas Watson 122cd72d9c AP_Common: improve bitmask test coverage 2024-07-09 11:51:41 +10:00
Thomas Watson 4a2f03f851 AP_Common: test more bitmask bit widths
Actually test different widths and reveal problems with edge cases.
2024-07-09 11:51:41 +10:00
Thomas Watson 521cf00964 AP_Common: templatify bitmask tests
Enables testing of different widths and edge cases.
2024-07-09 11:51:41 +10:00
Peter Barker aff3af67e6 AP_Logger: remove short-filename compatability code
We used to produce files hwih looked like log1.BIN.  We moved to 00000001.BIN instead so things collate.

This code allowed the autopilot to return data from SD cards which had old logs on them.
2024-07-09 11:34:40 +10:00
Iampete1 f3743b869d AC_PID: correct error caculation to use latest target 2024-07-09 11:33:03 +10:00
Andrew Tridgell b19186980a AP_Mount: added sending of position data to Siyi gimbal
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
this will allow for exif tags of position for photos
2024-07-09 11:28:57 +10:00
Peter Barker 99fb5a994e AC_WPNav: correct calculation of predict-accel when zeroing pilot desired accel 2024-07-09 10:52:14 +10:00
Peter Barker 11e49c5528 autotest: add test for entering loiter after auto in RC failsafe 2024-07-09 10:52:14 +10:00
Peter Barker c8a20726ff AP_NavEKF3: do not store prediction-enabled as state
this is only used in one place, and that place is called from the same routine setting the persistent state.  The only other place which calls readIMUData shouldn't be running the prediction step, but mmay, depending on the previous setting of the prediction step.

We are not initialising this state on filter reset, so it's possible that the state will be set when we do an InitialiseFilterBootstrap, which is probably not desired
2024-07-09 10:45:03 +10:00
Peter Barker a110c9c39f autotest: add tests for onboard file log validity 2024-07-09 10:40:08 +10:00
Peter Barker 3208491983 AP_Logger: remove twin paths for writing FMT messages
This stops us tracking formats-written in two places.

The Write() method will now emit formats as required and set the relevant bit in the backend-owned bitmask of formats sent.
2024-07-09 10:40:08 +10:00
Willian Galvani 64e859ecc5 AP_Compass: warn user if fix_radius() is skipped 2024-07-09 10:13:34 +10:00
Willian Galvani 325d6f6c94 AP_Compass: use ahrs for location instead of GPS directly for calibration 2024-07-09 10:13:34 +10:00
Peter Barker df0b4cdf6d AP_HAL_ChibiOS: chibios_hwdef.py: correct flake8 issues 2024-07-09 10:13:00 +10:00
Oleksiy Protas 6d27f69c96 GCS_MAVLink: correct a debugging message
Probably changed from a pointer to reference at some point and forgot to update a normally disabled block
2024-07-09 10:10:52 +10:00
Andy Piper 58b87f8b42 AP_Bootloader: iFlight 2RAWH743 2024-07-09 09:43:38 +10:00
Andy Piper aa47c8895f bootloaders: iFlight 2RAWH743 2024-07-09 09:43:38 +10:00
Andy Piper 1b5febe046 AP_HAL_ChibiOS: iFlight 2RAWH743 2024-07-09 09:43:38 +10:00
Randy Mackay b6c5ad450d AP_Common: char_to_hex returns 0 on invalid char 2024-07-09 09:08:51 +10:00
Randy Mackay dd927e1542 Tools: add build option for Topotek mount 2024-07-09 09:08:51 +10:00
laozhou 611fb94660 AP_Mount: integrate topotek gimbal driver
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-09 09:08:51 +10:00
laozhou d5d1b9885c AP_Mount: add topotek backend
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-09 09:08:51 +10:00
HiRCBro 8e28e6ab26 Tools: longBowF405WING 2024-07-09 09:05:27 +10:00
HiRCBro 8c58334173 AP_HAL_ChibiOS: longBowF405WING 2024-07-09 09:05:27 +10:00
Peter Barker 933aed5f91 AP_Scripting: add missing scheduler include
corrects compilation of cubeorange-periph-heavy
2024-07-09 07:40:03 +10:00
Peter Barker 91b2d0dcdf autotest: fix race condition in DataFlashOverMAVLink test
we're running at large speedups; 5 simulated seconds might not be enough time for MAVProxy to accumulate statistics.  So get MAVProxy to emit the rate each second instead
2024-07-08 23:20:41 +10:00
Peter Barker 3ca15b23b9 autotest: param_metadata: add jerk as a known unit 2024-07-08 23:04:12 +10:00
cuav-chen2 f906fffff7 hwdef: fixed pin definition for C-RTK2-HP 2024-07-08 22:10:27 +10:00
Peter Barker 96a78456bf autotest: reboot after reverting rangefinder settings
Co-authored-by: Thomas Watson <twatson52@icloud.com>

Thomas noted that tests prior to RngFndQuality were leaving a LUA rangefinder hanging around in https://github.com/ArduPilot/ardupilot/pull/27484

Thomas' patch fixes RngFndQuality to only collect context messages after a reboot, which will fix the problem.

But tests should *not* leave the vehicle in this state, so this patch fixes that.
2024-07-08 14:36:10 +10:00
Peter Barker c986d93894 Copter: remove unused #if around rangefinder
the contents of this entire file are removed when AP_RANGEFINDER_ENABLED is false
2024-07-08 10:38:17 +10:00
Ryoichi d352153a52 Tools: add name to GIT_Success.txt 2024-07-08 08:42:50 +09:00
Andrew Tridgell 8be0a64155 waf: don't mark esp32 as CYGWIN_BUILD 2024-07-07 07:11:59 +10:00
Andrew Tridgell 039367e340 Tools: wrap _malloc_r on cygwin
fixes dual allocation heap bug
See https://cygwin.com/pipermail/cygwin/2000-July/038916.html
2024-07-07 07:11:59 +10:00
Andrew Tridgell db19bce1d2 AP_Common: wrap _malloc_r on cygwin
fixes dual allocation heap bug
See https://cygwin.com/pipermail/cygwin/2000-July/038916.html
2024-07-07 07:11:59 +10:00
kelek-juta 9c8175994e Tools: add name to GIT_Success.txt 2024-07-06 14:21:03 +09:00
kaw803 7b1e23b07a Tools: add name to GIT_Success.txt 2024-07-06 14:19:21 +09:00
k-kabuto c43abc4a7b Tools: add name to GIT_Success.txt 2024-07-06 14:17:32 +09:00
hdxgito 2e361c0506 Tools: add name to GitSuccess 2024-07-06 14:15:55 +09:00
sichimur 842b01af9c Tools: add name to GIT_Success.txt 2024-07-06 14:13:40 +09:00
YasuhiroSetoguchi 73574c462b Tools: add name toGIT_Success.txt 2024-07-06 14:07:52 +09:00
stohiro b457ba0a8d Tools: Update GIT_Success.txt 2024-07-06 14:05:35 +09:00
UeVillage 80e7cb8cb7 Tools: Add name in GIT_Success.txt 2024-07-06 14:03:19 +09:00