Commit Graph

36126 Commits

Author SHA1 Message Date
Randy Mackay
1da3c24850 AP_EFI: TYPE param renamed to MAVLink 2024-05-21 08:38:59 +10:00
Randy Mackay
fcc2e2ac5a AC_PrecLand: TYPE param renamed to MAVLink 2024-05-21 08:38:59 +10:00
Randy Mackay
31720d2c83 AP_GPS: TYPE param value renamed to MAVLink 2024-05-21 08:38:59 +10:00
Andrew Tridgell
5cf2c2740e AP_Terrain: added parameter for terrain cache size 2024-05-17 10:18:13 +10:00
Maxim Buzdalov
ada091f1fc AP_IOMCU: add support for Extended DShot Telemetry v2 2024-05-15 17:29:19 +10:00
Maxim Buzdalov
1232e810d4 AP_HAL: add support for Extended DShot Telemetry v2 2024-05-15 17:29:19 +10:00
Maxim Buzdalov
43937ddeed AP_HAL_ChibiOS: add support for Extended DShot Telemetry v2 2024-05-15 17:29:19 +10:00
Maxim Buzdalov
0022c3aa72 AP_ESC_Telem: add support for Extended DShot Telemetry v2 2024-05-15 17:29:19 +10:00
bnsgeyer
8a42a29ef7 AC_AttitudeControl: add comments for system ID disturbance input code 2024-05-14 23:16:52 -04:00
bnsgeyer
c2e99dc50e AC_AttitudeControl: implement suggested changes 2024-05-14 23:16:52 -04:00
bnsgeyer
84e52378cf AC_PosControl: add support for sysid of vel and pos loops 2024-05-14 23:16:52 -04:00
Peter Barker
9f0e191505 GCS_MAVLink: deny attempt to do partial upload while mission transfer in progress
fixes an internal error where we make sure resources are not allocated before allocating upload resources.

