Commit Graph

53827 Commits

Author SHA1 Message Date
Peter Barker 51466e04b0 AP_HAL: move from HAL_NO_SHARED_DMA to AP_HAL_SHARED_DMA_ENABLED
This allows hwdef files to manipulate this value
2022-07-19 18:02:26 +10:00
Andrew Tridgell 796653630c hwdef: support CUAV-6X and Holybro-6X with same firmware 2022-07-19 15:02:31 +10:00
Andrew Tridgell 97646f4164 AP_InertialSensor: support BOARD_MATCH() for IMUs 2022-07-19 15:02:31 +10:00
Andrew Tridgell 0e745d0ad3 hwdef: added BOARD_MATCH() support for IMUs
allow hwdef.dat to specify list of IMUs which match a specific board
type
2022-07-19 15:02:31 +10:00
Andrew Tridgell b50d405f91 AP_BoardConfig: added board detection for FMUv6
support Holybro-6X and CUAV-6X for now, using IMU signatures
2022-07-19 15:02:31 +10:00
李孟晓 d4bfcf80bd Tools: added ICP201XX build option 2022-07-19 15:02:31 +10:00
李孟晓 2822c30307 AP_Baro: added ICP201XX support 2022-07-19 15:02:31 +10:00
Peter Barker d926aa2e11 AP_OSD: correct includes for AP_Arming change
This file was getting the copter-or-heli define from AP_Arming, which was getting it from AP_InertialSensor.  This broke when AP_Arming stopped getting AP_InertialSensor, so add the include.

Also takes the opportunity to stop including GCS.h
2022-07-19 12:27:26 +10:00
Peter Barker f77d1812b8 AP_Arming: record only aggregate sensor consistency check times
All used sensors must be consistent with the primary sensor for 10 seconds, so we don't need to record times individually
2022-07-19 12:27:26 +10:00
Nikolay March fa71a8ccf2 AP_HAL_ChibiOS: add BDShot for Holybro PH4-mini
Tested, working like its big Holybro Pixhawk4! (copied bdshot files)
And there no telem2 port(usart3), undef to relolve DMA.
I thought the copter stopped twitching like before, more stable!
2022-07-19 11:15:56 +10:00
Iampete1 3f410be344 Plane: log ATT on none quadplanes 2022-07-19 11:15:04 +10:00
Peter Barker d2caebf39c autotest: increase time allowed for getting statustexts
frsky is run i9n a thread  - and signficiant speedsup seem to adversely affect it
2022-07-19 11:00:27 +10:00
Peter Barker 84adb059ed autotest: correct frsky text comparison bug
reusing the variable "text" here crewed up subsequent receiving of messages as it could reset the text from empty to the most recently received text.
2022-07-19 11:00:27 +10:00
Peter Barker 271b4d7d3c autotest: disable mavutil autoreconnect in drain_mav
The process may not be available
2022-07-19 11:00:27 +10:00
Peter Barker acd9fb9c0a autotest: pause/unpause SITL while draining mav
If Python can't keep up with the message volume coming from the autopilot we never manage to drain all messages from the vehicle.

So try pausing/unpausing the simulation so we can drain the link...

AT-1968.6: AP: PreArm: Radio failsafe on
AT-1969.9: AP: PreArm: Radio failsafe on
AT-1971.2: AP: PreArm: Radio failsafe on
AT-1972.4: AP: PreArm: Radio failsafe on
AT-1973.7: AP: PreArm: Radio failsafe on
AT-1974.9: AP: PreArm: Radio failsafe on
AT-1975.3: Drained 2000283 messages from mav (7218.974791/s)
AT-1975.3: Exception caught: Traceback (most recent call last):
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 699
8, in run_one_test_attempt
    self.context_pop()
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 499
3, in context_pop
    self.set_parameters(dead_parameters_dict, add_to_context=False)
2022-07-19 11:00:27 +10:00
Peter Barker e38adc7d14 autotest: pause/unpause SITL while draining mav
If Python can't keep up with the message volume coming from the autopilot we never manage to drain all messages from the vehicle.

So try pausing/unpausing the simulation so we can drain the link...

