Andrew Tridgell
a76323aaca
AP_DAL: fixed a bug in RMGH logging
2021-09-03 18:16:08 +10:00
Andrew Tridgell
eacdd017d7
AP_Declination: added a test suite for AP_Declination
...
use test vectors from MAVProxy mavextra
2021-09-03 14:45:17 +10:00
Andrew Tridgell
71c5c624ce
AP_Declination: fixed rounding in mag field
...
thanks to Angela for noticing this
2021-09-03 14:45:17 +10:00
Peter Barker
7a06c941df
AP_Vehicle: make bad-mode-number notification consistent across vehicles
2021-09-01 19:45:46 +09:00
Peter Barker
a292fe13d6
GCS_MAVLink: add option to create internal error via preflight-reboot
...
useful for testing our handling of internal errors
2021-09-01 18:58:15 +10:00
olliw42
af634f0421
AP_Mount: initialize backends after all mounts were added
2021-09-01 18:57:24 +10:00
Iampete1
e82860266d
SRV_Channel: call update_aux_servo_function in function_assigned
2021-09-01 18:34:45 +10:00
Peter Barker
129eb4c184
AP_HAL_SITL: do not overwrite FETTecESC telemetry data w/SITL ESC data
2021-09-01 18:25:51 +10:00
Andrew Tridgell
ae615de4ce
GCS_MAVLink: added logging of NAMED_VALUE_FLOAT
...
this is useful when running sensors on a companion computer and
wanting values logged in main ArduPilot log.
2021-09-01 17:52:48 +10:00
Iampete1
8d669f7616
AP_Arming: update primary GPS type 0 string
2021-09-01 17:51:31 +10:00
Iampete1
0d3c00cb96
AP_Rangefinder: MAVLink: accept data only from configured orentation
2021-09-01 17:50:58 +10:00
Andy Piper
e8d1326a6d
AP_ESC_Telem: fix raw rpm
...
Co-authored-by: Amilcar Lucas <amilcar.lucas@iav.de>
2021-09-01 17:15:32 +10:00
Andy Piper
9281982b8f
AP_ESC_Telem: log raw RPM information
2021-09-01 17:15:32 +10:00
bugobliterator
4ecdf90470
AP_HAL_ChibiOS: add internal flash version of hwdef for H757I_EVAL
2021-09-01 17:10:53 +10:00
Siddharth Purohit
d484477a99
AP_HAL_ChibiOS: move to using PLL2_R_CK for QSPI
2021-09-01 17:10:53 +10:00
Siddharth Purohit
81dc237a19
AP_HAL_ChibiOS: move to using Instruction RAM with External Flash setup
2021-09-01 17:10:53 +10:00
Siddharth Purohit
1eb318c62b
AP_HAL_ChibiOS: increase clock frequency for QSPI
2021-09-01 17:10:53 +10:00
Siddharth Purohit
215c1249cb
AP_HAL_Empty: add check owner method
2021-09-01 17:10:53 +10:00
Siddharth Purohit
39bd229279
AP_HAL_ChibiOS: remove dependency on Semaphores in QSPIDevice in BL
2021-09-01 17:10:53 +10:00
Siddharth Purohit
813e93a69c
AP_HAL_ChibiOS: do not reset GPIO for boards with external flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
4ba2835de1
AP_HAL_ChibiOS: add config for supporting load from external flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
faedb12493
AP_HAL_ChibiOS: fix hwdef generation for bootloader supporting ext flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
6e81fcbed1
AP_HAL_ChibiOS: add support for things required to run QSPIDriver
2021-09-01 17:10:53 +10:00
Siddharth Purohit
a039711628
AP_HAL_ChibiOS: prepare H757I_EVAL for external flash programming
2021-09-01 17:10:53 +10:00
Siddharth Purohit
32f91c4cb2
AP_FlashIface: add jedec test using bootloader config
2021-09-01 17:10:53 +10:00
Andrew Tridgell
fdfa14c4c0
HAL_ChibiOS: adjust Swan-K1 tuning
2021-09-01 14:04:35 +10:00
Andrew Tridgell
f4ad8f6ef5
HAL_ChibiOS: fix for HAL_PWM_COUNT zero
...
reported by Mallikarjun
2021-09-01 13:05:20 +10:00
Peter Barker
5f980929d9
AP_Motors: use add_motors to save flash
2021-08-31 20:23:58 +10:00
nkruzan
0a236bc13d
AP_Vehicle: log internal error and report bitmask to GCS
...
AP_Vehicle.cpp: cast parameter bitmask as (unsigned) per Peter B.
rework per Peter B.
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
remove unnecessary send_internal_error_statustext function
remove Write_InternalError function
2021-08-31 15:54:02 +10:00
Peter Barker
2be49cb42b
AP_Airspeed: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
875b6331a4
AP_Compass: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
acc595ff57
AP_Mission: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
522c05fcc9
AP_Module: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
29d2eed9e4
Sub: view update does not take skip_ins_update
2021-08-31 14:28:53 +10:00
Peter Barker
9dbd9d1e06
AP_AHRS: call INS update in AP_AHRS::update w/o holding data sem
...
We shouldn't be holding the data semaphore while waiting for the samples
- lots of things might be unnecessarily blocked
DCM's update function doesn't need to take the semaphore as it is
already taken by AP_AHRS
2021-08-31 14:28:53 +10:00
TunaLobster
c20914c0c6
SITL: Add C++ library for JSON interface
...
Includes examples for a 1-D rover, minimum, and a copy of Socket as SocketExample.
2021-08-31 14:28:03 +10:00
Iampete1
970d0ea2a3
AP_BoardConfig: make sure heater is left off if disabled
2021-08-31 10:32:25 +10:00
Josh Henderson
b1028035bc
AP_UAVCAN: cleanup comments in BatteryInfoAux dsdl message
2021-08-31 10:30:28 +10:00
Andrew Tridgell
584fb7cd7b
HAL_ChibiOS: use more USB buffers on higher end F7 chips
2021-08-31 10:12:00 +10:00
Andrew Tridgell
4fdc1ebc30
AP_InertialSensor: fixed locking issue in delta accumulation
...
this fixes a bug in calculating delta velocity and delta acceleration
between threads.
2021-08-31 10:10:18 +10:00
Iampete1
e28650c8bd
RC_Channel: remove recompute_pwm_no_deadzone
2021-08-31 09:48:59 +10:00
Peter Barker
3a5062c90b
AP_NMEA_Output: eliminate AP::ahrs().get_location
2021-08-31 09:47:31 +10:00
Peter Barker
cc514af158
AP_AHRS: eliminate AP::ahrs().get_location
2021-08-31 09:47:31 +10:00
Andrew Tridgell
a412795045
AP_Terrain: make TERRAIN_MARGIN a float
...
it turns out very large margins are needed for some locations
2021-08-31 09:25:36 +10:00
Randy Mackay
e5bde1a085
AP_VisualOdom: use AP_AHRS::using_extnav_for_yaw to protect against aligning to oneself
2021-08-31 09:20:17 +10:00
Randy Mackay
1c08866342
AP_AHRS: add using_extnav_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
63e579d738
AP_NavEKF3: add using_extnav_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
b984f1370c
AP_VisualOdom: integrate rename to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
e7be608a4a
AP_AHRS: rename is_ext_nav_used_for_yaw to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
0edfd2634f
AP_NavEKF3: rename using_external_yaw to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Iampete1
ce56bfe786
AP_Arming: check status and health of all GPS
2021-08-31 09:13:57 +10:00
Peter Barker
de9f8a9320
AP_Logger: specify frames on PSC fields
2021-08-31 09:09:02 +10:00
Andy Piper
8035b92e6e
AP_RCProtocol: increase CRSF frame timeout to account for scheduling delays
2021-08-31 08:18:32 +10:00
Andrew Tridgell
39f44147b8
HAL_ChibiOS: reduce the impact of UART DMA contention
...
this changes the heuristics for UART TX DMA allocation to greatly
reduce the chances of DMA contention causing long delays on other
devices
This fixes issues with FETTec driver output and gimbal status messages
as reported by Amilcar and OlliW. The problem is particularly bad when
no GPS is connected to GPS1 on fmuv3 and derived boards (such as
CubeBlack)
key changes:
- remember the contention_counter across begin() calls, as the GPS
calls begin with new baudrates regularly
- added a is_shared() API to Shared_DMA, allowing the UART driver to
avoid TX DMA on shared streams when at low baudrates.
2021-08-31 07:55:27 +10:00
Andrew Tridgell
dc252aa8f5
GCS_MAVLink: check for null comm_port before writing
...
this was found when adding debug code to write to a specific channel
2021-08-31 07:55:27 +10:00
Rishabh
ee176d26e9
AC_PrecLand: Raise internal error if state machine is running while precland is disabled
2021-08-30 14:08:44 +09:00
Iampete1
7d536666b4
SITL: SIM_Sailboat: remove use of AHRS
2021-08-30 13:40:37 +10:00
Marek Łukasiewicz
5de6c690d8
HAL_ChibiOS: Rename STM32F412 hw definition file
2021-08-30 10:27:45 +10:00
Pierre Kancir
60155a7fec
Filter: add more unittests
2021-08-30 09:51:25 +10:00
Pierre Kancir
fd38be843a
Filter: finish modefilter test
2021-08-30 09:51:25 +10:00
Peter Barker
0792caab83
AP_AHRS: factor out an update_notify_from_filter_status
2021-08-28 23:11:09 +10:00
Peter Barker
ca6d214bb3
AP_AHRS: remove unused getGpsGlitchStatus method
2021-08-28 19:46:13 +10:00
Iampete1
6628fd2837
SITL: swap rotation direciton of motor 2 for lower yaw offset
2021-08-28 10:32:59 +09:00
Teo
4988f72ee2
RC_Channel: removed dead code
2021-08-28 10:29:06 +09:00
bugobliterator
fd95c32d88
AP_HAL_ChibiOS: add CubeOrange Periph Heavy build
2021-08-27 09:17:30 -07:00
Pierre Kancir
cc39eafe02
AP_GyroFFT: ensure we got float division when there are needed instead of integer divisions
2021-08-27 13:42:03 +10:00
Pierre Kancir
23a67a9e60
AP_GyroFFT: checking that uint16_t is negative is useless
2021-08-27 13:42:03 +10:00
Pierre Kancir
39fd32aa9e
AP_GyroFFT: reduce first_harmonic scope
2021-08-27 13:42:03 +10:00
Andrew Tridgell
858a6b7e87
HAL_ChibiOS: allow FlywooF745 to build again
2021-08-27 07:45:58 +10:00
Pierre Kancir
bcfb07b39f
AP_Rangefinder: fix override in constructor
2021-08-26 21:48:19 +10:00
Randy Mackay
b524094216
AP_NavEKF2: init rngOnGnd to 5cm to avoid div-by-zero
2021-08-26 12:23:32 +09:00
Leonard Hall
ff58054d1b
AC_AttitudeControl: AC_PosControl: Clean up to use .xy()
2021-08-26 12:22:52 +09:00
Leonard Hall
8223d664a7
AC_AttitudeControl: AC_PosControl: Non functional clean up
2021-08-26 12:22:52 +09:00
Leonard Hall
520883b504
AC_WPNav: Fix Jerk units
2021-08-26 12:22:52 +09:00
Leonard Hall
9c097dd6be
AC_AttitudeControl: AC_PosControl: limit initial acceleration
2021-08-26 12:22:52 +09:00
Leonard Hall
445e52b821
AC_AttitudeControl: AC_PosControl: fix stopping point initialization
2021-08-26 12:22:52 +09:00
Randy Mackay
b396169084
AP_Scripting: copter-fast-descent.lua example script
2021-08-26 11:25:54 +09:00
Randy Mackay
1a7826295f
AP_Vehicle: add virtual set_target methods
2021-08-26 11:25:54 +09:00
Randy Mackay
e8155bc47c
AP_Scripting: add AP_Vehicle set_target_pos_NED and posvelaccel_NED bindings
2021-08-26 11:25:54 +09:00
Randy Mackay
a3b4c8efd8
AP_Scripting: minor reorder of AP_Vehicle bindings
...
this is a slightly better grouping
2021-08-26 11:25:54 +09:00
Randy Mackay
5eb65c9a1f
AP_Scripting: add AHRS:get_relative_position_NED_origin binding
2021-08-26 11:25:54 +09:00
Pierre Kancir
ec03c9eaf4
AP_Scheduler: correct pointer checking
2021-08-26 10:17:22 +10:00
Andrew Tridgell
1655beeca9
AP_MSP: fixed build without MSP
...
found by custom.ardupilot.org
2021-08-26 10:01:35 +10:00
olliw42
617024bdfa
GCS_Mavlink: scale across full valid range
2021-08-26 09:44:59 +10:00
olliw42
bacfe82c66
GCS_MAVLINK: add receiver_rssi() method, and use it
2021-08-26 09:44:59 +10:00
Marek S. Łukasiewicz
47f2e13024
HAL_ChibiOS: Add hwdef for BirdCANdy
2021-08-26 09:43:39 +10:00
Iampete1
2a834508ae
AC_AttitudeControl: check for zero rate Y max before taking min
2021-08-25 23:48:52 +01:00
Peter Barker
1387ed06bd
AP_WindVane: remove empty contructors
2021-08-25 20:42:23 +10:00
Peter Barker
47455f12db
AP_Vehicle: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
9dd02f0c2b
AP_Scripting: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
c9fd7ee00d
AP_Button: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
4ae3ad555d
AP_Arming: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Samuel Tabor
3ead096329
AP_Soaring: Initialize filter to the current filtered measurement
2021-08-25 19:00:46 +10:00
Michael du Breuil
e3109e4b29
AP_Logger: Use actual MAVLink constant
...
This isn't a functional change, it just improves the readibility of the
file
2021-08-25 18:52:21 +10:00
Randy Mackay
4bdb428cfe
AP_Scripting: add copter-circle-speed.lua example
...
Co-authored-by: Iampete1 <iampete@hotmail.co.uk>
2021-08-25 18:39:09 +10:00
Randy Mackay
8548695e5d
AP_Scripting: add bindings for get_circle_radius, set_circle_rate
2021-08-25 18:39:09 +10:00
Randy Mackay
1725eda961
AP_Vehicle: add get_circle_radius, set_circle_rate
2021-08-25 18:39:09 +10:00
Peter Barker
9114d4fc86
AP_AHRS: make home-relative functions AHRS-frontend only
2021-08-25 18:32:07 +10:00
Peter Barker
e8066aa993
AP_AHRS: constrain airspeed sensor airspeed using WIND_MAX
...
fixes regression from d1d790019c
2021-08-25 18:28:12 +10:00
Peter Barker
a933652950
AP_AHRS: return perfect airspeed estimate for EKF-type 10
...
... rather than the EKF3 estimate
2021-08-25 18:28:12 +10:00
Pierre Kancir
29b13ff98a
AP_InertialSensor: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
Pierre Kancir
ae11353d81
AP_Baro: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
Pierre Kancir
4481bc6147
AP_Compass: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
yaapu
617b023c6f
AP_Frsky_Telem: added frame 0x500C for true/apparent WIND info
2021-08-25 17:13:16 +10:00
yaapu
d91e2008d3
AP_RCTelemetry: incremented WFQ scheduler slots to 20
2021-08-25 17:13:16 +10:00
yaapu
7e3395eebd
AP_OSD: added a new backend for msp displayport aka canvas mode support
2021-08-25 17:12:15 +10:00
yaapu
188b7a50a9
AP_MSP: added a new backend for msp displayport aka canvas mode support
2021-08-25 17:12:15 +10:00
yaapu
05686f3c60
AP_MSP: fixed MSP RC out command
2021-08-25 17:12:15 +10:00
yaapu
c1e50dc676
AP_SerialManager: added a new MSP DisplayPort serial backend
2021-08-25 17:12:15 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d907328f80
AP_FETtecOneWire: README.md clarity improvements
2021-08-25 16:05:05 +10:00
Randy Mackay
04c8ad6150
RC_Channel: rename visodom_calibrate to visodom_align
...
This should be a non-functional change
2021-08-25 15:42:02 +10:00
Josh Henderson
b94fb40a33
SITL: add unit tests for SIM_MS5611
2021-08-25 12:37:43 +10:00
bugobliterator
a32a32ab43
HAL_ChibiOS: change name for USART2_CTS pin in STM32H757xx.py
2021-08-25 10:09:23 +10:00
bugobliterator
21ad3c7ac1
AP_HAL_ChibiOS: add HereID board
2021-08-25 10:09:23 +10:00
Gone4Dirt
c94b9e8a19
AP_RPM: Mark type = PWM as not used in docs
2021-08-25 09:36:58 +10:00
Gone4Dirt
b402a50bb2
SITL: Remove RPM params from examples that are set to defaults
2021-08-25 09:36:58 +10:00
Gone4Dirt
7be9773f95
SITL: Update RPM param in FlightAxis defaults
2021-08-25 09:36:58 +10:00
Gone4Dirt
df1280e999
AP_RPM: Whitespace changes
2021-08-25 09:36:58 +10:00
Gone4Dirt
5bb4729d61
AP_RPM: Restructure params to be per instance of _params
2021-08-25 09:36:58 +10:00
Iampete1
58e14b2dc3
AC_Loiter: update ANG_MAX param description
2021-08-24 22:14:08 +01:00
Andrew Tridgell
e9427f1dae
HAL_ChibiOS: removed remnants of CHIBIOS_ADC_MAVLINK_DEBUG
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5bacd35eaa
HAL_ChibiOS: review fixes
2021-08-25 07:11:31 +10:00
Andrew Tridgell
4cebcede31
HAL_ChibiOS: switched to fix allocation for BMDA streams on H7
...
this avoids issues with BDMA stream assignments due to bugs found
while testing boards with both I2C4 and SPI6
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5c3056e50d
GCS_MAVLink: added MCU_STATUS message
2021-08-25 07:11:31 +10:00
Andrew Tridgell
0f59e1ebb8
AP_Logger: log MCU temperature and voltage
2021-08-25 07:11:31 +10:00
Andrew Tridgell
57e87b9820
HAL_ChibiOS: measure MCU temperature and ref voltage on H7
...
this uses ADC3 to measure the internal MCU temperature and the reference
voltage. This uses a currently unused BDMA channel
2021-08-25 07:11:31 +10:00
Andrew Tridgell
c91410f4b7
AP_HAL: added MCU status support
2021-08-25 07:11:31 +10:00
Randy Mackay
5de30cc7cf
AP_Scripting: ahrs-source-gps-optflow script fixups from peer review
...
also dded assert on optical flow to ensure the script is used with a version of AP that includes the optical flow bindings
2021-08-24 16:49:04 +09:00
Randy Mackay
9313535a35
AP_OpticalFlow: SITL driver applies _FX/YSCALER params
2021-08-24 16:49:04 +09:00
Randy Mackay
2aa17916b1
AP_Scripting: add ahrs-source-gps-optflow
...
this supports automatic switching between GPS and opticalflow
2021-08-24 16:49:04 +09:00
Randy Mackay
df187d5d3f
AP_Scripting: add optical flow bindings
2021-08-24 16:49:04 +09:00
Randy Mackay
d1f2acd813
AP_NavEKF3: rename varInnovOptFlow to flowVarInnov
...
also renamed innovOptFlow to flowInnov
2021-08-24 16:49:04 +09:00
Randy Mackay
85ade10e85
AP_NavEKF3: ofDataNew made local
2021-08-24 16:49:04 +09:00
Randy Mackay
11847cfcf5
AP_NavEKF3: always calculate optical flow innovations and variances
2021-08-24 16:49:04 +09:00
Randy Mackay
914a8dca49
AP_NavEKF3: for loops use uint8_t instead of unsigned
2021-08-24 16:49:04 +09:00
Randy Mackay
5779ebd177
AP_NavEKF3: remove unused Tbn_flow
2021-08-24 16:49:04 +09:00
Randy Mackay
f9fd63e01e
AP_NavEKF3: remove unused optflow calcs
2021-08-24 16:49:04 +09:00
Hwurzburg
00a1cbffde
AP_CANManager: correct metadata for values
2021-08-24 10:52:33 +10:00
Peter Barker
f02ffac9a4
AP_SerialManager: reserve Id 41 for CoDev serially-attached ESCs
2021-08-24 10:24:02 +10:00
Peter Barker
e2722c8e12
AP_AHRS: move active_accel_instance into DCM private header section
2021-08-24 10:23:36 +10:00
Peter Barker
d6c7c59199
AP_AHRS: remove custom_rotation matrix to frontend
...
Only one of these per vehicle
2021-08-24 10:23:36 +10:00
Peter Barker
645a5302d0
AP_AHRS: move DCM parameters into DCM header
2021-08-24 10:23:36 +10:00
Peter Barker
74709c6292
AP_AHRS: move groundspeed vector up to AP_AHRS_DCM
...
The other estimators all have their own implementation of this
2021-08-24 10:23:36 +10:00
Peter Barker
8169910866
AP_AHRS: move frontend parameters up / DCM parameters down
2021-08-24 10:23:36 +10:00
Peter Barker
62f6a5b033
AP_Compass: fail calibration unless at least 1 compass to cal
2021-08-24 10:18:38 +10:00
Josh Henderson
3c9547caff
AP_Baro_SITL: use temp_board_offset and timeout
2021-08-24 09:55:01 +10:00
Josh Henderson
e8dcdd60c5
SITL: param use baro temp_board_offset instead of temp_flight
2021-08-24 09:55:01 +10:00
Iampete1
8c61d1a18d
AP_Radio: hide params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
9bcd706dae
AP_Proximity: hide params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
2bad7734db
AP_landing: hide deepstall params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
280171e96b
AP_Beacon: hide params with enable flag
2021-08-24 09:38:46 +10:00
Mohammad Hefny
2a14181e69
update to new files names
2021-08-24 07:45:41 +10:00
Mohammad Hefny
ac30fbd7b0
SITL: Webots2021b Compatible
2021-08-24 07:45:41 +10:00
Rishabh
ae98545202
AC_PrecLand: Add prec landing state machine
2021-08-23 15:00:56 +09:00
Rishabh
d4edd84573
AC_Precland: Allow landing retry and failsafe handling
2021-08-23 15:00:56 +09:00
Peter Barker
44803b92c7
SITL: correct SIM_FETtecOneWire consume function
...
when this was factored out the parameter wasn't taken into account.
2021-08-23 13:47:35 +10:00
Andrew Tridgell
531ca4289e
HAL_ChibiOS: switch to minimum scheduling delta of 10us
...
this avoids an issue with the ChibiOS 20.3 virtual timer
implementation that can result in a scheduling slip equal to the
system timer period.
Andy has been suggesting this change for a while. I resisted it as I
thought it would impact on soft-serial parsing, but it turns out it
doesn't.
Fixes issue #18383
2021-08-23 10:45:44 +10:00
Peter Barker
5613610641
AP_Arming: remove redundant checks_to_perform check
...
This is identical to the check just above it
2021-08-23 08:51:38 +09:00
Peter Barker
066ad0f8da
APM_Control: remove unused variables
2021-08-23 08:39:41 +09:00
Andrew Tridgell
4e98636a53
AP_Terrain: added a TERRAIN_MARGIN parameter
...
this sets the acceptance margin for GCS generated terrain data. You
can raise this to allow old data generated with the less accurate
longitude scaling to be used
2021-08-22 20:32:46 +10:00
Iampete1
df7321c0da
AC_PosControl: init_z_controller_stopping_point: remove duplicate set_integrator
2021-08-21 09:54:33 +01:00
Peter Barker
70aef84997
AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Peter Barker
815f7017d4
AP_BoardConfig: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Andrew Tridgell
fed927f1a4
AP_RCTelemetry: fixed CRSF build dependency issue
...
found on custom.ardupilot.org
2021-08-20 06:46:15 +10:00
Samuel Tabor
27f0320452
AP_Landing_Slope: Log height used for flare timing.
2021-08-19 17:59:33 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
7498d5c296
AP_FETtecOneWire: Fix compilation on some exotic compilers
2021-08-19 17:57:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
92a75661e0
AP_FETtecOneWire: Fix state of CRC error counters after _fast_throttle_cmd_count overflow
2021-08-19 17:57:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
2f4c79fd1e
AP_FETtecOneWire: only check for telemetry if it has been requested at some point
...
Only check for telemetry after sending a fast-throttle request for that particular ESC
Added more debug information from message handling state machine
2021-08-19 17:57:58 +10:00
Tom Pittenger
b9918cd0d5
AP_ADSB: added Ping200X driver /w UCP protocol
2021-08-19 17:49:27 +10:00
Tom Pittenger
896dd49c96
GCS_MAVLink: add MAV_CMD_ADSB_IDENT cmd
2021-08-19 17:49:27 +10:00
Tom Pittenger
8c9dcf4ad8
AP_Math: added CRC16_CCITT non-standard variant
2021-08-19 17:49:27 +10:00
Andy Piper
0279c86f7f
AP_HAL_ChibiOS: use hardware serial inversion pins on F4 boards that support it
...
change mamba F405 to active high as per betaflight
2021-08-19 17:05:42 +10:00
Andrew Tridgell
f822d8f5f6
AP_Scripting: example script for testing EKF3/DCM switching
2021-08-19 14:42:28 +10:00
Andrew Tridgell
973466856c
AC_WPNav: update variable name for consistency
2021-08-19 14:42:28 +10:00
Andrew Tridgell
285798446a
AC_AttitudeControl: apply EKF Z gain scaler
...
for flying with DCM
2021-08-19 14:42:28 +10:00
Andrew Tridgell
53e7436525
AP_AHRS: allow for fallback to DCM in quadplanes
...
this adds the necessary functions to allow for flying a quadplane on
DCM as an emergency fallback. It sets the NavGainScalar to 0.5 to
reduce the VTOL controller gains to allow planes to cope with the
higher lag of DCM
2021-08-19 14:42:28 +10:00
bugobliterator
d64621e349
HAL_ChibiOS: remove duplicate FLASH_RESERVE_START_KB from hwdef
2021-08-19 14:20:58 +10:00
bugobliterator
ddc50a8420
AP_GPS: add option to set a dedicated line for Moving Baseline Data
2021-08-19 14:20:58 +10:00
bugobliterator
e9faab288c
GCS_MAVLink: allow mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
a8ab20abd9
AP_HAL_ChibiOS: allow sending stats via mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
6b64cfd6c1
AP_FileSystem_Sys: allow sending stats via mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
e8c4b99a99
AP_UAVCAN: add support for setting parameters on CAN nodes
2021-08-19 14:20:58 +10:00
bugobliterator
4f65705c99
AP_HAL_ChibiOS: set proper name for CAN terminators on HerePro
2021-08-19 14:20:58 +10:00
bugobliterator
d32111b376
AP_GPS: fix handling of RTCM3 parser with user notification for bad cfg
2021-08-19 14:20:58 +10:00
bugobliterator
3b58463bfd
AP_GPS: initialise uavcan drv interim_state with state structure at startup
2021-08-19 14:20:58 +10:00
bugobliterator
85d8becb8c
AP_GPS: add support for auto config Moving Baseline for AP_Periph GPS
2021-08-19 14:20:58 +10:00
bugobliterator
c7907bb8fb
AP_HAL_ChibiOS: update config for dual gps heading in HerePro
2021-08-19 14:20:58 +10:00
bugobliterator
9fc57e40b4
AP_GPS: add support for dual GPS heading using Periph GPSes
2021-08-19 14:20:58 +10:00
bugobliterator
e29ddebe3c
AP_CANManager: remove unused variable from SLCANIface code
2021-08-19 14:20:58 +10:00
bugobliterator
ddc82f7619
AP_UAVCAN: add messages for doing MovingBaseline Heading over UAVCAN
2021-08-19 14:20:58 +10:00
Randy Mackay
2fba31332b
GCS_MAVLink: support MAV_CMD_SET_EKF_SOURCE_SET command
...
this allows external systems to set the active EKF source set
2021-08-19 12:11:08 +10:00
Andrew Tridgell
d92c5589a9
GCS_MAVLink: added fields for new mavlink2 extensions
2021-08-19 12:08:54 +10:00
Andrew Tridgell
46287dcb00
SITL: fixed plane-tailsitter model
...
it doesn't play well with smoothing
2021-08-19 12:08:54 +10:00
Peter Barker
be076e5b1a
AP_Math: correct descriptions of quaternion functions
2021-08-19 10:00:35 +10:00
TunaLobster
8cd47433ed
AP_FETtecOneWire: Remove @RebootRequired: False
2021-08-19 10:00:16 +10:00
TunaLobster
d6a5622fcb
AP_NavEKF3: Remove @RebootRequired: False
2021-08-19 10:00:16 +10:00
TunaLobster
7dd40f0cab
AP_NavEKF2: Remove @RebootRequired: False
2021-08-19 10:00:16 +10:00
TunaLobster
642bd85306
AP_ICEngine: spelling and grammer fixes inc in param description
2021-08-19 10:00:16 +10:00
TunaLobster
c0d484570c
AP_EFI: Remove @RebootRequired: False
2021-08-19 10:00:16 +10:00
Peter Barker
f465a9336e
AP_Button: add debounce on PWM input
...
Co-authored-by: jmachuca77 <jaime@element.aero>
2021-08-18 18:47:28 +10:00
Peter Barker
5d49d29c27
AP_AHRS: move wind-estimation-enabled state to frontend
2021-08-18 18:37:39 +10:00
Peter Barker
d2822635ca
AP_VisualOdom: adjust for rename yaw_initialised -> dcm_yaw_initialised
2021-08-18 18:37:39 +10:00
Peter Barker
8daa0a099c
AP_AHRS: rename yaw_initialised access method to dcm_yaw_initialised
...
This is what it really means.
Also put the relevant state within the DCM object
2021-08-18 18:37:39 +10:00
Iampete1
60e0f47918
AP_Arming: always check configured on copter and blimp
2021-08-18 18:30:51 +10:00
Peter Hall
2ec36d7f7f
AP_Scripting: add quadplane in_assisted_flight binding
2021-08-18 18:07:20 +10:00
Peter Barker
a91d30369e
GCS_MAVLink: stop sending SENSOR_OFFSETS
...
Only works for first compass instance.
We have all of these in parameters anyway.
2021-08-18 18:06:24 +10:00
Andy Piper
b78d848a5d
AP_HAL_ChibiOS: add FlywooF745Nano board definition
2021-08-18 17:06:09 +10:00
Andy Piper
3790957d02
RC_Channel: add turtle mode docs
2021-08-18 10:49:13 +10:00
Andrew Tridgell
477f936560
SITL: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
11afdb1ef2
AP_WindVane: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
61d5910d0a
AP_TECS: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
ab89a94d22
AP_Soaring: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
0bdbdcec21
AP_RCProtocol: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
c0c32a63cc
AP_IOMCU: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
d07bf97da6
AP_GyroFFT: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
17b91903ed
AP_Generator: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
de1e44c77e
AP_Follow: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
4faa16b0a7
AP_ExternalAHRS: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
87ae238ea0
AP_EFI: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
ffe8add56d
AP_Compass: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
730f5cc7e8
AP_BoardConfig: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
a2790f57c0
AP_BattMonitor: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
c80a2c2ef6
AP_Baro: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
d9ee2b3c6c
AC_AutoTune: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
8acc093d1a
AC_Autorotation: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
c99f9312db
AC_AttitudeControl: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Andrew Tridgell
872cae6063
AP_Logger: fixed rate limiting of WriteV messages
2021-08-18 10:20:03 +10:00
Peter Hall
8e62385d8d
RC_Channel: add lua helper
2021-08-17 11:01:00 +01:00
Peter Hall
5eee3c4eb0
AP_Scripting: add binding to get RC_Channel by number
2021-08-17 11:01:00 +01:00
Josh Henderson
aaa8600d7b
SITL: SIM_MS5611 fix D1&D2 when temperature compensated & forward_conversion check
2021-08-17 19:08:23 +10:00
Rishabh
d9534d9526
AC_Precland: Add new parameter to descend only when close to target
2021-08-17 15:09:55 +09:00
Peter Barker
608608f32f
AP_AHRS: internalise application of correct_centrifugal
...
This is a DCM-only option but that's not clear with the interface.
Internalise the variable and base it off build type.
2021-08-17 10:36:46 +10:00
Peter Barker
fc6d8222e7
AP_DAL: move VehicleClass handling to AHRS frontend
...
.... and renaming the enumeration while we're at it
2021-08-17 10:34:07 +10:00
Peter Barker
1cfd9f57ce
AP_AHRS: move VehicleClass handling to AHRS frontend
...
.... and renaming the enumeration while we're at it
2021-08-17 10:34:07 +10:00
Randy Mackay
a1eb84ebfd
AP_HAL_ChibiOS: swap Pixhawk4 blue and red LEDs
2021-08-17 10:13:39 +10:00
Andrew Tridgell
5c86cc6828
AP_NavEKF3: added EK3_PRIMARY parameter
...
allows for selection of which IMU to use on startup
2021-08-17 06:42:42 +10:00
Andrew Tridgell
25ee57080f
AC_AttitudeControl: this fixes an issue with Z accel initialisation
...
tailsitter quadplanes were climbing a lot on transition from fixed
wing to Q modes. Leonard tracked it down to a bug in the Z accel init
2021-08-16 08:33:34 +10:00
Andrew Tridgell
9507f7883f
SITL: prevent flip over of RF9 quadplanes on reboot
...
send a zero channel mask until we are initialised
2021-08-16 08:33:34 +10:00
Pierre Kancir
aebe2beba5
AP_HAL_SITL: check that _sitl is not nullptr before using it
2021-08-14 10:20:33 +10:00
Pierre Kancir
c91c570814
AP_HAL_SITL: don't use timer_event() that is static from the _scheduler instance
2021-08-14 10:20:33 +10:00
Hwurzburg
0d3b1d90b0
AP_OSD: fixes bug introduced by #16477
2021-08-14 10:17:42 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
a3d9a1d463
AP_FETtecOneWire: Do not write to the UART buffer if the previous transfer did not complete yet
...
Required for stable operation on F4 processors
2021-08-13 16:22:37 +10:00
Peter Barker
ea7c7f9d19
AP_FETtecOneWire: complete rewrite of the ESC-configuration state machine
...
Co-authored-by: Dr.-Ing. Amilcar do Carmo Lucas <amilcar.lucas@iav.de>
tidy message sending using templates
Calculate and enforce the minimum update period.
Disable unused features to save flash
forced time gaps between all transmits
correct ESC reset functionality
Avoid re-initialization repeatition
Make sure we stop FETtec if safety is on (ignore reverse) this reduces duplicated code
Error count calculation changed
as the telemetry error count is absolute only the overflow status can be safed and used for the percentage calculation
Update the README to add autotests information
FETtec needs a time gap between frames
This allows running at high fast_loop_rates
do not send fast_throttle data if a configuration command just got sent
Example parameter configuration file is for a Quadcopter with ESCs connected to Telem2
remove two FIXME
fix compilation in master
Fix the ESC not re-initializing issue.
Now we re-init whenever we loose connection
RVMASK parameter changes only take effect when not armed
Improve documentation
Always use the same wording when referring to fast-throttle commands
fix pre-arm check message
assure the length of the memmove is positive
Set HAL_AP_FETTEC_CONFIGURE_ESCS to 0 when no ESC hardware is available and you want to test the UART send function
2021-08-13 16:22:37 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
1b7b705856
AP_FETtecOneWire: Convert into an ArduPilot device driver
...
Co-authored-by: Torsten Z <t.zunker@fettec.net>
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
- use ArduPilot's coding guidelines and naming conventions
- control motor speed
- copy ESC telemetry data into MAVLink telemetry
- save ESC telemetry data in dataflash logs
- use RPM telemetry for dynamic notch filter frequencies
- sum the current telemetry info from all ESCs and use it as virtual battery current monitor sensor
- average the voltage telemetry info and use it as virtual battery voltage monitor sensor
- average the temperature telemetry info and use it as virtual battery temperature monitor sensor
- report telemetry communication error rate in the dataflash logs
- warn the user if there is a gap in the bitmask parameter.
- re-enumerate all ESCs if not armed (motors not spinning) when
- there is a gap in their address space IDs
- communication with one of the ESCs is lost
- some of the configured ESCs are not found
- some of the configured ESCs are not correctly configured
- allows the user to configure motor rotation direction per ESC (only gets updated if not armed)
- adds a serial simulator of FETtec OneWire ESCs
- adds autotest (using the simulator) to fly a copter over a simulated serial link connection
2021-08-13 16:22:37 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
38a825c987
AP_HAL_ChibiOS: disable FETtec OneWire device driver
2021-08-13 16:22:37 +10:00
Peter Barker
2cf22112a2
AP_Arming: call fettec prearm checks
2021-08-13 16:22:37 +10:00
Peter Barker
97057a1350
SITL: add simulated FETtec ESC
2021-08-13 16:22:37 +10:00
Peter Barker
26f2393014
AP_HAL_SITL: add simulated FETtec ESC
2021-08-13 16:22:37 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
72a69ec274
AP_ESC_Telem: implement get_active_esc_mask()
...
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-08-13 16:22:37 +10:00
Peter Barker
2251e442cc
AP_Math: move crc8_dvb_update into crc library
2021-08-13 16:22:37 +10:00