The user may receive a DENIED message if they move a waypoint before an item has been transfered to the vehicle.
2024-05-15 12:26:34 +10:00
Andy Piper
2891b37807 AP_HAL_ChibiOS: add SDMODELV2 2024-05-15 07:27:46 +10:00
Andrew Tridgell
188df1312d AP_Scripting: fixed float register save/restore in setjmp/longjmp
the register save must happen before the setjmp() call, which means
outside of the LUAI_TRY() macro. We also should be saving all 32
floating point registers
2024-05-15 06:47:44 +10:00
Andrew Tridgell
09df079c19 AP_Scripting: added example script that causes a hard fault
this exercises rapid fault handling
2024-05-15 06:47:44 +10:00
Andy Piper
2352990d90 AC_AutoTune: zero out D_FF during twitching 2024-05-14 16:33:38 +09:00
Iampete1
0bb51a31ea AP_HAL_ChibiOS: remove setting of ROMFS flags 2024-05-14 10:05:51 +10:00
Ryan Friedman
2dc547bec2 AP_ExternalAHRS: Fix duplicate condition
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-05-14 09:58:59 +10:00
Iampete1
9026ce065a AP_BattMonitor: ESC: add mask 2024-05-14 09:58:04 +10:00
Andy Piper
a7d4183776 AP_HAL_ChibiOS: BLITZ Wing H743 2024-05-14 09:35:51 +10:00
Clyde McQueen
b853fe3366 AP_RangeFinder: fix Lua timeout 2024-05-14 09:26:25 +10:00
Peter Barker
bd3e58c413 GCS_MAVLink: mark as not receiving when too many items in MISSION_COUNT.count
we left things in the "receiving" state, which would eventually lead to a timeout, rather than just failing instanenously with the correct code.
2024-05-14 09:21:53 +10:00
Patrick José Pereira
34f5579699 AP_HAL_Linux: Remove message about base address
The value is the same as in the match

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
6016e411e0 AP_HAL_Linux: Add support to Raspberry Pi 5
The Raspberry Pi 5 has a coprocessor that takes care of the IO over the BCM.
This adds support to the new RP1 processor.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
3f451b9f4c AP_HAL_Linux: Util_RPI: Add message about unknown board
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
4af6142933 AP_HAL_Linux: Util_RPI: Add support to RPI5 identification
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Ryan Friedman
fbb785859a SITL: fix GPS headings
* Rename NMEA heading to ground_course_deg
* Rename heading() utility to ground course (it was wrong)
* Add _rad prefix to be pedantic about units
* Add missing degrees conversion in NMEA because NMEA is not SI

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-05-12 21:06:52 +10:00
Ryan Friedman
3b1ba19640 AP_GPS: fix GPS headings
* If you don't wrap the heading, you can get a flyaway

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-05-12 21:06:52 +10:00
mateksys
8c23379d45 AP_HAL_ChibiOS: add MatekG474-Periph hwdef 2024-05-10 12:54:11 +10:00
Andrew Tridgell
3050a8b0dc HAL_ChibiOS: fixed erasing of G4 dual-bank past 256k flash
BKER needs to be set to bank number, lower 7 bits of page number in
PNB
2024-05-10 12:54:11 +10:00
MattKear
7b02a99d14 AP_MotorsHeli: Swash: Make motor numbers const 2024-05-09 15:19:44 -04:00
Andy Piper
8c91077c35 AP_HAL_ChibiOS: correct GPS output on MambaH743v4 2024-05-08 18:56:45 +10:00
Andrew Tridgell
b4bc6f1e2e hwdef: added MatekL431-APDTelem
for using APD ESCs with serial telemetry
2024-05-08 18:19:19 +10:00
Peter Barker
972872d09f AP_Baro: create explicit define for BARO_PROBE_EXT parameter
the more-than-trivial #if is needed elsewhere, so create an explicit name for it
2024-05-08 18:18:07 +10:00
Peter Barker
51dc35f6ff AP_Mission: emit jump count even if no limit
previously if there was a jump limit we informed the user we were jumping and provided the current count and the limit.

