mfe-xiao
169b7df614
HAL_ChibiOS: hwdef: add README.md for PixSurveyA1
2022-08-03 09:05:04 +10:00
Andrew Tridgell
a0902e39fe
AP_RangeFinder: default orientation to NONE for AP_Periph
...
this removes a setup step for AP_Periph rangefinders
2022-08-03 09:04:25 +10:00
Andrew Tridgell
2ee111cf7b
hwdef: added ADC pin comments for 6X
2022-08-03 09:01:31 +10:00
Andrew Tridgell
f5026f2462
hwdef: setup default power pins for Holybro Pixhawk6C
2022-08-03 09:01:31 +10:00
Andrew Tridgell
4585c9fdc1
AP_EFI: prevent flood of Lutan serial port
...
send request at max 5Hz
2022-08-03 08:27:12 +10:00
Andrew Tridgell
273fe51a71
hwdef: switched to pixracer LED scheme for Pixhawk6X
2022-08-02 17:26:46 +10:00
Andrew Tridgell
f47585b235
hwdef: disable I2C DMA on Pixhawk6C and enable compass compensation
2022-08-02 17:26:46 +10:00
Andy Piper
155d436807
AP_InertialSensor: support for fast sampling rates on ICM-42xxx series
...
thoughtfully set anti-aliasing filters on ICM-42xxx series
2022-08-02 17:26:46 +10:00
Andrew Tridgell
696cd1a19b
hwdef: added compass compensation for 3 boards
...
use the new compass heater compensation for 4 compasses across 3
boards
2022-08-02 17:26:46 +10:00
Andrew Tridgell
b6bcd6346d
AP_Compass: switch to a general method of heater compensation
...
this allows any board to easily setup heater compensation for an
internal compass. The offsets are in body frame (previously in sensor
frame) and are sensor specific using bus device IDs
2022-08-02 17:26:46 +10:00
Andrew Tridgell
3ee42f3d20
hwdef: added missing ADC channel on Pixhawk6X
2022-08-02 17:26:46 +10:00
Andrew Tridgell
949ef22ed6
hwdef: disable I2C DMA on Pixhawk6X
...
this prevents an issue with the BMI088 and external compass on GPS1
2022-08-02 17:26:46 +10:00
Andrew Tridgell
01e6809942
hwdef: fixed rotation of bmi088 on Holybro6X
2022-08-02 17:26:46 +10:00
Andrew Tridgell
2582d5fad5
AP_InertialSensor: re-enable notch filter on 42688
...
thanks to Andy for pointing out this is for an internal resonance
2022-08-02 17:26:46 +10:00
Andrew Tridgell
8a6b8fc486
AP_InertialSensor: enable 180Hz LPF on ICM42670
2022-08-02 17:26:46 +10:00
Andrew Tridgell
5b579aebce
AP_InertialSensor: enable AAF at 488Hz for gyro+accel on ICM42688
...
this should improve vibration handling
2022-08-02 17:26:46 +10:00
Andrew Tridgell
5bde9b0e7c
AP_InertialSensor: added support for ICM42670 IMU
2022-08-02 17:26:46 +10:00
Andrew Tridgell
df9ac156c4
hwdef: fixed orientation of Pixhawk6X ICM42670
2022-08-02 17:26:46 +10:00
Andrew Tridgell
9911fd76f4
AP_BoardConfig: allow for BMI088 for Holybro 6X
...
and tighten check on CUAV-X6 and Holybro-6X to check all 3 IMUs
2022-08-02 17:26:46 +10:00
Andrew Tridgell
6845f2e24d
hwdef: use right name for ICM42670 SPI device
2022-08-02 17:26:46 +10:00
Iampete1
223b005d29
SITL: SIM_Buzzer: hide params if not WITH_SITL_TONEALARM
2022-08-02 10:49:11 +10:00
Iampete1
e511f72294
AP_LandingGear: SITL: only set defualts is SITL pin is set avoiding enable via param conversion
2022-08-02 10:48:19 +10:00
Henry Wurzburg
530d59017a
AP_Logger: add increment on file rate limiting to allow <1Hz
2022-08-02 10:22:48 +10:00
Henry Wurzburg
b7f49db1f7
AP_NavEKF3: Add streaming log verbosity level parameter
2022-08-02 10:21:39 +10:00
Henry Wurzburg
022987e4d3
RC_Channel: add AUX switch to pause logging of streamed entries
2022-08-02 10:15:08 +10:00
Henry Wurzburg
a395b3d2a8
AP_Logger: add AUX switch to pause logging of streamed entries
2022-08-02 10:15:08 +10:00
Andrew Tridgell
0ededd7c62
AP_AHRS: use wind from simulation if available with EKF type 10
2022-08-02 07:49:34 +10:00
Andrew Tridgell
8cc5172ff3
SITL: fill in wind from flightaxis
2022-08-02 07:49:34 +10:00
Peter Barker
aeb24d4978
AP_AHRS: remove method casting active EKF type for logging
...
logging is now done internally
2022-07-29 11:05:19 +10:00
Iampete1
7683b36e3b
SITL: set compass vector after loading defualts
2022-07-28 16:51:33 +10:00
Iampete1
fcab0c70a2
AP_Param: allow init of all Vector3f values to single float
2022-07-28 16:51:33 +10:00
Iampete1
98d9f07507
AP_InertialSensor: defualt accel scale vector to 1.0
2022-07-28 16:51:33 +10:00
Iampete1
cdf930effe
AP_Compass: defualt diagonals vector to 1.0
2022-07-28 16:51:33 +10:00
Peter Barker
e89f4ea599
AP_Arming: add prearm check that we are using configured AHRS type
2022-07-28 15:53:13 +10:00
Peter Barker
4909866dd9
AP_AHRS: add prearm check that we are using configured AHRS type
2022-07-28 15:53:13 +10:00
Iampete1
2fc9cf97d4
AC_Fence: defualt to AP_FENCE_ENABLED 2, 1 disables dummy methods
2022-07-27 19:04:56 +10:00
Iampete1
bab866268f
RC_Channel: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
31bc6d9ec4
GCS_MAVLink: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
a9310c3d18
AP_Vehicle: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
ed330fd026
AP_Proximity: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
94004db13f
AP_OSD: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
380d174e32
AP_Landing: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
ad59c62899
AP_Frsky_Telem: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
19ccf53fa6
AP_Filesystem: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
58d244d7a3
AP_Arming: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
4b6a0f0b4f
AC_Fence: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
5f31818658
AC_Avoidance: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
9dc318f0cc
AC_Fence: move to config file and rename from AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
1342fa4851
AP_Proximity: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
ed356d94cd
AC_Avoid: fix complilation with no fence
2022-07-27 19:04:56 +10:00
Iampete1
fa440d532a
AC_Fence: add dummy methods
2022-07-27 19:04:56 +10:00
Iampete1
6a6f3ec4e5
AC_Fence: add AC_FENCE define
2022-07-27 19:04:56 +10:00
Iampete1
9e86f4dc43
AP_Vehicle: add AC_Fence
2022-07-27 19:04:56 +10:00
Iampete1
5d5552aa93
RC_Channel: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
5fa29eb01a
GCS_MAVLink: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
520fc01739
AP_OSD: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
3942ee0811
AP_Landing: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
df3affc38c
AP_Frsky_Telem: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
cababad66b
AP_Filesystem: fix complation without fence
2022-07-27 19:04:56 +10:00
Iampete1
b3d0d4f33d
AP_Arming: fix complation without fence
2022-07-27 19:04:56 +10:00
bugobliterator
4852ac332d
AP_UAVCAN: add option bit for disabling Node Unhealthy check
2022-07-27 18:18:03 +10:00
bugobliterator
3c87062f27
AP_Common: add support for comparing BitMasks
2022-07-27 18:18:03 +10:00
bugobliterator
8e81ee0292
AP_HAL_SITL: add support for starting node in maintenance mode
2022-07-27 18:18:03 +10:00
bugobliterator
48f1e18161
AP_UAVCAN: add node healthy check
2022-07-27 18:18:03 +10:00
bugobliterator
34583d750d
AP_UAVCAN: include AP_CANManager header
2022-07-27 18:18:03 +10:00
bugobliterator
527f956786
AP_Arming: add support for separate dna_server instances for AP_UAVCAN
2022-07-27 18:18:03 +10:00
bugobliterator
7ff0af7a0d
AP_UAVCAN: add support for dna_server instance per driver
2022-07-27 18:18:03 +10:00
Peter Barker
cf915a0f35
GCS_MAVLink: ensure payload space for ACK before sending
...
Attempting to fix instance of the ACK not arriving on SITL reboot. We already have a lot of code around trying to get this out, but there's been at least once instance it hasn't.
2022-07-26 21:23:23 +10:00
Peter Barker
b4bee6a510
AP_GPS: correct compilation when all serial backends compiled out
2022-07-26 10:30:43 +10:00
Peter Barker
96b4945eb9
AP_GPS: move explanation of ublox rates into ublox header
2022-07-26 10:30:43 +10:00
Henry Wurzburg
dcde718f20
AP_Control: change I determination for Roll axis
2022-07-26 09:40:02 +10:00
Tom Pittenger
28ab8ef316
AP_Landing: change LAND_ABORT_THR param docs to match code and wiki of 90%
2022-07-25 12:45:50 -07:00
xianglunkai
b728b8179d
AP_SerialManager:correct find_baudrate() function
2022-07-25 16:03:27 +10:00
Ryan Beall
033266f94b
TECS.cpp: Remove redundant throttle saturation
2022-07-23 18:23:27 -07:00
Andy Piper
3b034e3af6
AP_HAL_ChibiOS: enabled OSD parameter menus on KakuteH7.
2022-07-22 21:23:34 +10:00
Tamas Nepusz
6ca593a61d
AP_GPS: Do not drop reassembly buffer for injected packets when a dupllicate fragment is received
2022-07-22 20:40:21 +10:00
Tom Pittenger
0ef78dd77a
AP_HAL_CHibiOS: add new hwdef target for SkystarsH7HD
2022-07-21 21:53:15 -07:00
Peter Barker
cbd591f2ba
GCS_MAVLink: save some bytes by removing empty methods based on #ifs
2022-07-22 13:49:51 +10:00
Bailey K. Srimoungchanh
b6a089f90e
AP_AHRS: Fixed body_to_earth
...
body_to_earth was not implemented consistently with earth_to_body.
Changed the order of operation to be consistent and rotate reference
frame correctly.
2022-07-22 09:11:17 +10:00
Peter Barker
7e5808a97b
AP_RangeFinder: add prearm for analogue/pwm pin conflicts
2022-07-22 09:09:25 +10:00
Peter Barker
8af84cf236
AP_ICEngine: add and use AP_ICENGINE_ENABLE
2022-07-22 08:48:16 +10:00
Henry Wurzburg
4c44b6ad1a
AP_Compass: expand description of custom orientation parameters
2022-07-21 15:45:28 +01:00
Henry Wurzburg
51a21679be
AP_AHRS: expand description of custom orientation parameters
2022-07-21 15:45:28 +01:00
Rolf-G
ea44da1e8d
AP_Scripting: examples: Aerobatics: Corrects arg1/arg2
...
Corrects bad description of arg1 and arg2 for rolling circle in plane_aerobatics.lua
See https://github.com/ArduPilot/ardupilot/issues/21022
2022-07-20 13:18:10 +01:00
Iampete1
66a5a289d7
PID: use set and defualt
2022-07-20 17:59:59 +10:00
Iampete1
ca9aa41dd1
AP_SerialManager: use set_and_defualt
2022-07-20 17:59:59 +10:00
Iampete1
ad8b9f58df
AP_Motors: use set and defualt
2022-07-20 17:59:59 +10:00
Iampete1
7ee330d12d
SRV_Channel: use set_and_default method
2022-07-20 17:59:59 +10:00
Iampete1
c87d46e24d
AC_AttitudeControl: CommandModel: use set_and_default method
2022-07-20 17:59:59 +10:00
Iampete1
3f84ba12c0
AC_PID: use set_and_defualt to set defualt values
2022-07-20 17:59:59 +10:00
Iampete1
88d9550214
AP_Filesystem: support including defualts in packed param format
2022-07-20 17:59:59 +10:00
Iampete1
63e03622d4
AP_Logger: log default param values
2022-07-20 17:59:59 +10:00
Iampete1
5b290920a7
AP_Param: keep track of defualt values in linked list
2022-07-20 17:59:59 +10:00
Peter Barker
34f2599479
GCS_MAVLink: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
39ab6b727c
AP_BLHeli: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
44cc3de7a6
SITL: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
695891365e
AP_Vehicle: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
c00d712adc
AP_Motors: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
e570737154
AP_GyroFFT: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Peter Barker
659f801650
AP_Logger: remove unused includes
2022-07-20 17:32:24 +10:00
Pierre Kancir
52d9dc1471
AP_Soaring: make function const
2022-07-20 17:28:39 +10:00
Pierre Kancir
8b8ca504fc
AP_Soaring: make PolarParams const reference
2022-07-20 17:28:39 +10:00
Pierre Kancir
f76d6ea739
AP_Soaring: fix initialization order to fix
...
https://github.com/ArduPilot/ardupilot/issues/21043
2022-07-20 17:28:39 +10:00
Andrew Tridgell
0731b5cfa0
AP_ICEngine: fixed RPM filter rate and plane.G_Dt
...
AP_ICEngine runs at 10Hz, so we need to use 10 for the filter.
As this runs in a constructor it also caused memoisation of the wrong
AP_Scheduler _loop_period_s which resulted in plane.G_Dt always being
1/50, which is a much more serious issue
this is a temporary fix, we need a better one soon
2022-07-20 07:33:37 +10:00
esaldiran
545cf0504a
APM_Control: AP_YawController: update pid_info with integrator reset for logging purposes
2022-07-19 11:40:03 +01:00
esaldiran
9d8bf5004e
AC_PID: update pid_info with integrator reset for logging purposes
2022-07-19 11:40:03 +01:00
Peter Barker
13b03f79db
AP_HAL_ChibiOS: 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
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
李孟晓
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
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
Leonard Hall
f8e74d1da3
SITL: Make Yaw control scale with aircraft size
2022-07-19 09:24:45 +10:00
Peter Barker
9acf4c88c8
AP_Generator: add AP_GENERATOR_RICHENPOWER_ENABLED
2022-07-19 09:09:05 +10: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
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
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
5286ad45ad
AP_Common: AP_FWVersion doesn't need mavlink headers
2022-07-16 17:15:52 +10:00
Peter Barker
da2b530ce8
AP_Rally: tidy creation of Location from RallyLocation
2022-07-14 11:49:53 +10:00
Andrew Tridgell
0a7757a720
AP_RangeFinder: support Benewake H30 radar
...
30m max radar
2022-07-13 18:47:57 +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
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
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
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
511b0f69f2
AP_Mission: skip aux function in determining if a takeoff
...
and reset landing sequenece flag on a takeoff command
2022-07-12 10:34:26 +10:00
Iampete1
ecc3ae2d05
AP_Logger: Log Structure: remove comma on included AIS structure
2022-07-12 09:39:54 +10:00
Iampete1
8f7cad39cd
AP_AIS: only include log structures if enabled
2022-07-12 09:39:54 +10:00
Iampete1
60408fd16e
hwdef: skyviper: update AP_AIS_ENABLED to AP_AIS_ENABLED
2022-07-12 09:39:54 +10:00
Iampete1
faa414fbdb
AP_AIS: add dummy methods
2022-07-12 09:39:54 +10:00
Iampete1
e8607c09f1
GCS_MAVLink: send ais message
2022-07-12 09:39:54 +10:00
Iampete1
30fffb491c
AP_Vehicle: add AIS
2022-07-12 09:39:54 +10:00
Iampete1
b94e1c5027
AP_AIS: add singleton
2022-07-12 09:39:54 +10:00
Andrew Tridgell
a92161cd18
GCS_MAVLink: improved start battery cell monitoring
...
this fixes two issues:
1) we are not reporting the sag corrected voltage to GCS when we are
sending individual cells
2) we don't cope with having more than AP_BATT_MONITOR_CELLS_MAX
cells (or 12 for low flash boards, 14 for 2M boards)
it fixes this by distributing the extra voltage over the calls.
This change is particularly important for high cell count DroneCAN
smart batteries, where we currently would not handle more than 14
cells and the GCS would display the wrong voltage
the PR also cleans up the use of volts vs mVolts for the local
variables
2022-07-11 14:21:41 +10:00
Shiv Tyagi
489a27ca19
SITL: fix sim_precland orientation bug
2022-07-11 10:10:55 +10:00
RuffaloLavoisier
0e0c23a8e3
AP_Logger : correct spelling on comment
2022-07-11 08:51:27 +09:00
chobitsfan
a723abf986
AP_Motors: reuse spool_step for code refactoring
2022-07-11 08:39:34 +09:00
Andrew Tridgell
0103776d83
Filter: fixed test_notchfilter for the change in allocate_filters()
...
changed for triple notch
2022-07-10 06:57:29 +10:00
Andrew Tridgell
32e1767647
AP_ICEngine: added option to force low throttle on engine off
...
this fixes an issue with EFI engines that use low throttle demand to
stop the engine, instead of using an ignition channel. This option
needs to be set on these aircraft to prevent the idle governor or the
fwd throttle integrator in quadplanes from keeping the engine on when
the pilot asks for it to be off.
2022-07-10 06:56:58 +10:00
Yuri
565f757f35
AP_Scripting: rover-MinFixType example param caching fix
2022-07-07 19:34:10 +09:00
Yuri
6a74be104f
AP_Scripting: add set_desired_speed binding
2022-07-07 19:34:10 +09:00
Yuri
bc8bdc18c9
AP_Vehicle: add set_desired_speed for use in scripting
2022-07-07 19:34:10 +09:00
Andrew Tridgell
39fd4f01cd
AP_Scripting: fixed SimOnHardware build
...
HAL_MOUNT_ENABLED depends on !HAL_MINIMIZE_FEATURES
2022-07-07 12:33:01 +10:00
Iampete1
56c6233be9
AC_AttitudeControl: remove PosControl_Sub
2022-07-05 16:00:03 -03:00
xiao
084bae21ef
HAL_ChibiOS: hwdef: MFE-PixSurveyA1 rename PixSurveyA1
2022-07-05 17:44:03 +10:00
xiao
39abb13692
HAL_ChibiOS: hwdef: add new hardware MFE-PixSurveyA1
2022-07-05 17:44:03 +10:00
Andrew Tridgell
af5eb44629
hwdef: added telem3 on Pixhawk6X
2022-07-05 10:34:36 +10:00
Iampete1
ea4f050aa8
AP_Scripting: Generator: fix docs generator aliasing
2022-07-05 10:31:51 +10:00
Peter Barker
a647cd9b8f
hwdef: remove redundant 'define HAL_MINIMIZE_FEATURES 0'
2022-07-05 10:20:38 +10:00
Peter Barker
80e70b2fb4
AP_InertialSensor: remove voiding of parameter
...
Clearly this is used - we pass it down
2022-07-05 09:54:53 +10:00
Andrew Tridgell
c29b390e7b
AP_InertialSensor: implemented harmonics in SITL vibration
2022-07-03 18:47:33 +10:00
Andrew Tridgell
6b55073508
SITL: added SIM_VIB_MOT_HMNC parameter
2022-07-03 18:47:33 +10:00
Andy Piper
193375a7e5
AP_InertialSensor: implement triple notches
2022-07-03 18:21:41 +10:00
Andy Piper
dfba938e63
Filter: add triple harmonic notches
2022-07-03 18:21:41 +10:00
Andy Piper
9d851a0c1a
AP_InertialSensor: allow concurrent logging of both pre- and post-filter IMU data for FFT
...
remove batch logging bitfields
2022-07-03 18:19:55 +10:00
Andrew Tridgell
2318c0e505
AP_Arming: added Scripting2 CAN protocol to switch
2022-07-03 08:21:55 +10:00
Andrew Tridgell
d8b98789e6
AP_Scripting: add support for scripting2 protocol
2022-07-03 08:21:55 +10:00
Andrew Tridgell
1b25babd8a
AP_CANManager: added scripting2 protocol
...
allows for lua scripts to distinguish two CAN interfaces
2022-07-03 08:21:55 +10:00
Randy Mackay
a7aa77ff86
AP_Scripting: add lua docs for mount methods
2022-07-02 09:21:53 +09:00
Randy Mackay
b8560345f7
AP_Scripting: add mount-test example script
2022-07-02 09:21:53 +09:00
Randy Mackay
47e10eaefa
AP_Scripting: add bindings to control mount
2022-07-02 09:21:53 +09:00
murata
531e92db8f
AP_TECS: Unify coding style for if statements
2022-07-01 11:54:46 -07:00
Peter Barker
db59117b83
SITL: add tests for ICE Planes
2022-07-01 19:33:51 +10:00
Peter Barker
61e65ca5f2
AP_ICEngine: add tests for ICE Planes
2022-07-01 19:33:51 +10:00
François Carouge
84b0f6478c
SITL/SIM_RF_MAVLink: fix incomplete initializer clauses
2022-07-01 18:24:43 +09:00
Yuri
f155c1b027
AP_Scripting: add rover-MinFixType and rover-SaveTurns examples
2022-07-01 18:23:31 +09:00
Andrew Tridgell
eefc41fe30
Filter: added a way to plot attenuation and phase lag for complex filters
2022-06-30 20:58:37 +10:00
Andrew Tridgell
50740124fe
AP_Vehicle: implement INS_HNTCH_FM_RAT
...
this allows for a throttle based harmonic notch min frequency ratio,
allowing for the notch to go below the configured frequency at low
throttle
This is important for quadplanes, but will also benefit multirotors
flying at lower throttle due to lower payload or when descending
This also disables the throttle based harmonic notch when motors are
in SHUT_DOWN state
2022-06-30 20:58:37 +10:00
Andrew Tridgell
366aa7154c
Filter: added FM_RAT for throttle notch frequency ratio
...
allow for configurable min frequency ratio for throttle based notches
2022-06-30 20:58:37 +10:00
Andrew Tridgell
9ac3472b47
AP_InertialSensor: add set_inactive() on notch filters
2022-06-30 20:58:37 +10:00
Peter Barker
c085b713ac
AP_Common: correct comments on get_alt_cm and change_alt_frame
2022-06-30 20:08:24 +10:00
Ryan Beall
77f922a1ae
AP_TECS.cpp: remove line copy error
...
This was a copy paste error that is duplicated in the correct spot (in line 530)
2022-06-30 20:06:33 +10:00
Randy Mackay
f03ac3648d
AP_Mount: fixup handle do-gimbal-manager-pitchyaw flags
2022-06-29 10:56:48 +09:00
Randy Mackay
3b0869d098
AP_Mount: SToRM32_serial restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
f14f524ff5
AP_Mount: SToRM32 restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
18fe1d44b7
AP_Mount: Solo restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
d59e87ea59
AP_Mount: Servo restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
80b70dcd66
AP_Mount: Gremsy fixup for support of ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
d17e1b6fab
AP_Mount: Alexmos restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
0d60e47c68
AP_Mount: backend restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
f0f95fb812
AP_Mount: frontend adds support for both ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
c22d8b379f
AP_Mission: do_gimbal_manager_pitchyaw supports bf/ef angles and rates
...
also minor bug fix so verify DO_GIMBAL_MANAGER_PITCHYAW returns true
2022-06-29 10:56:48 +09:00
Randy Mackay
33a4efa936
AP_Mount: move mode, yaw_lock, roi_target and sysid target to backend
2022-06-29 10:56:48 +09:00
Randy Mackay
ec07c15e1e
AP_Mount: set_roi_target and set_target_sysid lose struct and const before args
2022-06-29 10:56:48 +09:00
Randy Mackay
898bdb864c
AP_Mount: fix handle_command_do_mount_configure instance handling
2022-06-29 10:56:48 +09:00
Randy Mackay
e58d72931e
AP_Mount: Solo in sysid target sets lockedToBody
...
Also re-order calls in home-location mode to be consistent with other modes
2022-06-29 10:56:48 +09:00
Randy Mackay
e8ab4eb8b7
AP_Mount: SToRM32_serial provides calc_angle_to_xxx relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
5958bced0c
AP_Mount: SToRM32 provides calc_angle_to_xxx relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
57a508b037
AP_Mount: Solo provides calc_angle_to_xxx relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
3c501bb408
AP_Mount: alexmos provides calc_angle_to_xxx relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
b0a473ee53
AP_Mount: alexmos minor spell fix
2022-06-29 10:56:48 +09:00
Randy Mackay
f426711177
AP_Mount: backend calc_angle_to_xxx requires relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
3711c362ce
AP_Mount: update_rate_and_angle_from_rc fix arg name to match units
2022-06-29 10:56:48 +09:00
Randy Mackay
23209ddafd
AP_Mount: gremsy neutral mode leaves ef targets untouched
2022-06-29 10:56:48 +09:00
Peter Barker
5f095304cf
GCS_MAVLink: add AP_LTM_TELEM_ENABLED
2022-06-28 20:19:41 +10:00
Peter Barker
75862b3e27
AP_LTM_Telem: add AP_LTM_TELEM_ENABLED
2022-06-28 20:19:41 +10:00
李孟晓
8a83e02e59
HAL_ChibiOS: hwdef: add support for ICP101XX to CUAV_GPS
2022-06-28 11:59:04 +10:00
李孟晓
522f1fa6de
AP_Baro: add support for ICP101XX
2022-06-28 11:59:04 +10:00
Peter Barker
336a6b0359
AP_BoardConfig: remove reference to CONFIG_ARCH_BOARD_*
...
These are vestiges from when we ran both on ChibiOS and NuttX
2022-06-28 11:21:30 +10:00
François Carouge
e52e64b11c
AP_Math: class template parameters not compliant in constructor declaration
2022-06-28 11:05:53 +10:00
François Carouge
772c80a038
AP_Common: class template parameters not compliant in constructor declaration
2022-06-28 11:05:53 +10:00
Peter Barker
2228f1407d
hwdef: remove unused NO_DATAFLASH hwdef directive
2022-06-28 11:03:53 +10:00
Andy Piper
feaad96963
AP_HAL_ChibiOS: hwdef for Foxeer Reaper F745v2.
...
README for Reaper F745v2
2022-06-28 11:03:26 +10:00
Peter Barker
c2091fdef5
AP_GPS: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
16ea4f03b6
AP_Compass: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
b11cd3b69d
AP_Baro: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
1185da02a6
AP_Airspeed: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Bill Geyer
2377d7a2c3
AC_AttitudeControl: move input_shaping_rate into input_shaping_ang_vel
2022-06-28 07:56:12 +09:00
Bill Geyer
be65358cc1
AC_AttitudeControl: incorporate suggested changes
2022-06-28 07:56:12 +09:00
Bill Geyer
355524206b
AC_AttitudeControl: modify constructor to allow defaults
2022-06-28 07:56:12 +09:00
Bill Geyer
fd24b3912f
AC_AttitudeControl: add comments
2022-06-28 07:56:12 +09:00
Bill Geyer
1cd537895e
AC_AttitudeControl: add command model class for parameters
2022-06-28 07:56:12 +09:00
Bill Geyer
a547916ebf
AC_AttitudeControl: only use rate shaping tc if tc is nonzero
2022-06-28 07:56:12 +09:00
bnsgeyer
7594f7a558
AC_AttitudeControl: incorporate sqrt controller in rate shaping
2022-06-28 07:56:12 +09:00
Andrew Tridgell
864353aa4d
AP_Scripting: example script for lidar control
...
enable lidar for only landing in quadplanes by changing RNGFND_LANDING
2022-06-26 08:46:44 +10:00
Andrew Tridgell
a941e4cd41
AP_NavEKF: re-implemented EKF ring buffer
...
this fixes a bug where elemnts being pushed into the buffer more
slowly than we recall can be lost
for example, if you push a single element in then try a recall it will
fail
2022-06-24 20:25:39 +10:00
Andrew Tridgell
19da623077
AP_NavEKF: added test suite for EKF ring buffer
2022-06-24 20:25:39 +10:00
Andrew Tridgell
ba10c0ae42
AP_BattMonitor: make healthy() check all configured monitors
...
GCS reporting for SYS_STATUS should check all healthy, not just first
backend
2022-06-24 11:13:16 +10:00
Andrew Tridgell
93ee9a4ac1
AP_BattMonitor: allow INA2xx battery monitors to be powered after boot
...
the device doesn't show up till main battery is connected, so we need
this change to allow for separate avionics battery and main battery
with avionics battery powered on first
2022-06-24 11:13:16 +10:00
Andrew Tridgell
9a6fb19208
AP_BattMonitor: report arming unhealthy if backend unhealthy
...
important for i2c based battery backends
2022-06-24 11:13:16 +10:00
Peter Barker
1f4ebb49b5
AP_Mount: document point-at-home default mode option
2022-06-23 16:37:54 +10:00
Andrew Tridgell
5f8ea596a5
hwdef: changed Pixhawk6C board type to 56
...
production bootloader uses 56
2022-06-23 13:43:38 +10:00
Peter Barker
2d3092407f
AP_HAL_Empty: move implementations of functions to header
...
Makes it much clearer what's implemented and what's dangling
2022-06-23 12:38:41 +10:00
Andrew Tridgell
881d9764d4
hwdef: added Pixhawk6C support
2022-06-23 12:37:24 +10:00
Andrew Tridgell
4d031a0c9e
AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C
2022-06-23 12:37:24 +10:00
Andrew Tridgell
e48f405c08
AP_Compass: removed "AK09916 Wrong id" message
...
we don't need this on every board that doesn't have an I2C AK09916
2022-06-23 12:37:24 +10:00
Andrew Tridgell
b1e3b9414b
hwdef: fixed Pixhawk6X ALT_RAM_MAP check
2022-06-23 12:37:24 +10:00
Peter Barker
f4df4298a0
AP_RangeFinder: make LeddarOne calculations more efficient
2022-06-22 21:15:18 +10:00
Peter Barker
90362a4849
AP_RangeFinder: tighten scope of stack variable definition
2022-06-22 21:15:18 +10:00
Peter Barker
6923f20ce6
AP_RangeFinder: stop persisting detections in LeddarOne driver
...
We don't use these readings except immediately after where we store them - so don't store them persistently.
2022-06-22 21:15:18 +10:00
Andy Piper
1287fc4fff
AC_AttitudeControl: reset throttle mix to used mix when scaling mix down
2022-06-22 16:17:26 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
f7d21b63a7
AP_FETTecOneWire: Fix the recent change of NUM_SERVO_CHANNELS > 24
2022-06-22 11:51:23 +10:00
Randy Mackay
45cd158b1c
AP_Mount: gremsy searches for gimbal while disarmed
2022-06-21 13:37:11 +09:00
Randy Mackay
a47ac7430b
AP_Arming: add mount pre-arm check
2022-06-21 13:37:11 +09:00
Randy Mackay
8ba8c67452
AP_Mount: gremsy implements healthy
2022-06-21 13:37:11 +09:00
Randy Mackay
822ee75e20
AP_Mount: add healthy and pre_arm_checks
...
Co-authored-by: olliw42 <waldmanns@gmx.de>
2022-06-21 13:37:11 +09:00
Randy Mackay
10da8a42bd
AP_Mount: replace JSTICK_SPD with RC_RATE
2022-06-21 13:37:11 +09:00
Isaac A
94064175af
AP_HAL_ChibiOS: Allow KakuteF7 initialization without baro
2022-06-21 10:03:08 +10:00
Iampete1
dc0491a8ff
AP_AHRS_view: add rotate method to move from AHRS to AHRS view referance frames
2022-06-21 10:01:30 +10:00
TunaLobster
0027660f3f
AP_RCMapper: Increase parameter metadata range to match NUM_RC_CHANNELS
2022-06-21 09:57:44 +10:00
Peter Barker
deba0b712b
AP_RangeFinder: correct creation/use of TFMINI_ADDR_DEFAULT
...
Named incorrectly and defined in wrong file...
2022-06-21 09:15:20 +10:00
Peter Barker
05131853d8
AP_UAVCAN: allow rangefinder backends to be individually compiled in
2022-06-21 09:15:20 +10:00
Peter Barker
3a347d32ca
AP_RangeFinder: allow rangefinder backends to be individually compiled in
2022-06-21 09:15:20 +10:00
Peter Barker
ce1bb906b7
AP_HAL_ChibiOS: allow rangefinder backends to be individually compiled in
2022-06-21 09:15:20 +10:00
Peter Barker
4e438464d7
AP_Baro: tidy probing of external i2c baros
2022-06-21 09:09:55 +10:00
Bill Geyer
4bb3b08a4a
AC_AutoTune: fix tradheli bug with load gain set
2022-06-20 13:00:53 +09:00
TunaLobster
afaca4b5f6
AP_RCMapper: Remove APM 2.x reference in parameter description
2022-06-18 08:26:40 +09:00
Andrew Tridgell
2e1af59057
AP_Rangefinder: fixed scaling on PWM driver and enable SCALING parameter
...
this fixes a bug introduced here:
https://github.com/ArduPilot/ardupilot/pull/18829
and allows the scaling of PWM rangefinders to be adjusted
2022-06-17 08:21:44 +10:00
Andrew Tridgell
7e4fb803a2
AC_AttitudeControl: reduced default quadplane VTOL pos XY gains
2022-06-16 21:26:49 +10:00
Shiv Tyagi
c339b1d374
SIM_Precland: add option to set orientation of precland device in sitl
2022-06-16 12:43:55 +10:00
Randy Mackay
1400eba400
AP_Mount: minor include and definition re-order and fixup
2022-06-15 18:08:58 +10:00
Randy Mackay
d24d3c0af8
AP_Mount: add HAL_MOUNT_STORMSERIAL_ENABLED build option
2022-06-15 18:08:58 +10:00
Randy Mackay
59916d0327
AP_Mount: add HAL_MOUNT_STORM32MAVLINK_ENABLED build option
2022-06-15 18:08:58 +10:00
Randy Mackay
4f0ee1276b
AP_Mount: add HAL_MOUNT_SERVO_ENABLED build option
2022-06-15 18:08:58 +10:00
Randy Mackay
e2106e63bf
AP_Mount: add HAL_MOUNT_ALEXMOS_ENABLED build option
2022-06-15 18:08:58 +10:00
Randy Mackay
8f51e28242
AP_RobotisServo: disable with minmimize features and 1mb flash
2022-06-15 18:05:44 +10:00
Randy Mackay
91d33c885e
AP_Volz: disable with minmimize features
2022-06-15 18:05:44 +10:00
Andrew Tridgell
06a9a1521c
AP_GPS: added GPS_DRV_OPTIONS bit for ellipsoid height
2022-06-15 17:30:28 +10:00
Andrew Tridgell
509f03f946
AP_GPS: cleanup driver option access
...
use option_set() to make code clearer
2022-06-15 17:30:28 +10:00
Andrew Tridgell
8f3405d308
hwdef: added Pixhawk6X support
...
a new H753 based board similar to the Pixhawk5X
2022-06-15 17:28:40 +10:00
Andrew Tridgell
9efcad3adf
HAL_ChibiOS: added support for ALT_RAM_MAP on H7
...
for compatibility with the px4 H7 bootloader
2022-06-15 17:28:40 +10:00
Andrew Tridgell
308717d5eb
HAL_ChibiOS: enable ITCM and DTCM on H7 at startup
...
these may have been disabled by the px4 H7 bootloader
2022-06-15 17:28:40 +10:00
Andy Piper
25785e12d9
AP_RCTelemetry: don't spam mode changes on CRSF startup
...
rewrite device ping bootstrap to avoid ping flood
enable device pings on CRSF in the event of TX loss.
only send pings if not negotiating the version
2022-06-15 17:20:36 +10:00
Andy Piper
9b8ea8475d
AP_RCProtocol: reset UART on RX failure for CRSF
...
update CRSF timestamps to use microseconds
implement RX liveness protocol and implement for CRSF
2022-06-15 17:20:36 +10:00
Andy Piper
ed6f7fb9e9
AP_HAL_ChibiOS: add support for MambaF405 2022 MK4
...
mark DMA on MambaF405US-I2C UARTs
correct RSSI pin on MambaF405US-I2C
2022-06-15 17:05:41 +10:00
Randy Mackay
34f327404a
AP_Mount: Gremsy only enabled on >1MB boards
2022-06-15 09:07:14 +09:00
Randy Mackay
1fca72a831
GCS_MAVLink: add comment re sending locations to mounts
2022-06-15 09:07:14 +09:00
Randy Mackay
e595da41e6
AP_Mount: gremsy uses gimb-dev-att-send to retract gimbal
...
this replaces the MAV_CMD_USER_1 method
2022-06-15 09:07:14 +09:00
Randy Mackay
14c81099db
AP_Mount: add Gremsy driver
...
Co-authored-by: bugobliterator <siddharthbharatpurohit@gmail.com>
this drivers special features include
sends ATTITUDE and AUTOPILOT_STATE_FOR_GIMBAL
support of RC rate targets
captures and re-forwards gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay
6723a0fc55
AP_Mount: handle gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay
247697ccc4
AP_Mount: add support for DO_GIMBAL_MANAGER_PITCHYAW mavlink command
2022-06-15 09:07:14 +09:00
Randy Mackay
8092697c1a
AP_Mount: backend record RC rate targets
2022-06-15 09:07:14 +09:00
Randy Mackay
f157e5a073
AP_Mount: add set_yaw_lock
2022-06-15 09:07:14 +09:00
Randy Mackay
589102b7d7
AP_Mission: add DO_GIMBAL_MANAGER_PITCHYAW support
2022-06-15 09:07:14 +09:00
Randy Mackay
640a4b1a5f
RC_Channel: add mount lock aux function
2022-06-15 09:07:14 +09:00
Randy Mackay
f83b4cdb40
GCS_MAVLink: support sending AUTOPILOT_STATE_FOR_GIMBAL_DEVICE
2022-06-15 09:07:14 +09:00
bugobliterator
4dd66fed4b
GCS_MAVLink: forward gimbal-device-information to AP_Mount
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
also forward gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay
c19d5391d9
AP_Vehicle: add get_rate_bf_targets method
2022-06-15 09:07:14 +09:00
Randy Mackay
0975da6068
AP_Mount: remove virtual distructor from backend
2022-06-15 09:07:14 +09:00
Randy Mackay
b6d7601a55
AP_Mount: SToRM32 minor comment fix
...
also move definitions to cpp file
2022-06-15 09:07:14 +09:00
Tom Pittenger
c28db6d91c
AP_HAL_ChibiOS: Durandal hwdef to enable Sagetech MXS driver by default for CI to test against
2022-06-14 07:10:17 -07:00
Tom Pittenger
7b681d55a8
AP_ADSB: fix sagetech MXS SDK linking error
2022-06-14 07:10:17 -07:00
Chuck Faber
c0b2b679a1
AP_ADSB: Added Sagtetech MXS Driver and it's SDK
2022-06-14 07:10:17 -07:00
Tom Pittenger
0645aee865
AP_ADSB: Driver cleanup and refactor
2022-06-14 07:10:17 -07:00
Tom Pittenger
07be987073
AP_HAL_ChibiOS: enable SagetechMXS driver by default only for CUAV-X7 and CubeOrange
2022-06-14 07:10:17 -07:00
mateksys
71b9e80c04
hwdef: added more PWM options in MatekL431-Dshot
2022-06-14 18:59:52 +10:00
Andy Piper
4068337971
AP_HAL_ChibiOS: correct UART RX stats
2022-06-14 10:25:17 +10:00
Andrew Tridgell
064b6c8a9d
AP_ESC_Telem: use send_struct mavlink function
...
saves some flash, cpu and stack, but means we need a cast
2022-06-14 10:11:03 +10:00
Andy Piper
619fa021e7
AP_GyroFFT: make sure the parameters are updated at least once on startup
2022-06-14 10:09:18 +10:00
Andy Piper
24e47ea08d
AP_Arming: make sure FFT gets initialized when arming checks are off
2022-06-14 10:09:18 +10:00
James Harton
b963be7ee8
AP_HAL_ChibiOS: Add on-board baro support to iFlight BeastH7 V2 target.
...
iFlight's own website says that there is no barometer on this device,
however on my one there is a DPS310 connected on I2C. This PR adds
support for the on-board baro but leaves it as optional.
2022-06-14 09:46:46 +10:00
Peter Barker
5a1d4f3bf5
AP_AHRS: update rotation based on board_orient parameter
2022-06-12 17:32:11 +10:00
Andrew Tridgell
7928fa6e69
Filter: added a NotchFilter test suite
2022-06-12 15:39:44 +10:00
Andrew Tridgell
7c782dda88
Filter: fixed ordering of samples in notch reset
2022-06-12 15:39:44 +10:00
Andrew Tridgell
d653499efc
AP_InertialSensor: count filters to match notch options
...
this allows for much more complex filter setups as long as not
filtering on all IMUs
2022-06-12 15:39:44 +10:00
Andrew Tridgell
d07761cfd9
Filter: fixed reset of notch filters
...
when we reset a notch we need to init the stored values to the current
value, rather than assuming that zero is the right value
this matters when switching IMUs in flight when we are only running
notch filters on the active gyro
2022-06-12 15:39:44 +10:00
Andrew Tridgell
a37f268dc6
Ap_Inertialsensor: by default only run harmonic notch on the active gyro
...
this should save quite a lot of CPU. Only the active gyro impacts
vehicle flight
2022-06-12 15:39:44 +10:00
Andrew Tridgell
9e3a29bf86
Filter: added EnableOnAllIMUs option to harmonic notch filter
2022-06-12 15:39:44 +10:00
Peter Barker
39b7f63140
AP_Beacon: stop passing serialmanager into beacon constructor
2022-06-11 16:02:37 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d3eae308da
Filter: NFC spell corrections in comments
2022-06-11 08:43:03 +09:00
Andrew Tridgell
c01e21dcb3
AP_FETtecOneWire: cleanup mask handling
...
use unsigned masks
2022-06-10 13:46:43 +10:00
Andrew Tridgell
3a1fc0f338
AP_ESC_Telem: disable ESC telem with zero channels
...
this prevents a build error and saves flash
2022-06-10 13:46:43 +10:00
Andrew Tridgell
cd8ff2b37a
AP_ESC_Telem: added ESC_TLM_MAV_OFS parameter
...
this allows for the ESC telemetry to be remapped to a lower range for
GCS displays. Users often want their quadplane ESCs to show up as ESCs
1 to 8 instead of the high numbers used internally
2022-06-10 13:46:43 +10:00
Andrew Tridgell
42624bdbeb
AP_Vehicle: added parameter table for ESC telemetry
2022-06-10 13:46:43 +10:00
Andrew Tridgell
aedf465049
AP_ESC_Telem: support ESC telem for ESCs 13 to 32
...
also fix a mavlink buffer starvation issue
2022-06-10 13:46:43 +10:00
Randy Mackay
a358357951
AP_Scripting: remove ToshibaCAN support
2022-06-10 12:08:05 +09:00
Randy Mackay
2a264b0331
SRV_Channel: remove ToshibaCAN support
2022-06-10 12:08:05 +09:00
Randy Mackay
85b9e6e57c
GCS_MAVLink: remove ToshibaCAN support
2022-06-10 12:08:05 +09:00
Randy Mackay
533a16287e
AP_CANManager: remove ToshibaCAN support
2022-06-10 12:08:05 +09:00
Randy Mackay
d503246be2
AP_Arming: remove ToshibaCAN support
2022-06-10 12:08:05 +09:00
Randy Mackay
02faacf448
AP_ToshibaCAN: remove support
2022-06-10 12:08:05 +09:00
Andrew Tridgell
d85fe81537
AP_EFI: fixed bug in Lutan driver
...
we need to send an initial request pkt if no data from Lutan
2022-06-09 21:10:37 +10:00
Andrew Tridgell
9ddd1afb34
AP_EFI: added DroneCAN EFI driver
2022-06-09 21:10:37 +10:00
Andrew Tridgell
465dbd89f4
AP_UAVCAN: support DroneCAN EFI
2022-06-09 21:10:37 +10:00
Andrew Tridgell
085413865a
hwdef: added MatekL431-EFI
2022-06-09 21:10:37 +10:00
Andrew Tridgell
0fad35112f
AP_EFI: allow EFI to be used in AP_Periph
2022-06-09 21:10:37 +10:00
Andrew Tridgell
998072f600
AP_Scripting: setup axis filters when starting an axis
2022-06-09 13:15:13 +10:00
Andrew Tridgell
4bc697dfa2
AP_Scripting: added QUIK_AUTO_SAVE option
...
allows tuning with 2 position switch
2022-06-09 13:15:13 +10:00
Andy Piper
fafa4158dd
AP_HAL_ChibiOS: hwdef for MambaH743v4
...
support BMI270 on MambaH743v4 and increase flash SPI clock
add bi-directional dshot to MambaH743
add README and pinout for MambaH743
2022-06-08 21:44:21 +10:00
Andy Piper
11f5d1974a
AP_InertialSensor: don't print error when probing non-existant BMI270
...
fix device locking at startup on BMI270
2022-06-08 21:44:21 +10:00
Andy Piper
f666ed8ec7
AP_Logger: support W25N01GV flash chips
...
add separate driver for W25N01GV triggered via HAL_LOGGING_DATAFLASH_DRIVER
move flash_test() into AP_Logger_Block.
cleanup use of 4k sector commands to account for chips that only have block commands
2022-06-08 21:44:21 +10:00
Andy Piper
6cacdd1b34
AP_InertialSensor: properly reset MPU6000 signal path at startup
...
failure to reset the signal path as per the register spec leads to
very poor temperature response early on in startup.
2022-06-08 17:44:17 +10:00
Andy Piper
fe29324828
AP_RCProtocol: check for bad frames in CRSF decoding.
2022-06-08 17:35:03 +10:00
Iampete1
702245f89e
AP_Math: calc_lowpass_alpha_dt: remove unused constrain
2022-06-08 17:11:08 +10:00
Andrew Tridgell
eed14b3688
AP_Airspeed: fixed autotest for copter param parse
...
This command was failing:
Tools/autotest/param_metadata/param_parse.py --vehicle Copter
I don't understand why it starts to fail now, but this is the fix
2022-06-08 09:23:04 +10:00
Pierre Kancir
83dd5be637
AP_NavEKF: fix line ending
2022-06-08 08:16:42 +09:00
Pierre Kancir
0c9060753e
AP_MSP: fix line ending
2022-06-08 08:16:42 +09:00
Pierre Kancir
22dae61c80
AP_ADSB: fix line ending
2022-06-08 08:16:42 +09:00
Pierre Kancir
b43dd7ba27
SITL: fix python files exec permissions
2022-06-08 08:16:42 +09:00
Pierre Kancir
21890000f7
AP_NavEKF3: fix python files exec permissions
2022-06-08 08:16:42 +09:00
Pierre Kancir
58ceecc4bf
AP_HAL: fix python files exec permissions
2022-06-08 08:16:42 +09:00
Pierre Kancir
b835395cf9
SITL: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Pierre Kancir
231c15a3f9
AP_ONVIF: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Pierre Kancir
b909a110cd
AP_HAL_ChibiOS: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Peter Barker
ea7f71a1a7
AP_EFI: emit ignition voltage as unknown in EFI_STATUS
2022-06-08 08:15:15 +09:00
Henry Wurzburg
0853acd7e2
AP_Scripting: update QUIKTUNE readme file
2022-06-08 08:55:02 +10:00
Henry Wurzburg
d55fd76443
AP_Scripting: modify QUIKTUNE for audio monitorin in TX
2022-06-08 08:55:02 +10:00
murata
c65425e3ac
AP_Scripting: Changed NULL to nullptr
2022-06-07 11:59:23 +09:00
murata
0b357faf7e
AP_Motors: Resolve Issue 20894
2022-06-07 10:02:11 +10:00
Michał
6f7abab036
AP_WheelEncoder: fix WheelEncoder_Quadrature timestamp.
...
Convert timestamp to ms from us.
2022-06-07 09:59:27 +10:00
Peter Barker
38bbb2361e
AP_HAL: set AP_STATS_ENABLED default value
2022-06-07 09:57:32 +10:00
Pradeep
183352cdfe
AP_Periph: choose node stats - build files
...
Added - AP_Stat library and AP_STATS_ENABLED build options
2022-06-07 09:57:32 +10:00
Pradeep
03f7df39dd
hwdefs: choose node stats - CarbonixF405 and CarbonixL496
...
Added definition to enable node statistics
AP_Periph: choose node stats - CarbonixF405 and CarbonixL496
Added definition to enable node statistics
2022-06-07 09:57:32 +10:00
Randy Mackay
5651d8761d
AP_Mount: remove unimplemented send_gimbal_report
2022-06-07 09:27:47 +10:00
Randy Mackay
3ac5ad8e33
GCS_MAVLink: remove unused send_gimbal_report
2022-06-07 09:27:47 +10:00
Randy Mackay
8c19af72e0
GCS_MAVLink: learn routes even on private channels
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2022-06-06 15:50:13 +10:00
Andrew Tridgell
19063a46a0
AP_InertialSensor: fixed build with logging disabled
...
fixes CubeOrange-periph build
2022-06-06 14:50:40 +10:00
Andrew Tridgell
180c516b53
AP_BoardConfig: fixed build with logging disabled
...
fixes CubeOrange-periph build
2022-06-06 14:50:40 +10:00
Andrew Tridgell
6832eab8a5
AP_GPS: fixed build without logging
2022-06-06 14:50:40 +10:00
Andrew Tridgell
2c962e46c1
AP_Logger: don't compiler AP_Logger.cpp if logging not enabled
...
for some reason this fixes f103-GPS build, even though the code wasn't
referenced
2022-06-06 14:50:40 +10:00
Andrew Tridgell
a15cf3192d
AP_Logger: save crash_dump.bin to sdcard on boot
...
on each boot write crash_dump.bin to the microSD if it is available
this makes it easier for users to send in their crash dumps, and less
likely they will overwrite it with a fw update
2022-06-06 14:50:40 +10:00
Andrew Tridgell
45c016ea13
AP_Param: make configured_in_storage() private
...
prevent future bugs using the wrong method
2022-06-06 13:11:50 +10:00
Andrew Tridgell
d512dc0b00
RC_Channel: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
be33f77725
AP_VideoTX: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
943b262eef
AP_RPM: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
5413893c91
AP_RangeFinder: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
72470e290c
AP_NavEKF: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
d5670ace3b
AP_NavEKF3: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
aafec1fbe7
APM_Control: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
e807a74976
AP_HAL_ChibiOS: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
b2e43d1dee
AP_Motors: fixed override of MOT_PWM_MIN/MAX in defaults.parm
...
need to check configured() not configured_in_storage()
2022-06-06 13:11:50 +10:00
Andrew Tridgell
540dcc554f
AP_UAVCAN: added a check for memory corruption in the pool
2022-06-05 16:03:35 +10:00
Andrew Tridgell
541de85354
AP_UAVCAN: added dynamically allocated pool size param
...
allow for smaller pool size to save memory
2022-06-05 16:03:35 +10:00
Randy Mackay
29a1aed1e3
AP_Mount: backend gets minor comment fix
2022-06-03 19:43:54 +09:00
Randy Mackay
6303a7d958
AP_Mount: Alexmos minor comment fix
2022-06-03 19:43:51 +09:00
bugobliterator
68f0863fb6
AP_HAL_ChibiOS: remove peripheral power down in bootloader
2022-06-03 16:41:22 +10:00
bugobliterator
2726de9b7a
AP_HAL_ChibiOS: split the CubeOrange hwdef into inc and dat so the inc can be properly reused
2022-06-03 16:41:22 +10:00
bugobliterator
026ca4adae
AP_HAL_ChibiOS: update to using H757 chipset in cubeorange+
2022-06-03 16:41:22 +10:00
Randy Mackay
b4e5e16d56
RC_Channel: minor spelling fix
2022-06-03 11:56:18 +09:00
Randy Mackay
9e8f000ac2
AP_Mount: minor spelling fix
2022-06-03 11:56:18 +09:00
Andy Piper
7b733da2ea
AP_HAL: correct assert
2022-06-01 15:49:32 +01:00
Andy Piper
d3e57be6e5
AP_HAL: save a sliding window array of frequency bins
...
calculate frequency average from sliding window
2022-06-01 15:49:32 +01:00
Andy Piper
044aaf3004
AP_HAL_Empty: save a sliding window array of frequency bins
2022-06-01 15:49:32 +01:00
Andy Piper
061ddf7a3f
AP_HAL_SITL: save a sliding window of frequency bins
2022-06-01 15:49:32 +01:00
Andy Piper
58b04db242
AP_HAL_ChibiOS: save a sliding window of frequency bins
2022-06-01 15:49:32 +01:00
Andy Piper
684cf996e1
AP_GyroFFT: save a sliding window of output frequency bins
...
allow configuration of DSP averaging frames via FFT_NUM_FRAMES
2022-06-01 15:49:32 +01:00
Andrew Tridgell
c02aef8a50
AP_Logger: allow for new log msgs in Replay
...
this makes replay tuning and code testing much easier as up to 10 new
log messages can be added in the replay code
2022-06-01 17:07:41 +10:00
Maxim Buzdalov
e71ced7984
AP_Scripting: Fix parameter name in find_serial, add description
...
The argument to find_serial is not the protocol name, but the number of instance that can run the Scripting protocol (28).
The matching doc update is in https://github.com/ArduPilot/ardupilot_wiki/pull/4346 .
2022-05-31 15:00:57 +01:00
Andrew Tridgell
6f3b760d0b
AP_Filesystem: fixed gets() posix compat function
...
it needs to stop at end of line
2022-05-31 09:26:43 +10:00
Andrew Tridgell
74c4f3c9a9
AP_NavEKF3: log set source events
2022-05-31 09:17:37 +10:00
Andrew Tridgell
8430fc1002
AP_DAL: added set source events for EKF3
2022-05-31 09:17:37 +10:00
Mark Whitehorn
6f789ead55
AP_Math: add unit test for rc_input_to_roll_pitch
2022-05-31 08:08:17 +09:00
Leonard Hall
1a21c6da1e
AP_Math: Move rc_input_to_roll_pitch conversion
2022-05-31 08:08:17 +09:00
Randy Mackay
6ac864ec2f
AP_Mission: support NAV_ATTITUDE_TIME command
2022-05-31 07:50:16 +09:00
Andy Piper
1899962175
AP_OSD: update parameter menu flightmodes for plane and copter.
2022-05-30 11:16:39 +09:00
Iampete1
ecc86b6a4b
AC_AttitudeControl: reduce alt hold min lean angle to 5deg on plane
2022-05-27 08:17:14 +10:00
TunaLobster
53a5043ac4
AP_ICEngine: Change throttle_override to pass in current throttle value
2022-05-26 11:30:41 -07:00
TunaLobster
9e26556408
AP_ICEngine: Add redline governor and RPM filter
...
Adds a top end governor to protect the engine from exceeding design limits. Similar to idle governor.
Adds a LPF at 0.5 Hz for RPM.
2022-05-26 11:30:41 -07:00
Peter Barker
db9228ea3e
AP_DAL: correct error path in max_distance_cm_orient
2022-05-26 20:26:50 +10:00
Ryan Beall
eb790c6c0b
AP_Baro.cpp: Add in notes for standard day model accuracy
2022-05-26 11:32:45 +10:00
Ryan Beall
5dda9ac9d0
AP_Baro.cpp: no need to set and save FIELD_ELV
...
parameter gets reset on boot
2022-05-26 11:32:45 +10:00
Ryan Beall
cfa0690ab1
AP_Baro.cpp: Move parameter to end of list
2022-05-26 11:32:45 +10:00
Ryan Beall
9f1620f346
AP_Baro.cpp: if not define out AP Periph
2022-05-26 11:32:45 +10:00
Ryan Beall
f9840386bc
AP_Baro.cpp: fix fabsf and use non-fixed temperature for calibration
2022-05-26 11:32:45 +10:00
Ryan Beall
16f0df04dc
AP_Baro.cpp: Atmospheric Model Correction
2022-05-26 11:32:45 +10:00
Randy Mackay
27b66443b2
AP_Vehicle: mode reason added for dead reckon failsafe
2022-05-25 20:05:21 +09:00
Randy Mackay
86eea9468a
AP_Arming: add DEADRECKON_FAILSAFE disarm reason
2022-05-25 20:05:21 +09:00
Randy Mackay
5b40808ee8
AP_Logger: error subsystem added for dead reckon failsafe
2022-05-25 20:05:21 +09:00
Randy Mackay
eafb118b47
AP_NavEKF3: set filter status dead_reckoning bit
2022-05-25 20:05:21 +09:00
Randy Mackay
6553b9145a
AP_NavEKF: filter status gets dead_reckoning bit
2022-05-25 20:05:21 +09:00
Randy Mackay
e37bf9ad53
AP_NavEKF3: drag fusion for att and velAiding
...
also add dragTimeout
2022-05-25 20:05:21 +09:00
Randy Mackay
61c4643aed
AP_NavEKF3: minor comment fix
2022-05-25 20:05:21 +09:00
Peter Barker
e9426b2ff3
AP_ExternalAHRS: correct compilation if AP_Baro_ExternalAHRS isn't available
2022-05-25 18:19:00 +10:00
Peter Barker
c5f1d1db28
AP_Generator: inhibit maintenance warning based on GEN_OPTIONS bit
2022-05-25 18:17:05 +10:00
Peter Barker
bc0befc737
AP_Generator: mask MaintenanceRequired out from error bits in prearm
...
Turns out the generator sets this bit when it reaches the
maintenance-required state.
Mask it out from the error bits so the user can still fly.
Add some periodically-run code to complain about maintenance-required,
separate from the prearm checks.
2022-05-25 18:17:05 +10:00
Peter Barker
c496985e37
SITL: SIM_RichenPower sets MaintenanceRequired error flag
...
Turns out the generator does set this flag when the generator reaches
its maintenance required state.
2022-05-25 18:17:05 +10:00
bugobliterator
1934b4a738
AP_HAL: move function definitions to cpp to save flash
2022-05-25 18:14:46 +10:00
bugobliterator
76d6170ec9
AP_HAL_ChibiOS: add mechanism to set register rw register using device name for SPI
2022-05-25 18:14:46 +10:00
bugobliterator
e26ffc4ec5
AP_HAL: add mechanism to set register rw register using device name for SPI
2022-05-25 18:14:46 +10:00
Peter Barker
4272b2c264
AP_AccelCal: limit COMMAND_ACKs accepted for vehicle pose confirmation
2022-05-25 17:55:55 +10:00
Peter Barker
be21091619
GCS_MAVLink: pass mavlink_command_ack_t to accelcal library
...
The library needs to look at the content of the packet. Given that GCS_MAVLink is already within handle_command_ack, decoding it there makes sense.
2022-05-25 17:55:55 +10:00
Peter Barker
dcc1818ee2
AP_AccelCal: pass mavlink_command_ack_t to accelcal library
...
The library needs to look at the content of the packet. Given that GCS_MAVLink is already within handle_command_ack, decoding it there makes sense.
2022-05-25 17:55:55 +10:00
Peter Barker
dd2283d73b
AP_Airspeed: add SITL backend
2022-05-25 17:52:44 +10:00
Andy Piper
0cd3636dfb
AR_Motors: make sure ESC type is initialized early
2022-05-25 17:06:08 +10:00