Peter Barker
7ce739aeef
AP_Mount: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
8930b5f6f5
AP_Motors: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
4c7f4514cd
AP_Module: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
445b10d8b3
AP_Mission: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
a08025125b
AP_Math: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
750fd2c820
AP_Logger: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
94dc0e78cd
AP_InertialSensor: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
0ea46a93a1
AP_ICEngine: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
b158e15ed4
AP_Hott_Telem: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
c456172821
AP_HAL_Linux: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
9857954529
AP_GPS: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
6fa9fd1768
AP_EFI: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
f1069023ee
AP_Common: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
24f7369760
AP_Beacon: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
6c377b2dcd
AP_BattMonitor: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
8dcc2e969f
AP_Arming: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
9b14760dc9
AP_Airspeed: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
34a7503c1e
AP_AHRS: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
d3563e72c8
AP_ADSB: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
666ac39e31
AC_Avoidance: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
73c6eabde2
APM_Control: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
6f2fd9c4a4
AC_AutoTune: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
d62e6e3228
AC_Autorotation: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
0fb5be7f2b
AC_AttitudeControl: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
7c00b525a3
AP_Tuning: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
17ad710866
GCS_MAVLink: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
6eaf2c545a
AP_Filesystem: correct run-length encoding in param download
...
If a parameter's name was a prefix of the previous name we would
suffer an integer-wrap problem and incorrectly encode the parameter name
2022-05-03 07:49:36 +10:00
Iampete1
20a2e6aaf0
AP_Scripting: allow deprecation warnings
2022-05-03 07:48:39 +10:00
Peter Barker
2c0f52a8b7
AP_BattMonitor: zero-terminate strings in caller rather than read_block
...
It was noted that we did not increment the return value bufflen when
adding zero. This is an ambiguity in the function declaration; if we
are told to add a zero should the return value be like strnlen (does not
include terminating null character) or read (includes all bytes used in
return buffer).
This PR makes it a non-issue by ensuring string null termination in the
caller and removing the append_zero parameter.
2022-05-03 07:11:45 +10:00
Josh Henderson
51eb398277
SITL: SIM_BattMonitor_SMBus add registers to smartbatts
2022-05-02 10:56:39 +10:00
Kirill Shilov
c414a021ae
AirLink-HWDEF: external peripherals enabled with logical high
2022-05-02 10:56:09 +10:00
Mirko Denecke
e60520160f
SRV_Channel: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Mirko Denecke
60b0be4a97
RC_Channel: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Mirko Denecke
11a74cf28c
AP_HAL_ChibiOS: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Mirko Denecke
853fd7f8c1
AP_HAL: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Mirko Denecke
d6843c4ca1
AP_Airspeed: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Henry Wurzburg
c6fbdc0cb8
AP_Relay:Prevent operation for sim-on-hardware,add logs
...
Co-authored-by: Iampete1 <iampete@hotmail.co.uk>
2022-05-02 10:54:02 +10:00
Iampete1
6eea4d12ee
SITL: apply momentum drag per-motor
2022-05-01 09:17:23 +10:00
Iampete1
f9050c3040
SITL: Frame: take drag from thrust not accel
2022-05-01 09:17:23 +10:00
Iampete1
92135400f8
SITL: Frame: stop adding random physics noise
2022-05-01 09:17:23 +10:00
Iampete1
f869506b0a
SITL: Motor: acount for airflow due to vehicle rotation
2022-05-01 09:17:23 +10:00
Iampete1
bead0ac0f8
SITL: JSON allow to set motor rotation direciton
2022-05-01 09:17:23 +10:00
m
dbf00bae10
AP_Scripting: Add pre_arm_checks LUA binding
2022-04-30 10:23:28 +09:00
Andrew Tridgell
ed89acea66
AP_Scripting: added PDmod binding for quick tuning
2022-04-29 11:54:12 +10:00
Andrew Tridgell
f8fe74f5fe
AC_AttitudeControl: added get_rpy_PDmod method
...
used for lua scripts to do VTOL tuning
2022-04-29 11:54:12 +10:00
bugobliterator
46f9ae54af
AP_HAL_ChibiOS: fix CubeOrangePlus IMU rotation
2022-04-29 08:26:34 +10:00
Andrew Tridgell
8c3d2205cb
hwdef: added DShot peripheral for MatekL431
2022-04-28 13:56:16 +10:00
Peter Barker
a5dee06afb
SRV_Channel: add PARAMETER CONVERSION comments
2022-04-28 10:17:11 +10:00
Peter Barker
414d3d27db
AP_RangeFinder: add PARAMETER CONVERSION comments
2022-04-28 10:17:11 +10:00
Peter Barker
c2bf79d3f3
AP_BattMonitor: add PARAMETER CONVERSION comments
2022-04-28 10:17:11 +10:00
Andy Piper
742c2b034f
AC_AutoTune: allow high ANGLE_P gains
2022-04-28 08:51:54 +09:00
Leonardo Garcia
0eb6ae365a
AP_InertialSensor: Added BMI085 support
...
Fixed styling for 61125e2
Remove whitespace l202
Removed else
2022-04-27 18:37:39 +10:00
Andy Piper
7c4d0ad9f4
AP_HAL_ChibiOS: catch and handle STM32_DMA_ISR_DMEIF in bdshot.
2022-04-27 18:19:24 +10:00
Andrew Tridgell
12f348398a
Revert "AP_Notify: fixed DroneCAN LEDs on AP_Periph"
...
This reverts commit 1858969697
.
This was an incorrect change that actually broke LEDs on CAN GPS modules
2022-04-27 17:13:40 +10:00
Andrew Tridgell
06b9b804a1
hwdef: uncompress bootloader for HolybroG4_GPS
...
not enough ram to uncompress at runtime
2022-04-27 17:12:08 +10:00
Tatsuya Yamaguchi
073683cc69
AP_Arming: remove ARMING_CHECK_ALL bit check from disarm_switch_checks
2022-04-27 09:36:36 +09:00
Tatsuya Yamaguchi
02f966a35d
AP_Arming: add ARMING_OPTIONS param
2022-04-27 09:36:36 +09:00
Mohammad Hefny
ce8405b7a4
AP_Rangefinder: preserve new address
2022-04-27 10:16:40 +10:00
Randy Mackay
599cd15c7b
AP_Scripting: add copter-deadreckon-home example
2022-04-26 18:37:54 +09:00
Randy Mackay
7b6ad412fe
AP_Scripting: add ahrs get_relative_position_D_home binding
2022-04-26 18:37:54 +09:00
Randy Mackay
f0623fa8c9
AP_Scripting: add has_ekf_failsafed binding
2022-04-26 18:37:54 +09:00
Randy Mackay
21ee06d362
AP_Vehicle: implement has_ekf_failsafed for use by lua
2022-04-26 18:37:54 +09:00
Randy Mackay
23ad8b23ac
AP_Common: clarify Location::get_distance is horizontal only
2022-04-26 18:37:54 +09:00
Randy Mackay
da961948db
AP_RPM: pre-arm displays gpio vs servo_ch conflict
2022-04-26 15:19:28 +09:00
Randy Mackay
d8219c2200
AP_Relay: pre-arm displays gpio vs servo_ch conflict
2022-04-26 15:19:28 +09:00
Randy Mackay
846637e3e9
AP_Button: pre-arm displays gpio vs servo_ch conflict
2022-04-26 15:19:28 +09:00
Randy Mackay
1ee01577f6
AP_HAL: add GPIO::pin_to_servo_channel method
2022-04-26 15:19:28 +09:00
Randy Mackay
588a75a883
AP_HAL_ChibiOS: GPIO comment removes mention of BRD_PWM_COUNT
2022-04-26 15:19:28 +09:00
Randy Mackay
b6e86eee49
AP_IOMCU: valid_GPIO_pin checks if pin configured for GPIO
2022-04-26 15:19:28 +09:00
Randy Mackay
caa2ed3294
AP_IOMCU: convert_pin_number leaves input untouched on failure
2022-04-26 15:19:28 +09:00
Iampete1
d621910a59
AP_AHRS: remove unneeded get_position wrapper
2022-04-26 10:28:28 +10:00
Iampete1
6e3cb7efdc
AP_Scripting: support true aliases
2022-04-26 10:28:28 +10:00
Iampete1
352c48233e
AP_Scripting: generator: rename alias keyword to rename
2022-04-26 10:28:28 +10:00
Iampete1
4fe335c2d0
SITL: tests: only build on sitl
2022-04-26 10:26:29 +10:00
Iampete1
d1aa7aa062
SITL: add battery model evaluation example
2022-04-26 10:26:29 +10:00
Iampete1
1111ca4867
SITL: SIM_Frame: load_frame_params and model to protected, allow USE_PICOJSON override
2022-04-26 10:26:29 +10:00
Iampete1
f0c17f0e49
SITL: use AP_SIM_ENABLED define more
2022-04-26 10:26:29 +10:00
Iampete1
c58404beac
AP_HAL_Linux: allow stop_clock in examples
2022-04-26 10:26:29 +10:00
Iampete1
2d2165936a
AP_InertialSensor: use pitch to guess which axis the user is trying to calibrate, warn about Q_TRIM_PITCH on plane
2022-04-26 10:03:30 +10:00
Iampete1
6c24a5ff37
AP_AHRS: add method to get view
2022-04-26 10:03:30 +10:00
Iampete1
04fdfea74a
AP_AHRS_View: add method to get pitch trim and note on rotation
2022-04-26 10:03:30 +10:00
Randy Mackay
902b895aef
AP_Arming: add pre-arm check of disabled servo channels
2022-04-25 15:55:54 +09:00
Andy Piper
cc6b907a2f
SRV_Channel: observe disabled_channels when enabling channels
...
setup disabled_channels observing channels that are implied to be digital
allow none to be a valid channel function once again
2022-04-25 15:55:54 +09:00
Andy Piper
119cde79a7
AP_HAL_ChibiOS: determine presence of disabled channels based on digital channels in a group
2022-04-25 15:55:54 +09:00
Andy Piper
8ccc84beab
AP_HAL: add accessor for disabled channels to RCOutput
2022-04-25 15:55:54 +09:00
Andy Piper
03aeca22ec
AP_BLHeli: keep a record of disabled motors
2022-04-25 15:55:54 +09:00
Peter Barker
7d10192550
SITL: do not write post locations files unless on HAL_BOARD_SITL
...
Nobody's going to be retrieving these from SD card so they can visualise
things...
2022-04-25 11:20:26 +10:00
Peter Barker
1d96dfe7c1
SITL: exclude method declarations based on USE_PICOJSON
...
Fixes SimOnHardware build
2022-04-25 11:20:26 +10:00
Randy Mackay
bfd168dd4f
AP_RPM: avoid attach interrupt retry and spam to GCS if PIN = -1
2022-04-25 08:59:03 +09:00
Henry Wurzburg
8556edc5ad
AP_RPM: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
93bdae50ab
AP_Relay: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
4a2aeb03f3
AP_RangeFinder: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
a8ff5ca2b9
AP_Notify: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
cc51e9f995
AP_LandingGear: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
1e7fc17af3
AP_Camera: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
958e36f80b
AP_Button: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Henry Wurzburg
9d6f9bf907
AP_AdvancedFailsafe: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Randy Mackay
291d709409
AP_NavEKF: GSF comment typo fix
2022-04-22 15:24:11 +09:00
xianglunkai
c853694f7a
AP_Proximity_Boundary_3D:correction of miswriting
2022-04-21 08:41:07 +09:00
Iampete1
c31e54b5bb
AP_CustomRotations: fix param refrencing
2022-04-20 18:25:57 +10:00
Andy Piper
6355934a36
AP_HAL: add bitwidth hal definitions.
...
revert to original bitwidths for neopixel and profiled
add proper neopixel test that observes spec'ed timings
2022-04-20 17:39:29 +10:00
Andy Piper
df35cb6243
AP_HAL_ChibiOS: move bitwidths to AP_HAL
2022-04-20 17:39:29 +10:00
Andy Piper
89ea5dc12c
AP_RCProtocol: flush CRSF telemety writes
2022-04-20 17:38:08 +10:00
Andy Piper
eaa414bb0c
AP_HAL_ChibiOS: implement pseudo-flushing for buffered UARTS
2022-04-20 17:38:08 +10:00
yuri-rage
eaa62fb490
AP_HAL: remove BRD_PWM_COUNT reference
2022-04-20 07:57:57 +09:00
Andrew Tridgell
e73f868fc0
HAL_ChibiOS: disable fatal exceptions for DMA errors
...
this zeros-watchdog was caused by a SPI DMA error on STM32F405:
https://discuss.ardupilot.org/t/crash-with-4-2-0-beta-and-4-3-0-daily-bdshot/83297
we had incorrectly left these internal errors enabled when asserts
were not enabled. That led to a osalSysHalt()
without these we get an spi_fail internal error, caught by the
SPIDevice code
2022-04-19 21:52:53 +10:00
Andrew Tridgell
ed1a5c086b
AP_Logger: removed annoying message on missing logs
2022-04-19 11:45:26 +10:00
Andrew Tridgell
93b55e367e
AP_Logger: fixed log listing with gap, and EKF error on log list
...
this fixes two issues:
The first issue that if we are missing a log file in the middle of the
list then it was not possible to download recent logs, as we get the
incorrect value for total number of logs. This happened for me with
107 logs, with log62 missing from the microSD. It would only show 45
available logs, so the most recent logs could not be downloaded.
The second issue is that get_num_logs() was very slow if there were a
lot of log files in a directory. This would cause EKF errors and ESC
resets. Using a opendir/readdir loop is much faster (approx 10x faster
in my testing with 107 logs on a MatekH743).
2022-04-19 11:45:26 +10:00
Peter Barker
348f0ad590
SITL: add SIM_SONAR_ROT, use it for measuring horizontal distances
2022-04-19 10:26:10 +10:00
xianglunkai
f7f053191a
AP_Logger: must set default fd = -1
2022-04-19 10:00:32 +10:00
Iampete1
a7abfeeb4a
SITL: allow cutom motor postions and thrust vectors to be specified
2022-04-19 09:43:51 +10:00
Iampete1
c4518e5cb7
SITL: motor: use postion and thrust vector
2022-04-19 09:43:51 +10:00
Iampete1
47f327b500
SITL: allow Vector3f inertia to be set via JSON
2022-04-19 09:43:51 +10:00
Iampete1
6272dc33dd
SITL: move moments inertia to frame property
2022-04-19 09:43:51 +10:00
Iampete1
7936f3bb0a
SITL: move motor related constants to motor object
2022-04-19 09:43:51 +10:00
Andrew Tridgell
db14ba46dc
AP_InertialSensor: call notch param update with semaphore held
2022-04-19 09:39:03 +10:00
Andrew Tridgell
bccca9ed2e
AP_GyroFFT: added defaults for FFT with no notch
...
allow for testing with FFT enabled, and defaulting number of
frequencies to look for
2022-04-19 09:39:03 +10:00
Andrew Tridgell
dff0e5ecc1
AP_InertialSensor: fixed the last notch values to be per-instance
...
thanks to Andy for noticing this
2022-04-19 09:39:03 +10:00
Andrew Tridgell
e0bb717231
AP_GyroFFT: skip disabled notches
2022-04-19 09:39:03 +10:00
Andrew Tridgell
184f84f4ee
AP_InertialSensor: don't update disabled notches
2022-04-19 09:39:03 +10:00
Andrew Tridgell
492e203fd2
AP_GyroFFT: allow for 2 FFT based notches
2022-04-19 09:39:03 +10:00
Andrew Tridgell
301c56d30a
AP_Vehicle: implement common harmonic notch update code
2022-04-19 09:39:03 +10:00
Andrew Tridgell
e6b56ce9ba
AP_RPM: use HarmonicNotch class
2022-04-19 09:39:03 +10:00
Andrew Tridgell
86db91e3b4
AP_GyroFFT: use HarmonicNotch class
2022-04-19 09:39:03 +10:00
Andrew Tridgell
ddab3f02ca
AP_Arming: use HarmonicNotch class
2022-04-19 09:39:03 +10:00
Andrew Tridgell
e2e1e74da5
AP_InertialSensor: switch to HarmonicNotch class
...
this makes the logic much easier to follow, without indexes into
arrays
2022-04-19 09:39:03 +10:00
Andrew Tridgell
d7d04bc7cf
Filter: removed parameters from the old notch filter
...
saves some flash space
2022-04-19 09:39:03 +10:00
Andrew Tridgell
782e4887bc
AP_GyroFFT: only allow one harmonic notch filter to be linked to FFT
2022-04-19 09:39:03 +10:00
Andrew Tridgell
ae1e9e06c1
AP_Arming: added arming check for conflicting notch modes
2022-04-19 09:39:03 +10:00
Andrew Tridgell
1cd1519a4f
Filter: clarify meaning of 1st harmonic
2022-04-19 09:39:03 +10:00
Andrew Tridgell
7272a29b7b
Filter: added RPM2 harmonic notch type
2022-04-19 09:39:03 +10:00
Andrew Tridgell
a2fc4d909d
AP_Vehicle: support two full harmonic notch filters
2022-04-19 09:39:03 +10:00
Andrew Tridgell
ac50d3cc9f
AP_RPM: support two full harmonic notch filters
2022-04-19 09:39:03 +10:00
Andrew Tridgell
e67d9b4179
AP_InertialSensor: support two full harmonic notch filters
2022-04-19 09:39:03 +10:00
Andrew Tridgell
622ad2a088
AP_GyroFFT: support two full harmonic notch filters
2022-04-19 09:39:03 +10:00
Joshua Henderson
7cc2382a78
AP_AHRS_DCM: NFC comment on check_matrix() normalization reset
2022-04-19 09:27:00 +10:00
Randy Mackay
9d73cfb28f
AP_NavEKF: GSF logging in deg from 0 to 360
2022-04-19 08:56:40 +10:00
Peter Barker
55517450bc
AP_Scripting: correct script restart send_text message
2022-04-18 12:50:18 +01:00
Bill Geyer
b8690ba109
AC_AutoTune: fix gain determination fail logic
2022-04-18 18:00:20 +09:00
Bill Geyer
8e35fd2658
AC_AutoTune: use failed state to exit
2022-04-18 18:00:20 +09:00
Bill Geyer
b4059d3745
AC_AutoTune: use generic load gain method to save flash
2022-04-18 18:00:20 +09:00
Walter Dunckel
b0c3fae662
AP_HAL_ChibiOS: add support for NucleoH755 board
...
This addition allows for cheap testing of a STM32H755 (dual core). This borrows the setup file STM32H757xx.py, as there are almost no changes between the chips. CRSF in and out, gps, ICM20948, BMP388, settings saving to on board flash all working.
PWM(3) pin change
Changed PWM(3) pin to one exposed on connector
2022-04-18 14:53:14 +10:00
QioTek
9909499a81
AP_HAL_ChibiOS: ICM4 series sensors as an alternative with IMU3.
...
AP_HAL_ChibiOS: ICM4 series sensors as an alternative with IMU3.
2022-04-18 11:01:14 +10:00
Andrew Tridgell
9f58c73780
hwdef: Added MatekL431-Rangefinder
2022-04-17 17:40:04 +10:00
Peter Barker
bca4fc9608
hwdef: disable serially-attached actuators on SkyViper
2022-04-17 09:10:10 +10:00
Andrew Tridgell
95ae150a21
AP_InertialSensor: catch FIFO overruns on BMI088
...
we have seen errors where the BMI088 gets out of sync, so that the 3
axes are rotated. The data is shifted by 4 bytes, so that X=Z, Y=X
and Z=Y
this changes the BMI088 to "stop on full" mode, which is what Bosch
use in their example drivers, and also catches FIFO overrun events and
triggers a full FIFO reset. This should fix the problem with the FIFO
sync
2022-04-16 19:24:16 +10:00
Andrew Tridgell
973befa5d8
GCS_MAVLink: prevent devop larger than buffer
2022-04-16 19:24:16 +10:00
Andrew Tridgell
4c9a851fc6
SITL: update for changed INS_NOTCH parameter name
2022-04-16 08:14:06 +10:00
Andrew Tridgell
f5c3b56426
AP_HAL_ChibiOS: update for changed INS_NOTCH parameter name
2022-04-16 08:14:06 +10:00
Andrew Tridgell
ab5e8419d8
AP_InertialSensor: move INS_HNTC2 to a new parameter table ID
2022-04-16 08:14:06 +10:00