Iampete1
a0eb3396f8
AR_Motors: Move to new relay functions
2023-12-19 10:01:01 +11:00
Iampete1
abcbc66c5c
AP_Relay: param conversion from ICE, chute and camera
2023-12-19 10:01:01 +11:00
Iampete1
5a5ee0c44c
AP_Parachute: move to new relay functions
2023-12-19 10:01:01 +11:00
Iampete1
8ab6f01942
AP_Relay: add enabled method by function
2023-12-19 10:01:01 +11:00
Iampete1
8ce490d985
AP_ICEngine: move to new relay functions
2023-12-19 10:01:01 +11:00
Iampete1
8292c6ea9f
AP_Camera: move to new relay functions
2023-12-19 10:01:01 +11:00
Iampete1
f26ff3ee5a
AP_LandingGear: remove unneeded relay include
2023-12-19 10:01:01 +11:00
Michael du Breuil
368ec28ab6
AP_Relay: Refactor to support RELAYx_FUNCTION
2023-12-19 10:01:01 +11:00
Ryan Friedman
1d805555f5
AP_ExternalAHRS: Fix typos in configuration for microstrain7
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-12-19 09:32:55 +11:00
Thomas Watson
e460a19b17
AP_HAL_Linux: deprecate and warn on legacy --uartX option use
2023-12-19 06:53:15 +11:00
Thomas Watson
14180b5b93
AP_HAL_SITL: deprecate and warn on legacy --uartX option use
2023-12-19 06:53:15 +11:00
Thomas Watson
cc5b095d59
AP_SerialManager: clarify comment regarding legacy UART order
2023-12-19 06:53:15 +11:00
Thomas Watson
ae7170501d
AP_FETtecOneWire: remove references to legacy UART order
2023-12-19 06:53:15 +11:00
Thomas Watson
f0a92889fa
AP_DDS: remove references to legacy UART order
2023-12-19 06:53:15 +11:00
Thomas Watson
8ee9dd13be
AP_Scripting: remove references to legacy UART order
2023-12-19 06:53:15 +11:00
Thomas Watson
94888822be
GCS_MAVLink: correct comment about stream array
2023-12-19 06:53:15 +11:00
Thomas Watson
f6ea8201b2
SITL: remove references to legacy UART order incl. sim arguments
2023-12-19 06:53:15 +11:00
Thomas Watson
9044632315
AP_HAL_SITL: eliminate internal legacy UART ordering/references
...
Legacy command line arguments are kept to avoid breaking users.
The vestigial `_tcp_client_addr` variable is removed.
Serial port status messages are updated to a slightly different format
to clarify the numbering scheme being used and prompt any external
consumers to update.
2023-12-19 06:53:15 +11:00
Thomas Watson
f34034584f
AP_HAL_Linux: eliminate internal legacy UART ordering/references
...
Leave the legacy command line arguments to avoid breaking users.
2023-12-19 06:53:15 +11:00
Thomas Watson
6b79349947
AP_HAL_ESP32: eliminate legacy UART ordering/references
2023-12-19 06:53:15 +11:00
Thomas Watson
20ee5b2d37
AP_HAL_Empty: eliminate legacy UART ordering/references
...
Fourth serial port (SERIAL2) added purely for consistency.
2023-12-19 06:53:15 +11:00
Thomas Watson
2aa4ee8ba7
AP_HAL_ChibiOS: remove references to legacy UART order from hwdefs
2023-12-19 06:53:15 +11:00
Thomas Watson
dc4438d0e3
AP_HAL_ChibiOS: eliminate legacy UART ordering/references
...
SERIAL_ORDER has been around for a few years now and UART_ORDER is
rejected by the hwdef script, so support for UART_ORDER and associated
processing in the hwdef script is removed, along with the order
conversion script.
2023-12-19 06:53:15 +11:00
Thomas Watson
c56599e210
AP_HAL_SITL: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
764b469e47
AP_HAL_Linux: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
574c8016c3
AP_HAL_ESP32: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
90c14141a0
AP_HAL_Empty: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
507ab623b2
AP_HAL_ChibiOS: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
bcfad0d712
AP_HAL: remove references to legacy UART order
2023-12-19 06:53:15 +11:00
Thomas Watson
ebbcf42236
AP_HAL: constructor now accepts UARTs in SERIALn order
2023-12-19 06:53:15 +11:00
Thomas Watson
6a6c3ce7a1
AP_HAL: inline serial accessor function
...
Saves a bit more flash.
2023-12-19 06:53:15 +11:00
Thomas Watson
8747ae539f
AP_HAL: move serial re-mapping to driver array initialization
...
Saves a bit of flash and execution time.
2023-12-19 06:53:15 +11:00
Thomas Watson
de45437704
AP_HAL: use array of UART drivers instead of consecutive variables
...
Avoids UB-inducing assumption that UART drivers are consecutive in the
serial() function.
2023-12-19 06:53:15 +11:00
Andy Piper
ea76c0bd01
AP_HAL_ChibiOS: ensure dshot commands are send to all FMU channels when IOMCU is present
2023-12-18 19:02:52 +11:00
Andy Piper
1fb6205439
AP_IOMCU: always run iofirmware loop at 1Khz to avoid uart races
...
don't look for multiple pages on single-page packets
2023-12-18 19:02:52 +11:00
Andy Piper
5d9f9db2fe
AP_IOMCU: treat register_write() as a successful interaction
2023-12-18 19:02:52 +11:00
Andy Piper
d2a48148dd
AP_HAL_ChibiOS: allow bdshot iomcu on non-bdshot fmu
2023-12-18 19:02:52 +11:00
Andy Piper
92ef809e3b
AP_IOMCU: allow bdshot iomcu on non-bdshot fmu
2023-12-18 19:02:52 +11:00
Andy Piper
6dec0c2da5
AP_BLHeli: allow bdshot iomcu on non-bdshot fmu
2023-12-18 19:02:52 +11:00
Andy Piper
a8772ef5a2
AP_HAL: allow bdshot iomcu on non-bdshot fmu
2023-12-18 19:02:52 +11:00
Andy Piper
2415c2998b
AP_HAL_ChibiOS: allow dshot to be used even if bdshot was specified.
...
correct zero handling in bdshot decoding
2023-12-18 19:02:52 +11:00
Andy Piper
43b6fc0dba
AP_IOMCU: constrain PWM channels to 8, telem channels to 4 and RC channels to 16
...
make ADC readings interrupt driven
turn off iomcu updates when debugging
allow for correct number of telemetry channels
cycle between vservo and vrssi when reading adc
build adc with O2
2023-12-18 19:02:52 +11:00
Andy Piper
8c03c9e4bf
AP_HAL_ChibiOS: cache values of io_dshot() and io_enabled()
...
enabled shared_up_dma to be fully compiled out
address some minor review comments
2023-12-18 19:02:52 +11:00
Andy Piper
153c5181cb
AP_IOMCU: reset erpm to zero on timeout
...
remove unneeded packed attribute
reset the PWM status after channels have been enabled or disabled
2023-12-18 19:02:52 +11:00
Andy Piper
a5b6c3b5ef
AP_HAL_ChibiOS: utility to print out bdshot encoded data
2023-12-18 19:02:52 +11:00
Andy Piper
9f30d01561
AP_HAL_ChibiOS: bdshot for f103 iofirmware
...
add support to tell if shared DMA channel is actually shared
avoid starting and stopping the timer peripheral with bdshot
ensure that rcout DMA allocation and deallocation happens entirely within the lock
increase rcout thread working area for bdshot
fix mode mask that is sent to the iomcu
ensure iomcu rcout thread gets timeouts for callbacks
control bdshot input and output line levels on f103
use input capture channel pairs to read rising and falling edges of telemetry on f103
reset channel pairs together on iomcu
generalize the bdshot input path to support suitable buffer sizes for iomcu
generalize DMAR reading of CCR registers to read two at a time on iomcu
enable bi-directional dshot channels on PWM1-4 on iomcu
add methods to directly access erpm values from rcout
update erpm mask and esc telemetry correctly for firmware supporting dshot
add support for propagating bdmask to iomcu
dshot commands to all channels need to be aware of iomcu
ensure esc type is propagated to iomcu
cope with iomcu channel numbering when using EDT
ensure pwm driver is reset properly for dshot commands on iomcu
correctly reset pwm for dshot commands
correctly mask off bdshot bits going to iomcu
don't reset GPIO modes on disabled lines
don't reset pwm_started when sharing DMA channels
set thread name on iomcu rcout and reduce stack size on iomcu
ensure that bdshot pulses with no response are handled correctly
correctly setup DMA for input capture on f103
deal with out of order captured bytes when decoding bdshot telemetry
ensure DMA sharing on f103 does not pull lines low
only disable the timer peripheral when switching DMA channels on iomcu
add support for waiting for _UP to finish before proceeding with dshot
re-order iomcu dshot channels to let TIM4_UP go first
ensure that a cascading event will always come when expected on rcout
allow timeouts when using cascading dshot
always rotate telemetry channel after trying to capture input
cater for both in order and out-of-order bdshot telemetry packets
cope with reversed packets when decoding bdshot telemetry
ensure UP DMA channel is fully free on iomcu before starting next dshot cycle
refactor rcout for iofirmware into separate file
2023-12-18 19:02:52 +11:00
Andy Piper
e024f9fc8c
AP_Notify: ensure dshot LEDs work with EDT ESCs
2023-12-18 19:02:52 +11:00
Andy Piper
2a9c2fdf14
AP_HAL: add methods to directly access erpm array from rcout
2023-12-18 19:02:52 +11:00
Andy Piper
9db7120c06
AP_BLHeli: add accessor for motor poles and telemetry rate
2023-12-18 19:02:52 +11:00
Andy Piper
6deff406e0
AP_ESC_Telem: don't set up parameters on iofirmware
...
add direct accessor for telemetry data to be used by iomcu
don't update telemetry data if no data
2023-12-18 19:02:52 +11:00
Andy Piper
98aeade904
AP_IOMCU: bdshot for iomcu
...
prevent repeated rcout mode sets
add ESC telemetry if compiled in
add infrastructure to support propagating erpm and telemetry from iomcu
add support to propagate bdmask to iomcu
add support for EDT
scale voltage and current correctly when reading EDT data
ensure that telemetry data is reset
reset ESC telemetry data to zero if stale
ESC type and bdmask must be setup before the output mode
2023-12-18 19:02:52 +11:00
Ryan Friedman
dee0ca2f34
AP_ExternalARHS: Don't offer IMU by default
...
* Since MicroStrain won't support >400Hz yet
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-12-18 16:03:35 +11:00
Andrew Tridgell
8732f582c3
AP_Scripting: update SkyPower driver to support new model
...
support SP-275 dual-cylinder ECU
2023-12-17 14:14:20 +11:00
Andrew Tridgell
8976767321
RC_Channel: use EKFType enum class
2023-12-17 09:47:30 +11:00
Andrew Tridgell
6f79c1cee2
AP_AHRS: use EKFType enum class in set_ekf_type()
2023-12-17 09:47:30 +11:00
Andrew Tridgell
757607e4f8
AP_ExternalAHRS: added InertialLabs backend
2023-12-17 09:47:30 +11:00
Andrew Tridgell
38960a3db2
HAL_SITL: added InertialLabs simulator
2023-12-17 09:47:30 +11:00
Andrew Tridgell
48ab76d06e
AP_HAL: added InertialLabs simulator
2023-12-17 09:47:30 +11:00
Andrew Tridgell
a17438d52c
SITL: added InertialLabs simulator
2023-12-17 09:47:30 +11:00
Andrew Tridgell
54ffdc57f2
AP_Airspeed: support external AHRS airspeed sensor
2023-12-17 09:47:30 +11:00
Andrew Tridgell
7102205be3
AP_Math: added crc_sum_of_bytes_16()
2023-12-17 09:47:30 +11:00
patrick.wiltshire956@gmail.com
bdab1054d6
AP_AHRS: added set_ekf_type() and DCM logging
2023-12-17 09:47:30 +11:00
Andrew Tridgell
771dfdf826
AP_ExternalAHRS: added location extrapolation
...
this copes better with slow backends
2023-12-17 09:47:30 +11:00
Andrew Tridgell
3954425f77
AP_ExternalAHRS: allow backends to set default sensor set
2023-12-17 09:47:30 +11:00
Andrew Tridgell
cbc14d1fa5
AP_ExternalAHRS: align origin with AHRS origin
...
automatically set origin to AHRS origin. This means if on boot
external AHRS is not the primary then it will use the origin from the
active backend, preventing a jump on change of backends
2023-12-17 09:47:30 +11:00
Andrew Tridgell
376426a088
RC_Channel: added AUX function 112 for AHRS EKF type changes
2023-12-17 09:47:30 +11:00
Andrew Tridgell
80730d6c02
AP_Compass: use tesla conversion from AP_Math/definitions.h
2023-12-17 09:47:30 +11:00
Andrew Tridgell
ee1975d47a
AP_Math: added tesla conversions
2023-12-17 09:47:30 +11:00
Andrew Tridgell
ddccc92e7d
AP_Math: added rfu_to_frd() method for Vector3
2023-12-17 09:47:30 +11:00
Andrew Tridgell
61b3ad326d
AP_Scripting: added SCR_THD_PRIORITY parameter
...
this makes it possible to run lua scripts at higher priorities, which
makes real time lua scripts (such as IMU drivers) possible
2023-12-15 10:38:07 +11:00
Peter Barker
6515df72f0
GCS_MAVLink: correct compilation when AP_Vehicle disabled
2023-12-13 18:34:40 +11:00
Peter Barker
8e1fc60550
AP_Vehicle: correct compilation when AP_Vehicle not available
2023-12-13 18:34:40 +11:00
Peter Barker
0f4262de3d
AP_Scheduler: correct compilation when AP_Vehicle not available
2023-12-13 18:34:40 +11:00
Peter Barker
105acc605f
AP_DAL: correct compilation when AP_Vehicle not available
2023-12-13 18:34:40 +11:00
Peter Barker
8ef98c0f41
AP_Arming: correct compilation when AP_Vehicle not available
2023-12-13 18:34:40 +11:00
Peter Barker
70cc84dd89
GCS_Common: correct compilation when AP_RSSI_ENABLED is false
2023-12-13 18:30:32 +11:00
Peter Barker
66da78abaf
AP_Logger: correct compilation with AP_RSSI disabled
2023-12-13 18:30:32 +11:00
Peter Barker
3ba2f3117f
AP_Arming: correct compilation when logging not available
2023-12-13 18:27:08 +11:00
Randy Mackay
56a2474e1c
AP_Scripting: djirs2 reply timeout reduced to 0.1 sec
2023-12-13 18:16:11 +11:00
Thomas Watson
95033b2ef5
AP_Scripting: mount-djirs2 yaw angle reporting fix
2023-12-13 18:16:11 +11:00
Randy Mackay
b507075701
AP_Scripting: mount-djir2 handles both legacy and latest ver
2023-12-13 18:16:11 +11:00
Thomas Watson
c6c41cb609
AP_Scripting: mount-djirs2: fix parsing for latest firmware
...
DJI R SDK version 2.2.0.5 released on October 30, 2020 added CmdSet and
CmdID bytes to reply frames before the data segment which need to be
skipped when parsing replies.
Tested with gimbal firmware 01.04.00.20 and 01.05.00.20 (latest version).
2023-12-13 18:16:11 +11:00
Iampete1
452f9989b9
AP_Scripting: fix some more of the easy luacheck warnings
2023-12-13 18:10:26 +11:00
Peter Barker
71a64d5046
GCS_MAVLink: correct compilation when compass not enabled
2023-12-13 14:34:13 +11:00
Luca Scheuer
4226f9e97c
AP_SerialManager: reserving serial protocol for Vertiq IQUART
2023-12-13 08:12:18 +09:00
Peter Barker
f6bff8c19e
AP_Mission: correct compilation when RC_Channel not enabled
2023-12-12 14:52:36 +11:00
Peter Barker
22c1019767
AP_Scripting: correct compilation when AP_RTC is compiled out
2023-12-12 14:35:25 +11:00
Peter Barker
1aa6ad5bc3
AP_OSD: correct compilation when RC_Channels library not available
2023-12-12 14:35:12 +11:00
Peter Barker
2768c63971
AP_Arming: correct compilation when RC_Channels library not available
2023-12-12 14:35:12 +11:00
Peter Barker
58d4871177
AP_DAL: remove tmp_location from global namespace
...
removes this from the global namespace and means it isn't included when DAL isn't
update the location where we update the fields.
2023-12-12 11:53:00 +11:00
Peter Barker
283a1edb9f
AP_VisualOdom: correct compilation when HAL_GCS_ENABLED is false
2023-12-12 11:41:47 +11:00
Peter Barker
93907f4a6d
AP_Avoidance: correct compilation when HAL_GCS_ENABLED is false
2023-12-12 11:41:47 +11:00
Peter Barker
c15a73c798
AR_Motors: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
673fad04de
AP_WindVane: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
1bf85a0a15
AP_SmartRTL: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
dd6d1f04c2
AP_OSD: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
6efc6d0f2d
AP_Motors: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
6df3f18440
AP_Landing: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
87c0543d9f
AP_Arming: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00
Peter Barker
dcebd072be
AC_AttitudeControl: correct compilation when GCS library not available
2023-12-12 11:41:47 +11:00