This changes things so that if there's no limit we emit the same message, with the count and "unlimited" in place of the limit number
2024-05-08 17:56:56 +10:00
Randy Mackay
e605f961f2 AP_BattMonitor: torqeedo support for multiple instances 2024-05-08 17:51:09 +10:00
Randy Mackay
72718bb783 AP_Torqeedo: multi backend support 2024-05-08 17:51:09 +10:00
magate
a6995c93cc AP_Scripting: allow revert of angular rate limits 2024-05-08 17:43:04 +10:00
muramura
3a1e07d816 Filter: Get common processes out of the way 2024-05-08 17:41:32 +10:00
Peter Barker
599ff17f34 AP_HAL_Linux: fix SPIUARTDriver to work with GPS autodetection
GPS auto-detection requires get_baud_rate to return non-zero.  The SPIUARTDriver was returning 0.
2024-05-08 17:13:58 +10:00
MallikarjunSE
d93f9a09db hwdef:update DMA 2024-05-08 09:04:45 +10:00
Andrew Tridgell
04c3770a77 AP_Motors: use AHRS for get_air_density_ratio() 2024-05-07 21:19:06 +10:00
Andrew Tridgell
5a439bb9b7 AP_AHRS: added get_air_density_ratio() 2024-05-07 21:19:06 +10:00
Andrew Tridgell
b4ebae5e1b HAL_SITL: use baro atmospheric tables 2024-05-07 21:19:06 +10:00
Andrew Tridgell
67c506e75c SITL: use new atmospheric tables
and improve pitot handling
2024-05-07 21:19:06 +10:00
Andrew Tridgell
db9cc9ac84 AP_DAL: use ahrs for EAS2TAS
this uses the stored value calculated once per loop
2024-05-07 21:19:06 +10:00
Andrew Tridgell
3d2037ef03 AP_Baro: log AltAMSL
useful as GPS comparison
2024-05-07 21:19:06 +10:00
Andrew Tridgell
f8ce6a8623 AP_Baro: added atmospheric tables for high altitude flight
this gets altitude and EAS2TAS much more accurately up to around 150k
feet AMSL. Enabled on boards using EKF double
2024-05-07 21:19:06 +10:00
Andrew Tridgell
128d9b0e41 AP_Airspeed: added atmospheric tables for high altitude flight
this gets altitude and EAS2TAS much more accurately up to around 150k
feet AMSL. Enabled on boards using EKF double
2024-05-07 21:19:06 +10:00
Andrew Tridgell
bae5859a92 AP_Scripting: added copter_loiter_brake script
for automatic BRAKE mode when flying in LOITER in steep terrain
2024-05-07 19:39:39 +10:00
Nick Exton
c9f4c47b42 AP_JSON: Ensure all printf() calls end with line break 2024-05-07 14:39:19 +10:00
Henry Wurzburg
061823551a hwdef:preconfig MicoAir bds shipping with BF for BF migration 2024-05-07 14:14:06 +10:00
Henry Wurzburg
7a21f2b862 hwdef: enable can port on Blitz743Pro 2024-05-07 10:44:15 +10:00
Iampete1
a8b4999d96 AP_Scripting: tests: enforce correct types in docs 2024-05-07 09:51:53 +10:00
Iampete1
aa7a1ce2a6 AP_Scripting: Docs: fix all type errors 2024-05-07 09:51:53 +10:00
Iampete1
a4a8923e1e AP_Scripting: generator: add return count to manual bindings 2024-05-07 09:51:53 +10:00
Iampete1
439fcb7c46 AP_Scripting: update docs 2024-05-07 09:51:53 +10:00
Iampete1
6e75f7c80f AP_Scripting: update docs generator to show ap_objects as possibly nil 2024-05-07 09:51:53 +10:00
Peter Barker
7319422d6c AP_HAL_Linux: remove unused RC input methods
these protocols have come from AP_RCProtocol for years
2024-05-07 09:49:48 +10:00
Iampete1
95a5169439 AP_Scripting: CAN: get_device and get_device2 return nil if no driver is configure with the correct protocol 2024-05-07 09:48:10 +10:00
Iampete1
632d0a93c1 AP_CANManager: CANSensor: add getter for initialized 2024-05-07 09:48:10 +10:00
Iampete1
f3c32a7c9e AC_AttitudeControl: move euler_rate_to_ang_vel, ang_vel_to_euler_rate and euler_accel_limit to Quaternion attitude 2024-05-07 08:34:40 +09:00
tanghongkai
b66ecd8884 AP_Logger: rename class and hwdef related to w25nxx 2024-05-06 12:26:38 +10:00
Gone4Dirt
71a4885c87 AP_MotorsHeli: Add collective and cyclic blade pitch angle logging 2024-05-04 21:36:24 -04:00
Andrew Tridgell
b161bdd6a9 AP_AHRS: prevent use of uninitialised EAS2TAS 2024-05-05 07:57:54 +10:00
Andrew Tridgell
53c0619a9a SITL: added Glider SITL model 2024-05-05 07:57:54 +10:00
Andrew Tridgell
4370d2e348 HAL_SITL: added Glider SITL model 2024-05-05 07:57:54 +10:00
mateksys
af1ab61f78 AP_HAL_ChibiOS: update MatekH7A3 hwdef for 16MHz xtal 2024-05-04 20:52:50 +10:00
Thomas Watson
0ca37387be AP_Filesystem: guarantee load_file() data is null-terminated
Improves safety of use and clarity of users. Termination is not
included in the reported size to avoid changing user behavior or
misrepresenting the file contents.
2024-05-04 10:15:44 +10:00
Thomas Watson
a5764b7413 AP_ROMFS: clarify usage and null termination
Also remove the redundant insertion of the null terminator.
2024-05-04 10:15:44 +10:00
Andrew Tridgell
e2767f899f AP_Scripting: allow for 0x00 for 2nd checksum byte in INF_Inject driver
the device does send 0x00 sometimes and data is valid
2024-05-04 07:43:39 +10:00
Jacob Dahl
e5ea8f14f4 hwdef: ARKV6X: enable debug console 2024-05-02 15:16:33 -07:00
Jacob Dahl
9f5e837646 hwdef: ARKV6X: UART6 RC SBUS input 2024-05-02 15:16:33 -07:00
Andy Piper
f78eb58fb4 AP_InertialSensor: ensure that notches get updated while converging 2024-05-03 07:34:21 +10:00
Iampete1
982cc3a00f AP_DroneCAN: call RPM subscribe 2024-05-02 20:25:38 +10:00
Iampete1
dff29a5015 AP_RPM: add DroneCAN backend 2024-05-02 20:25:38 +10:00
Iampete1
23989bc569 AP_RPM: add DC_SEND_ID for periph RPM stream 2024-05-02 20:25:38 +10:00
Andrew Tridgell
c628e31c0a AP_Scripting: fixed crc and added logging to INF_Inject driver 2024-05-02 12:17:49 +10:00
Andy Piper
30877cf11f AP_InertialSensor: allow FIFO rate logging for hires sampling 2024-05-02 11:01:20 +10:00
Andy Piper
b1e7974453 AP_HAL_ChibiOS: add highres sampling to Pixhawk6X 2024-05-02 11:01:20 +10:00
Peter Barker
d1de760ee4 AP_Scripting: enable AP_Scheduler for CubeOrange-periph-heavy
... we use the scehduler in AP_Motors, which is compiled when making heavy-periph
2024-05-01 17:53:44 +10:00
Peter Barker
f44dd9605d AP_HAL_ChibiOS: enable AP_Scheduler for CubeOrange-periph-heavy
... we use the scehduler in AP_Motors, which is compiled when making heavy-periph
2024-05-01 17:53:44 +10:00
Peter Barker
549411133b GCS_MAVLink: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Peter Barker
f9c5c02f91 AP_RCProtocol: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Peter Barker
6f42556951 AP_Radio: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Peter Barker
f6bfd7cad3 AP_HAL: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Peter Barker
c521a5edfe AP_HAL_ChibiOS: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Peter Barker
6d9a75b5ec AP_BoardConfig: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Henry Wurzburg
c91fe8a44f AP_Motors:explain PMWRange/Angle PWM types in metadata 2024-05-01 17:26:44 +10:00
Iampete1
97449b0572 AC_Avoid: add "BACKZ_SPD" vertical backup speed limit parameter 2024-05-01 17:25:07 +10:00
richaravoil
af3be52925 AP_HAL_ChibiOS: adding active UART in the bootloader
Adding USART6 to be active in bootloader phase to allow flashing with a serial connection.
2024-05-01 17:21:30 +10:00
Andy Piper
f38faaae99 AP_HAL_ChibiOS: iFlight Blitz H7 Pro 2024-05-01 17:19:05 +10:00
Daniel Field
33892aa049 SITL: modifications to lift in SIM_StratoBlimp (#3)
* Update SIM_StratoBlimp.cpp

* Update SIM_StratoBlimp.h
2024-05-01 15:45:22 +10:00
Peter Barker
c08d982c0c SITL: populate speed accuracy uBlox messages from SITL parameters 2024-05-01 10:19:58 +10:00
Andrew Tridgell
68b58d5435 AP_Compass: workaround hardware bug in IST8310 whoami
the WAI (whoami) register is writeable. Not only is it writeable, but
the written value is persistent across a power cycle. You have to
remove power for about 30s for it to finally go back to the right
default value of 0x10

this makes using WAI as a test for finding a IST8310 problematic. The
best we can do is send a soft reset which will reset it to default for
us to then check
2024-05-01 09:24:54 +10:00
Andy Piper
41fd7c726e AP_IOMCU: allow up to 16 channels of servo data to be sent to the iomcu 2024-05-01 08:21:01 +10:00
Peter Barker
dce3a41657 SITL: add description for SIM_BARO_DRIFT 2024-04-30 16:39:32 +10:00
Peter Barker
527e621a57 AP_Baro: accumulate altitude drift in place of raw calc
currently we set drift based on current boot time.  If you want to introduce it at some stage in a flight the baro alt will suddenly jump based on how long you've been up.

Instead, accumulate a delta
2024-04-30 16:39:32 +10:00
Andy Piper
25b10fb8c4 AP_HAL: make NeoPixel high-low proportions match for 0 and 1 2024-04-30 11:00:30 +10:00
tanghongkai
0dac7d5cfe AP_Logger: add support to w25n02kv 2024-04-30 10:58:12 +10:00
Ryan Friedman
b81a5deefe AP_ExternalAHRS: Add pre-arm for misconfigured EAHRS_SENSORS and GPS_TYPE
* This catches when there's a mismatch of GPSx_TYPE and EAHRS_SENSORS
  when GPS is enabled
* Before this pre-arm, failure to set GPS_TYPE2 to 21 (ExternalAHRS)
  resulted in silent rejection of the data in AP_GPS because the default
is off
* And fix a little logging bug

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-04-30 09:18:46 +10:00
Iampete1
1b1ce9530c AP_Common: add get_distance_NED_alt_frame method 2024-04-30 08:03:39 +09:00
Iampete1
1cdff47246 AP_Mission: add support for DO_RETURN_PATH_START 2024-04-30 08:03:39 +09:00
Brad Bosch
e8d2097ec4 GCS_MAVLink: Avoid serial passthrough buffer exhausted/lost data
Just don't read more than we can write.
2024-04-29 20:06:43 +10:00
Hubert
890a83166d hwdef: Fix MicoAir743 internal compass rotation 2024-04-29 07:43:57 +10:00
Peter Barker
0a3ff72fd8 AP_Baro: correct placement of field elevation #endif
wind compensation and field elevation should be unrelated
2024-04-28 18:02:29 +10:00
Andrew Tridgell
202cc6ae9d SITL: fixed param meta-data name 2024-04-28 06:48:25 +10:00
Andrew Tridgell
4bb5a9ac52 HAL_SITL: link in StratoBlimp 2024-04-27 22:03:05 +10:00
Andrew Tridgell
1976f3d2d6 SITL: added StratoBlimp simulator 2024-04-27 22:03:05 +10:00
Iampete1
0a3bdbfdc9 Filter: NotchFilter: return NaN for logging_frequency if not initialised 2024-04-24 17:30:35 +10:00
Hubert
84900473de AP_HAL_ChibiOS: added NxtPX4v2
Update README.md

Update NxtPX4v2_BackView

Hwdef Remove: define HAL_GPIO_LED_OFF 0
2024-04-24 13:57:48 +10:00
aditya
9abcd6b7ca AP_ESC_TELEM: solved the logical error in grouping of escs into 4 2024-04-24 08:10:02 +09:00
Paul Riseborough
3c8b3be7a7 AP_NavEKF3: Change yaw source to stop compass use when calibrating 2024-04-23 15:19:56 +09:00
Andrew Tridgell
fe42171268 AP_GPS: make get_RelPosHeading boolean 2024-04-23 10:32:43 +10:00
Hubert
d1d71db8a0 AP_HAL_ChibiOS: add hwdef MicoAir743
Update README.md

Co-Authored-By: Henry Wurzburg <hwurzburg@yahoo.com>
2024-04-23 09:56:23 +10:00
Henry Wurzburg
4d7e4d1ca9 Revert "hwdef: bdshot version of the MatekF765-SE"
This reverts commit ac86bd8d21.
2024-04-23 09:52:01 +10:00
Michael du Breuil
ff7a215dd0 AP_Baro: Do not cache EAS2TAS conversions
Caching this introduces discontinuities in TECS, as the step change
modifies the target speed demand.
2024-04-23 09:32:27 +10:00
Iampete1
30fdae880f SITL: allow disabling MAVLink simstate messages 2024-04-23 09:16:55 +10:00
Iampete1
64b57de559 AP_HAL_SITL: call _sitl->set_stop_MAVLink_sim_state() when alocating elrs 2024-04-23 09:16:55 +10:00
Iampete1
700804a015 SITL: add ELRS simulator 2024-04-23 09:16:55 +10:00
Iampete1
cbd5bcb694 AP_HAL_SITL: SITL_State_common: add elrs and pass portnumber in create_serial_sim 2024-04-23 09:16:55 +10:00
Iampete1
b0ceaa7610 AP_HAL_SITL: use DataRateLimit helper 2024-04-23 09:16:55 +10:00
Iampete1
92adcb14e1 AP_HAL: utility: Add Data Rate Limit helper 2024-04-23 09:16:55 +10:00
Daniel Li
f47998ed8a hwdef: Fix Aocoda-RC H743Dual motor 5-8 mis-labeled issue 2024-04-22 12:03:33 +10:00
Ferruccio Vicari
1c104557b7 AP_Motors: fix heli yaw behavior in autorotation 2024-04-18 11:13:50 -04:00
Peter Barker
c5f4fe9a8a AP_Baro: remove Baro accumulate API
no backend actually needs to be prodded, everything is done on timers
2024-04-18 09:19:20 +10:00
Tatsuya Yamaguchi
8874c1a560 AP_HAL_SITL: added HEXA X 2024-04-18 08:25:41 +10:00
Peter Barker
bf63729d31 SRV_Channels: gate method on scripting being enabled
also AP_Scheduler since we're calling and instance method on it
2024-04-18 08:25:15 +10:00
Peter Barker
ee038cdf1f GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false 2024-04-18 08:25:15 +10:00
Peter Barker
35dbf93e13 AP_Scheduler: fixes for AP_SCHEDULER_ENABLED 2024-04-18 08:25:15 +10:00
Peter Barker
fe9bcb9b5b AP_Vehicle: cope with AP_Scheduler not being available 2024-04-18 08:25:15 +10:00
Iampete1
8f2b2cfe31 Filter: HarmonicNotchFilter: convert harmonics as a bitmask 2024-04-17 22:15:22 +01:00
Iampete1
cd0bdda93d AP_Param: add convert_bitmask_parameter_width method 2024-04-17 22:15:22 +01:00
Tatsuya Yamaguchi
26ec2ae952 AC_AttitudeControl: fix ATC_SLEW_YAW description (NFC) 2024-04-17 22:18:51 +10:00
Peter Barker
b367fd0c1e AP_RCMapper: exclude body of AP_RCMapper based on AP_RCMAPPER_ENABLED 2024-04-17 18:17:56 +10:00
Peter Barker
dc692f7169 AP_Arming: exclude body of AP_Arming.cpp based on AP_ARMING_ENABLED 2024-04-17 18:17:27 +10:00
Peter Barker
75bbff01c1 AP_DroneCAN: move Arming, Beacon and RC_Mapper into ardupilotwaf.py
these were built for all vehicles, so put them in the common list
2024-04-17 18:11:46 +10:00
Peter Barker
7d10b0fc4d GCS_MAVLink: add and use AP_HOME_ENABLED 2024-04-17 18:09:25 +10:00
Peter Barker
9df6beb181 AP_AHRS: add and use AP_HOME_ENABLED 2024-04-17 18:09:25 +10:00
Randy Mackay
6a56b2bc94 AP_HAL_ChibiOS: correct CUAV-Nora periph power comment 2024-04-17 18:07:56 +10:00
Randy Mackay
1b4f62c1ea AP_HAL_ChibiOS: correct CUAV-X7 periph power comment 2024-04-17 18:07:56 +10:00
Randy Mackay
69eff077d7 AP_HAL_ChibiOS: Durandal peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay
136ccf66c7 AP_HAL_ChibiOS: Pixhawk5X peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay
0b3b2148cb AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay
561d1254a1 AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay
d951898f13 AP_DAL: visual odom get_delay_ms return fix 2024-04-17 18:05:26 +10:00
Andy Piper
2a786616b1 AP_IOMCU: account for possibility of SBUS_OUT in PWM structures 2024-04-17 17:49:56 +10:00
Andy Piper
ca3ad93f0d AP_HAL_ChibiOS: iFlight BLITZ Mini F745 2024-04-17 17:34:10 +10:00
Andy Piper
bad4463463 AP_HAL_ChibiOS: iFlight Blitz F745 2024-04-17 17:34:10 +10:00
Gone4Dirt
9153c40568 AP_HAL_ChibiOS: MatekL431-Rangefinder: Add 2nd rangefinder 2024-04-17 17:06:42 +10:00
Andrew Tridgell
dce2492321 AP_NavEKF3: use filtered gyro in INS position correction
this reduces the impact of IMU noise on the output velocity from the
EKF
2024-04-17 14:53:59 +10:00
Andrew Tridgell
eed50a0872 AP_DAL: change gyro filter to 10Hz
this improved EKF3 IMU position correction for noise
2024-04-17 14:53:59 +10:00
Clyde McQueen
52a9bb7792 AP_Baro: disable BARO_FIELD_ELV for sub 2024-04-17 10:37:16 +10:00
Peter Barker
44359ff6b2 AP_Common: add get_alt - 100 times better than get_alt_cm 2024-04-16 19:14:12 +10:00
Peter Barker
423198cef0 AP_Frsky_Telem: avoid manipulation of alt frames outside of Location object 2024-04-16 19:14:12 +10:00
Leonardo Garcia
763193d4fc AP_HAL_ChibiOS: Support for 3DR Control Zero H7 OEM rev G
Co-authored-by: Alexis Guijarro <totonzx@gmail.com>
Co-authored-by: Andy Piper <github@andypiper.com>
2024-04-16 14:10:13 +10:00
Peter Barker
cd9aa0e3ed AP_GPS: remove dedundant crc32 routine from Nova 2024-04-16 10:02:47 +10:00
Peter Barker
b95bd8f19d AP_AHRS: remove call to get_home()
this is our object, we don't need permission
2024-04-16 08:47:15 +09:00
Peter Barker
6ef131c0f9 SITL: correct diagnostic message about what AirSim-in addr we bound
Co-authored-by: Oleksiy Protas <elfy.ua@gmail.com>
2024-04-16 09:31:20 +10:00
Henry Wurzburg
5c4aeddae7 AP_HAL_ChibiOS: add MicoAir405Mini 2024-04-16 09:21:23 +10:00
Brad Bosch
6538e8c9ae GCS_MAVLink: Cleanup and Reduce chance of GCS FTP timeout
Delete unneeded orphan comment
replace get_last_txbuf() with a predicate
Make txbuf flow control threashold consistent between Parameter download and FTP and keep it in range where we are also slowing down normal streams
Delay sending text banner until after first FTP response to reduce latency on slow links
Don't let flow control delay setting ftp.last_send_ms so as to slow down normal streams as soon as possible to improve FTP response time
2024-04-16 09:16:52 +10:00
Brad Bosch
bbfb0ed001 GCS_MAVLink: Make get_last_txbuf() safer
Add check for stale radio_status to get_last_txbuf()
Move last_txbuf into last_radio_status struct
2024-04-16 09:16:52 +10:00
Brad Bosch
0e47599bb1 GCS_MAVLink: respect txbuf flow control for FTP messages
This gives slow radio links a fighting chance of getting FTP bulk download working even when they use a baud rate which is much higher than their current bandwidth.

This should eliminate the need to disable FTP for parameter download on slow to moderate speed radio links like mLRS and ELRS.  It allows removal of a hack in mLRS which results in a decrease in parameter download time for 19 Hz mLRS from 45-60 seconds to 11-17 seconds.  This should also be good news for the ELRS rc-mavlink branch.
2024-04-16 09:16:52 +10:00
Oleksiy Protas
cadd121401 Bounds correctness for AnalogIn_IIO 2024-04-16 09:14:55 +10:00
FOG_Yamato
ac86bd8d21 hwdef: bdshot version of the MatekF765-SE 2024-04-16 09:13:43 +10:00
Peter Barker
5a21d0cb8a AP_Camera: correct compilation when HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED not set
- need the include because an enumeration is used in the header (relied on the include previously being made by a file including this header)
 - set_lens is not part of set-camera-source, so shouldn't be excluded
 - exclude entire method, not body of method based on the include
2024-04-14 13:33:00 +10:00
Peter Barker
a4ec91c4f1 AP_Follow: use Location.change_alt_frame for what it is good for 2024-04-14 13:29:58 +10:00
Andrew Tridgell
1cafe25854 AP_Scripting: improve INF inject driver
make it more robust to serial errors, and support correct checksum
2024-04-14 07:19:40 +10: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
43995763db AP_Camera: stop adjusting logged altitudes manually, use location methods 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
563d31b1ea AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-04-11 18:38:08 +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
murata
f605c0fbe3 RC_Channel: Notify function error if ADS-B is not implemented 2024-04-11 13:12:22 +10:00
Henry Wurzburg
6b5bb4e864 hwdef:add BIDIR to MatekH7A3 2024-04-11 10:17:43 +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
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
ed6ddf725d AP_Parachute: optional (CHUTE_OPTIONS:1) disarm defore parachute release 2024-04-10 21:55:51 +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
f55c35487b AP_VisualOdom: correct unused variable in visualodom
when both logging and gcs are compiled out
2024-04-10 21:52:28 +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
Peter Barker
b03b8309ef AP_GPS: copy GPS metadata in for pre-per-instance-parameters
allows to not break older firmware in terms of available metadata
2024-04-10 16:37:35 +09:00
Peter Barker
0e6bca92f7 AP_HAL_ChibiOS: remove redundant lines from hwdef files 2024-04-10 17:28:48 +10:00
muramura
d4236a95c4 tools: change a word(NFC) 2024-04-10 14:20:04 +09:00
muramura
927cfeec68 AP_Airspeed: change a word(NFC) 2024-04-10 14:20:04 +09:00
Peter Barker
29149fad1b hwdef: remove un-needed lines from CSKY405 hwdef
linting the hwdef showed this
2024-04-10 10:35:16 +10:00
Peter Barker
f16d0378e1 hwdef: compilation fix for CSKY405-fix
SCB-WAF: ../../libraries/AP_HAL/AP_HAL_Boards.h:372:2: error: #error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"  372 | #error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"
2024-04-10 10:35:16 +10:00
Andrew Tridgell
006d2c6cfe hwdef: require bootloader for BotBloxSwitch 2024-04-10 09:59:14 +10:00
Peter Barker
27598d1026 AP_HAL_ChibiOS: add missing Math.h include
for "MIN"
2024-04-10 08:45:18 +09:00
Peter Barker
b0351cd339 AP_GPS: protect detection structures with GPS backend defines
Save some memory when backends are compiled out
2024-04-09 10:25:42 +10:00
Iampete1
03b00cb906 AP_Vehicle: call uart_log in one_Hz_update 2024-04-09 10:00:50 +10:00
Iampete1
264bd91f4e AP_Logger: add log structures from AP_HAL 2024-04-09 10:00:50 +10:00