AT-1968.6: AP: PreArm: Radio failsafe on
AT-1969.9: AP: PreArm: Radio failsafe on
AT-1971.2: AP: PreArm: Radio failsafe on
AT-1972.4: AP: PreArm: Radio failsafe on
AT-1973.7: AP: PreArm: Radio failsafe on
AT-1974.9: AP: PreArm: Radio failsafe on
AT-1975.3: Drained 2000283 messages from mav (7218.974791/s)
AT-1975.3: Exception caught: Traceback (most recent call last):
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 699
8, in run_one_test_attempt
    self.context_pop()
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 499
3, in context_pop
    self.set_parameters(dead_parameters_dict, add_to_context=False)
2022-07-19 11:00:27 +10:00
Henry Wurzburg 2eb3f75a57 Tools: fix bootloaders to turn on switched supply during bootloader 2022-07-19 10:34:47 +10:00
Henry Wurzburg 2f90806f0a AP_HAL_ChibiOS: fix bootloaders to turn on switched supply during bootloader 2022-07-19 10:34:47 +10:00
Peter Barker e4ce4ebed3 AP_InertialSensor: remove un-needed methods 2022-07-19 10:30:36 +10:00
Peter Barker 01751fba60 AP_GPS: move defaulting of AP_GPS_UBLOX_ENABLED to AP_GPS_config
Addition of this define crossed with another PR which created the config.h file
2022-07-19 10:14:18 +10:00
Iampete1 dd2221338b Plane: fence: do not re-trigger if mode change for expected reason 2022-07-19 09:44:36 +10:00
Iampete1 90f2bf3ba2 Plane: remove duplicate last mode reason 2022-07-19 09:44:36 +10:00
Peter Barker 0677965524 autotest: adjust PAUSE_CONTINUE_GUIDED to use globalframe for navigation
Co-author: Leonard Hall <leonardthall@gmail.com>

This test was failing when the yaw control on the simulated vehicle was cleaned up.  Navigating in body frame meant that the vehicle was told to go to a different position than we were actually expecting.
2022-07-19 09:24:45 +10:00
Leonard Hall f8e74d1da3 SITL: Make Yaw control scale with aircraft size 2022-07-19 09:24:45 +10:00
Peter Barker 28ed2e3cd5 autotest: add support for building alternate binaries
e.g. adding features ordinarily compiled out
2022-07-19 09:09:05 +10:00
Peter Barker c0243772b4 waf: add --define command-line option
Allows CPP defines to be specified on command-line

Eases enable/disable of optional features
2022-07-19 09:09:05 +10:00
Peter Barker 6c17fd7bac waf: build Richenpower on SITL by default 2022-07-19 09:09:05 +10:00
Peter Barker 9acf4c88c8 AP_Generator: add AP_GENERATOR_RICHENPOWER_ENABLED 2022-07-19 09:09:05 +10:00
Andrew Tridgell 0d508750bc Tools: fixed the filter test tool for instance IMU data
and use indexed log search
2022-07-19 06:28:18 +10:00
Henry Wurzburg 406d03559f Tools:Add build option for Ublox 2022-07-18 16:50:31 +01:00
Henry Wurzburg ac6ae829e4 RC_Channel: Add docs for Mount_Lock option in parameter 2022-07-18 15:38:55 +01:00
Henry Wurzburg fe51cf2ae7 RC_Channel: Add FFT tune doc to param 2022-07-18 15:38:55 +01:00
Andrew Tridgell 28d2967883 Plane: allow for throttle control in MANUAL when disarmed
pass base throttle down to ICE subsystem to allow for throttle when
disarmed in MANUAL
2022-07-18 20:55:56 +10:00
Andrew Tridgell 798ab5d859 AP_ICEngine: added option for throttle control while disarmed
this uses the passed in base throttle when disarmed
2022-07-18 20:55:56 +10:00
Randy Mackay d38ac2b520 Copter: 4.2.2-attempt2 release notes 2022-07-18 13:56:01 +09:00
murata f3c23d1629 Copter: Append WHITE SPACE to the else statement 2022-07-18 09:06:14 +09:00
Peter Barker d593727205 AP_RAMTRON: reduce scope for WITH_SEMAPHORE 2022-07-17 21:42:33 +10:00
Peter Barker 2c64922a14 AP_BoardConfig: use HAL_GCS_ENABLED in place of periph/example check
... periphs can have GCS too...
2022-07-17 09:33:11 +10:00
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