Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ferruccio 4.2 autorotation #5

Open
wants to merge 420 commits into
base: 4.2_autorotation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
420 commits
Select commit Hold shift + click to select a range
a039500
AP_Logger: increase stack of log_io thread by 256
tridge Mar 31, 2022
eb20c90
Plane: fixed rudder control when ARMING_RUDDER != 2
tridge Apr 2, 2022
da97462
AP_AHRS: subtract accel bias from correct ins accel instance
peterbarker Apr 2, 2022
b3bd0d3
AP_HAL_ChibiOS: spro H7 extreme updates.
andyp1per Mar 27, 2022
a71cdf4
bootloaders: update spracing h7 extreme bootloader
andyp1per Mar 27, 2022
2ad485b
AP_Logger: fixed @SYS file logging
tridge Apr 5, 2022
1f30cf9
AP_Math: added unsigned versions of constrain functions
tridge Apr 3, 2022
ce1fc54
HAL_ChibiOS: prevent long timeouts in DShot
tridge Apr 2, 2022
0c2041d
HAL_ChibiOS: constrain more timer timeouts
tridge Apr 3, 2022
8d4130e
Revert "hwdef: changed MatekH743 to a 32 bit timer"
tridge Apr 4, 2022
86f7365
HAL_ChibiOS: disable interrupts during flash operations
tridge Apr 4, 2022
a03b9ec
HAL_ChibiOS: added expected delays on flash writes
tridge Apr 4, 2022
0a3ca20
HAL_ChibiOS: increase monitor thread stack by 512
tridge Apr 4, 2022
e1c74ee
HAL_ChibiOS: use 16 byte lines for flash storage on H7
tridge Apr 4, 2022
e50f893
HAL_ChibiOS: fixed H7 flash storage
tridge Apr 4, 2022
f8c3b4b
HAL_ChibiOS: incorrect class of class in uart TX timeout
tridge Apr 4, 2022
0e78bdb
AP_HAL_ChibiOS: fix dshot timeout bug where the elapsed pulse is long…
andyp1per Apr 6, 2022
f497e86
AP_HAL_ChibiOS: CUAV-Nora: add usart3 support
mxiaogit Mar 30, 2022
ce53219
Plane: release notes for 4.2.0beta5
tridge Apr 5, 2022
35fbea9
Plane: prepare for 4.2.0beta5
tridge Apr 7, 2022
c3e4394
Copter: 4.2.0-rc1 release notes
rmackay9 Apr 9, 2022
dd9d840
Copter: version to 4.2.0-rc1
rmackay9 Apr 9, 2022
712709f
Rover: 4.2.0-rc1 release notes
rmackay9 Apr 9, 2022
be3057e
Rover: version to 4.2.0-rc1
rmackay9 Apr 9, 2022
48c33dc
autotest: fixed annoying gdb pagination on reboot
tridge Apr 7, 2022
07d0336
AP_InertialSensor: catch FIFO overruns on BMI088
tridge Apr 2, 2022
9e45882
Plane: do not use guided waypoint for loiter location
peterbarker Aug 16, 2020
41f56d8
HAL_ChibiOS: disable fatal exceptions for DMA errors
tridge Apr 19, 2022
eb60f29
AC_AttitudeControl: added an option for pitch weathervaning
tridge Apr 11, 2022
946c719
AC_AttitudeControl: use deadzone for pitch
tridge Apr 11, 2022
7b7eea4
AP_Scripting: increase default heap size in SITL and on F7/H7
tridge Apr 11, 2022
d51dd75
AP_HAL_ChibiOS:add icm42688p as substitution
MATEKSYS Apr 9, 2022
d56c6b6
AP_HAL_ChibiOS: ICM4 series sensors as an alternative with IMU3.
QioTek Apr 17, 2022
b06ee3f
AP_InertialSensor: move INS_HNTC2 to a new parameter table ID
tridge Apr 15, 2022
55ff12b
Copter: param conversion for INS_NOTCH to INS_HNTC2
tridge Apr 15, 2022
6a3c36b
Plane: param conversion for INS_NOTCH to INS_HNTC2
tridge Apr 13, 2022
053e9d7
AP_HAL_ChibiOS: update for changed INS_NOTCH parameter name
tridge Apr 13, 2022
a9556cc
Tools: update for changed INS_NOTCH parameter name
tridge Apr 13, 2022
e7ceb35
SITL: update for changed INS_NOTCH parameter name
tridge Apr 13, 2022
71cc0dc
Plane: add Q_OPTION for RTL always on RC failsafe for ship landing
tridge Apr 25, 2022
ec2a335
Plane: Updated highest airspeed limit when armed
snktshrma Apr 17, 2022
be633c6
AP_Logger: must set default fd = -1
xianglunkai Apr 15, 2022
0e0e09e
AP_Logger: fixed log listing with gap, and EKF error on log list
tridge Apr 18, 2022
ceecc2b
AP_Logger: removed annoying message on missing logs
tridge Apr 18, 2022
3600f20
Tools: fix cygwin build error
tridge Apr 13, 2022
2fb92d0
AP_Proximity_Boundary_3D:correction of miswriting
xianglunkai Apr 20, 2022
82f4fb2
AP_RPM: avoid attach interrupt retry and spam to GCS if PIN = -1
rmackay9 Apr 19, 2022
34c0a05
AP_IOMCU: convert_pin_number leaves input untouched on failure
rmackay9 Apr 21, 2022
a52f45d
AP_IOMCU: valid_GPIO_pin checks if pin configured for GPIO
rmackay9 Apr 21, 2022
343115a
AP_HAL_ChibiOS: GPIO comment removes mention of BRD_PWM_COUNT
rmackay9 Apr 21, 2022
f3db67b
AP_HAL: add GPIO::pin_to_servo_channel method
rmackay9 Apr 19, 2022
1444545
AP_Button: pre-arm displays gpio vs servo_ch conflict
rmackay9 Apr 19, 2022
b366689
AP_Relay: pre-arm displays gpio vs servo_ch conflict
rmackay9 Apr 19, 2022
a7d8982
AP_RPM: pre-arm displays gpio vs servo_ch conflict
rmackay9 Apr 19, 2022
7552219
AP_HAL: update prescaler tests
andyp1per Mar 8, 2022
33c9ffd
AP_HAL_ChibiOS: use narrower bitwidths for dshot and LEDs to allow mo…
andyp1per Mar 8, 2022
cfb8830
AP_HAL_ChibiOS: bdshot version of MatekF765-Wing
andyp1per Apr 6, 2022
eda50a9
bootloaders: MatekF765-Wing-bdshot bootloader
andyp1per Apr 6, 2022
de0a368
AC_AutoTune: use generic load gain method to save flash
bnsgeyer Mar 31, 2022
fa28fed
AC_AutoTune: use failed state to exit
bnsgeyer Apr 10, 2022
fd7b713
AC_AutoTune: fix gain determination fail logic
bnsgeyer Apr 14, 2022
9549d2d
Copter: properly set feedforward enabled before exit
bnsgeyer Apr 6, 2022
a673a48
AP_BLHeli: keep a record of disabled motors
andyp1per Apr 19, 2022
007174d
AP_HAL: add accessor for disabled channels to RCOutput
andyp1per Apr 19, 2022
ff5a813
AP_HAL_ChibiOS: determine presence of disabled channels based on digi…
andyp1per Apr 19, 2022
bafab0f
SRV_Channel: observe disabled_channels when enabling channels
andyp1per Apr 19, 2022
a3d595f
AP_Arming: add pre-arm check of disabled servo channels
rmackay9 Apr 20, 2022
e67aadf
Tools: iFlight Chimera 7 parameters
andyp1per Apr 26, 2022
9300ab8
AP_HAL_ChibiOS: add I2C and compass backend to drivers in memory on H750
andyp1per Mar 31, 2022
bad1fb3
AP_Bootloader: change timeout on external flash init
andyp1per Mar 31, 2022
2169874
AP_FlashIface: make sure XIP flash is ready before returning
andyp1per Mar 31, 2022
05c90c4
AP_InertialSensor: move frontend update into ramfunc.
andyp1per Apr 1, 2022
e977092
Plane: release notes for plane 4.2.0beta6
tridge Apr 28, 2022
279e457
Plane: prepare for 4.2.0beta6
tridge Apr 28, 2022
48a0820
Copter: 4.2.0-rc2 release notes
rmackay9 Apr 28, 2022
d56cc46
Copter: version to 4.2.0-rc2
rmackay9 Apr 28, 2022
90ea6c9
Rover: 4.2.0-rc2 release notes
rmackay9 Apr 28, 2022
5367833
Rover: version to 4.2.0-rc2
rmackay9 Apr 28, 2022
3c6e4d9
AP_Compass: fixed custom orientation in 3 compass drivers
tridge May 1, 2022
9f49570
AC_AttitudeControl: added get_rpy_srate()
tridge Apr 26, 2022
58cdcf6
AP_Scripting: added get_rpy_srate binding
tridge Apr 26, 2022
fc999ed
AP_Scripting: added quicktune.lua script
tridge Apr 30, 2022
6332d59
AP_AHRS: fixed bug in blended EKF bias
tridge May 3, 2022
f51f987
Plane: release notes for 4.2.0
tridge May 3, 2022
23f3a3d
Plane: prepare for 4.2.0 stable release
tridge May 3, 2022
3369bb7
Copter: 4.2.0-rc3 release notes
rmackay9 May 6, 2022
52a050a
Copter: version to 4.2.0-rc3
rmackay9 May 6, 2022
641c5c2
Rover: 4.2.0-rc3 release notes
rmackay9 May 6, 2022
f1add64
Rover: version to 4.2.0-rc3
rmackay9 May 6, 2022
bcc548b
AP_Logger: fixed a bug in wrapped log count
tridge May 5, 2022
ed18123
HAL_ChibiOS: fixed RSSI from IOMCU analog pin 103
tridge May 8, 2022
be023c5
Tools: added FlyingMoon407 bootloader
tridge Apr 18, 2022
707bc95
hwdef: added FlyingMoonF407 board support
tridge Apr 18, 2022
10da073
Tools: added FlyingMoonF427 bootloader
tridge Apr 18, 2022
6b790ea
hwdef: added FlyingMoonF427 support
tridge Apr 18, 2022
4fded65
Copter: vibration compensation turns off in manual modes
rmackay9 Apr 27, 2022
4ae97ce
Copter: fix position ctrl init for guided takeof
bnsgeyer May 14, 2022
0b4b5e4
AC_AttitudeControl: Allow diabling of slew limit
lthall May 14, 2022
c59f626
Copter: Dissable yaw slew in loiter
lthall May 14, 2022
ff7e385
Copter: 4.2.0-rc4 release notes
rmackay9 May 14, 2022
14b6353
Copter: version to 4.2.0-rc4
rmackay9 May 14, 2022
4875a65
Rover: 4.2.0-rc4 release notes
rmackay9 May 14, 2022
fdadbdc
Rover: version to 4.2.0-rc4
rmackay9 May 14, 2022
132f97b
Copter: 4.2.0 release notes
rmackay9 May 23, 2022
5841922
Copter: version to 4.2.0
rmackay9 May 23, 2022
a02a23e
Rover: 4.2.0 release notes
rmackay9 May 23, 2022
6789216
Rover: version to 4.2.0
rmackay9 May 23, 2022
57aaaa2
Plane: update gyro fft throttle
tridge May 9, 2022
7a2d483
AP_Airspeed: remove negative pressure set unhealthy
hendjoshsr71 May 9, 2022
6bf9556
AP_Mission: improved handling of large LOITER_TURNS
tridge May 10, 2022
4aaa0ce
autotest: reset mission on takeoff for quadplanes
tridge May 14, 2022
1e82319
AP_EFI: added fuel usage integration for Lutan EFI
tridge May 14, 2022
ee8ae2e
Plane: refuse arming if we are in a landing sequence
tridge May 14, 2022
066fed1
Plane: account for sprung throttle in VTOL throttle suppression
tridge May 14, 2022
77f98b4
autotest: reset mission on takeoff for quadplanes
tridge May 14, 2022
7a7d7f9
autotest: adjust current wp reset
peterbarker May 14, 2022
5f39602
AP_Compass: do not use GSF if any model has been clipped
peterbarker May 10, 2022
4e6f0c0
AP_NavEKF: getYawData also provides number of clipping models
tridge May 16, 2022
8066478
AP_Airspeed: fixed airspeed cal on 2nd airspeed sensor
tridge May 16, 2022
e02e0d7
Plane: increased safety of guided -> auto quadplane takeoff
tridge May 16, 2022
2f73ce4
AP_Mission: allow NAV_VTOL_TAKEOFF in is_takoff_next()
tridge May 16, 2022
aa873ad
AP_Vehicle: added QLAND_INSTEAD_OF_RTL mode reason
tridge May 16, 2022
aa59e0a
AP_Mission: support *10 multipler when storing/retrieving radius in N…
peterbarker May 11, 2022
cbe9a24
ArduPlane: support *10 multipler when storing/retrieving radius in NA…
peterbarker May 11, 2022
202b013
ArduCopter: support *10 multipler when storing/retrieving radius in N…
peterbarker May 11, 2022
6634b09
ArduSub: support *10 multipler when storing/retrieving radius in NAV_…
peterbarker May 11, 2022
009f3e9
Copter: allow VTOL_TAKEOFF and VTOL_LAND as synonyms
tridge May 16, 2022
4adb3dd
AP_UAVCAN: added CAN_Dx_UC_ESC_OF parameter
tridge May 18, 2022
9e992aa
autotest: don't try to arm in RTL mode for quadplanes
tridge May 17, 2022
50267e2
Plane: cope with QGC retrying AUTO mode
tridge May 18, 2022
2db1350
Plane: update release notes for 4.2.1beta1
tridge May 19, 2022
b5f9ccb
Plane: prepare for 4.2.1beta1
tridge May 19, 2022
49af52b
HAL_ChibiOS: always start with safety enabled
tridge May 21, 2022
0bfe567
AP_BoardConfig: expose BRD_SAFETYENABLE on all boards
tridge May 21, 2022
e5d379c
Plane: fixed false positive in landing detector
tridge May 22, 2022
4d8cb8b
Plane: release notes for 4.2.1
tridge May 22, 2022
5460d7c
Plane: prepare for 4.2.1 release
tridge May 23, 2022
19d9f15
AP_HAL_ChibiOS: move bitwidths to AP_HAL
andyp1per Apr 2, 2022
292291b
AP_HAL: add bitwidth hal definitions.
andyp1per Apr 2, 2022
ece793e
AC_AutoTune: allow high ANGLE_P gains
andyp1per Apr 26, 2022
8a5e7ff
AP_NavEKF3: replace AP_HAL::millis() with dal.millis()
rmackay9 May 17, 2022
4eedb2e
AP_InertialSensor: extend ENABLE_MASK param desc IMUs 4 to 7
rmackay9 May 18, 2022
a436ca3
Copter: Do not allow automatic yaw while prec land retry
rishabsingh3003 May 19, 2022
34cb45a
AP_HAL: add BLHeli_S ESC type and use it to control bitwidths
andyp1per May 19, 2022
a3e79c8
AP_HAL_ChibiOS: add BLHeli_S ESC type and use it to control bitwidths
andyp1per May 23, 2022
7d00167
SRV_Channel: add BLHeli_S ESC type
andyp1per May 23, 2022
7dcdf7b
AP_Motors: make sure ESC type is initialized early
andyp1per May 23, 2022
8cd79d0
AR_Motors: make sure ESC type is initialized early
andyp1per May 23, 2022
457d893
Copter: 4.2.1-rc1 release notes
rmackay9 May 28, 2022
859bbd2
Copter: version to 4.2.1-rc1
rmackay9 May 28, 2022
96aeac4
Rover: 4.2.1-rc1 release notes
rmackay9 May 28, 2022
5761aa1
Rover: version to 4.2.1-rc1
rmackay9 May 28, 2022
6b2c49e
Copter: 4.2.1 release notes
rmackay9 Jun 6, 2022
747ffc8
Copter: version to 4.2.1
rmackay9 Jun 6, 2022
62e7940
Rover: 4.2.1 release notes
rmackay9 Jun 6, 2022
c8b6b67
Rover: version to 4.2.1
rmackay9 Jun 6, 2022
350140e
AP_InertialSensor: support two full harmonic notch filters
tridge Apr 13, 2022
7246185
AP_RPM: support two full harmonic notch filters
tridge Apr 13, 2022
49bf168
AP_Vehicle: support two full harmonic notch filters
tridge Apr 13, 2022
027f924
Copter: support two full harmonic notch filters
tridge Apr 13, 2022
800c21f
Plane: support two full harmonic notch filters
tridge Apr 13, 2022
9741a0b
Copter: update for changed INS_NOTCH parameter name
tridge Apr 13, 2022
2cfce1e
Filter: added RPM2 harmonic notch type
tridge Apr 13, 2022
81ed859
Copter: support harmonic notch on 2nd RPM sensor
tridge Apr 13, 2022
fd00fef
Plane: support harmonic notch on 2nd RPM sensor
tridge Apr 13, 2022
b6e4cfc
Filter: clarify meaning of 1st harmonic
tridge Apr 13, 2022
13df45a
Plane: param conversion for INS_NOTCH to INS_HNTC2
tridge Apr 13, 2022
f015e82
AP_Arming: added arming check for conflicting notch modes
tridge Apr 13, 2022
6c61ea9
AP_GyroFFT: only allow one harmonic notch filter to be linked to FFT
tridge Apr 13, 2022
d48e048
Filter: removed parameters from the old notch filter
tridge Apr 13, 2022
7bb139a
AP_InertialSensor: switch to HarmonicNotch class
tridge Apr 15, 2022
699d624
AP_Arming: use HarmonicNotch class
tridge Apr 15, 2022
3ebab76
AP_GyroFFT: use HarmonicNotch class
tridge Apr 15, 2022
10a273a
AP_RPM: use HarmonicNotch class
tridge Apr 15, 2022
39e39fa
Copter: moved harmonic notch update code to AP_Vehicle
tridge Apr 15, 2022
6201115
Plane: moved harmonic notch update code to AP_Vehicle
tridge Apr 15, 2022
e4c1f30
AP_Vehicle: implement common harmonic notch update code
tridge Apr 15, 2022
5949abb
AP_GyroFFT: allow for 2 FFT based notches
tridge Apr 15, 2022
afe0c02
AP_InertialSensor: don't update disabled notches
tridge Apr 16, 2022
a0746ec
AP_GyroFFT: skip disabled notches
tridge Apr 16, 2022
70443b1
AP_InertialSensor: fixed the last notch values to be per-instance
tridge Apr 17, 2022
005de1d
AP_GyroFFT: added defaults for FFT with no notch
tridge Apr 17, 2022
be7f0af
AP_InertialSensor: call notch param update with semaphore held
tridge Apr 17, 2022
f3d08c8
AC_AttitudeControl: reduce alt hold min lean angle to 5deg on plane
IamPete1 May 25, 2022
8939974
AP_DAL: added set source events for EKF3
tridge May 27, 2022
83d78b6
AP_NavEKF3: log set source events
tridge May 27, 2022
0a7236f
Replay: support set source events
tridge May 27, 2022
937f0a3
AP_Filesystem: correct run-length encoding in param download
peterbarker May 2, 2022
9da7d6a
Plane: adjust down default quadplane gains
tridge May 31, 2022
06170c7
AC_AttitudeControl: reduced default quadplane VTOL pos XY gains
tridge Jun 16, 2022
7c0a442
Plane: Quadplane: force convertions of Q_M_PMW_* params if invalid an…
IamPete1 Jun 2, 2022
4a637ef
Plane: added Q_NAVALT_MIN
tridge May 24, 2022
8ac0811
AP_UAVCAN: added dynamically allocated pool size param
tridge Jun 16, 2022
fbb3271
AP_UAVCAN: added a check for memory corruption in the pool
tridge Jun 3, 2022
42b6479
AP_Logger: save crash_dump.bin to sdcard on boot
tridge Jun 5, 2022
d83a56b
AP_Logger: don't compiler AP_Logger.cpp if logging not enabled
tridge Jun 5, 2022
d023e1c
AP_GPS: fixed build without logging
tridge Jun 5, 2022
e3aa707
AP_BoardConfig: fixed build with logging disabled
tridge Jun 5, 2022
ee66946
AP_InertialSensor: fixed build with logging disabled
tridge Jun 5, 2022
fb0b328
AP_Rangefinder: fixed scaling on PWM driver and enable SCALING parameter
tridge Jun 16, 2022
c62adb0
AP_OSD: update parameter menu flightmodes for plane and copter.
andyp1per May 21, 2022
dcae70a
AP_Rangefinder: preserve new address
HefnySco Apr 25, 2022
159b50c
AP_RCProtocol: check for bad frames in CRSF decoding.
andyp1per Jun 6, 2022
7509cc5
AP_RCProtocol: reset UART on RX failure for CRSF
andyp1per Jan 15, 2022
da04fdd
AP_RCTelemetry: don't spam mode changes on CRSF startup
andyp1per Jan 15, 2022
ee5788b
bootloaders: add MambaH743v4 bootloader
andyp1per May 30, 2022
ec7381f
AP_Bootloader: add MambaH743v4 board id
andyp1per May 30, 2022
ae6872c
AP_Logger: support W25N01GV flash chips
andyp1per May 30, 2022
90e8bdb
AP_InertialSensor: don't print error when probing non-existant BMI270
andyp1per Jun 4, 2022
22687bd
AP_HAL_ChibiOS: hwdef for MambaH743v4
andyp1per Jun 4, 2022
c7c599b
Tools: add MambaH743 to manifest generator
andyp1per Jun 7, 2022
9c02682
AP_HAL_ChibiOS: add support for MambaF405 2022 MK4
andyp1per Jun 8, 2022
557dec5
Tools: add MambaF405 2022 MK4
andyp1per Jun 8, 2022
298bc2b
bootloaders: add MambaF405-2022 bootloaders
andyp1per Jun 8, 2022
82eef70
AP_Arming: make sure FFT gets initialized when arming checks are off
andyp1per Jun 6, 2022
54e6aa7
AP_GyroFFT: make sure the parameters are updated at least once on sta…
andyp1per Jun 8, 2022
9535e3d
AP_Scripting: sync quicktune with master
tridge Jun 16, 2022
2065de7
GCS_MAVLink: learn routes even on private channels
rmackay9 Jun 3, 2022
9f33096
Plane: prepare for 4.2.2beta1
tridge Jun 16, 2022
a2172d5
Plane: prepare for 4.2.2beta1
tridge Jun 17, 2022
24724ff
Copter: avoid ascend beyond fence's max alt in circle mode
shiv-tyagi Jun 12, 2022
fe88889
Copter: remove param docs for ACRO_RP_P and _YAW_RP
hendjoshsr71 Jun 15, 2022
904be11
AC_AutoTune: fix tradheli bug with load gain set
bnsgeyer Jun 18, 2022
0af26aa
Copter: 4.2.2-rc1 release notes
rmackay9 Jun 21, 2022
14f0dd5
Copter: version to 4.2.2-rc1
rmackay9 Jun 21, 2022
b9bca88
Rover: 4.2.2-rc1 release notes
rmackay9 Jun 21, 2022
e762380
Rover: version to 4.2.2-rc1
rmackay9 Jun 21, 2022
cfd6ab0
Copter: 4.2.2 release notes
rmackay9 Jun 27, 2022
1496b89
Copter: version to 4.2.2
rmackay9 Jun 27, 2022
42138f5
Rover: 4.2.2 release notes
rmackay9 Jun 27, 2022
9610a57
Rover: version to 4.2.2
rmackay9 Jun 27, 2022
5aadde9
Copter: release notes for 4.2.2-rc2
rmackay9 Jul 4, 2022
582b531
Copter: version to 4.2.2-rc2
rmackay9 Jul 4, 2022
2e9d723
Copter: 4.2.2-attempt2 release notes
rmackay9 Jul 18, 2022
4fcfa4b
Copter: version to 4.2.2
rmackay9 Jul 18, 2022
eec1f02
Copter: Implementation of autorotation condition at RSC level
Ferruccio1984 Mar 24, 2022
3b9b3ec
AC_Autorotation: Autorotation implementation
Ferruccio1984 Mar 24, 2022
6018785
AC_Autorotation: Added touchdown timer for disarm after landing
Ferruccio1984 Mar 30, 2022
3979678
AC_Autorotation: fix rebase errors
bnsgeyer Apr 24, 2022
6223616
AC_Autorotation: add entry values functions for touchdown
Ferruccio1984 Apr 27, 2022
42ca185
AC_Autorotation: fix parameter XML
bnsgeyer Apr 28, 2022
4b18313
AC_Autorotation: clean up Params
bnsgeyer Apr 28, 2022
48c22a2
AC_Autorotation: improved handling of touchdown phase
Ferruccio1984 May 6, 2022
52d3de0
AC_Autorotation: use rangefinder for flare altitude estimate
Ferruccio1984 Jun 11, 2022
9976d00
AC_Autorotation: retrieve collective zero-lift position (col_mid)
Ferruccio1984 Aug 2, 2022
576d892
AC_Autorotation: use of ground clearance parameter for touchdown phase
bnsgeyer Jan 17, 2023
4a497f1
AC_Autorotation: flare controller final altitude depends on sink rate
Ferruccio1984 Aug 2, 2022
6508832
AP_Motors: Support for Autorotation implementation
Ferruccio1984 Mar 24, 2022
c0888fb
Copter: Autorotation implementation
Ferruccio1984 Mar 24, 2022
d8c82d1
Copter: changes for mode_autorotation
Ferruccio1984 May 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
180 changes: 0 additions & 180 deletions .github/workflows/test_size.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ArduCopter/Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const AP_Scheduler::Task Copter::scheduler_tasks[] = {
SCHED_TASK(auto_disarm_check, 10, 50, 27),
SCHED_TASK(auto_trim, 10, 75, 30),
#if RANGEFINDER_ENABLED == ENABLED
SCHED_TASK(read_rangefinder, 20, 100, 33),
SCHED_TASK(read_rangefinder, 100, 100, 33),
#endif
#if HAL_PROXIMITY_ENABLED
SCHED_TASK_CLASS(AP_Proximity, &copter.g2.proximity, update, 200, 50, 36),
Expand Down
5 changes: 1 addition & 4 deletions ArduCopter/Copter.h
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,8 @@ class Copter : public AP_Vehicle {
float get_pilot_desired_rotor_speed() const;
void heli_update_rotor_speed_targets();
void heli_update_autorotation();
#if MODE_AUTOROTATE_ENABLED == ENABLED
void heli_set_autorotation(bool autotrotation);
#endif
void update_collective_low_flag(int16_t throttle_control);

// inertia.cpp
void read_inertia();

Expand Down Expand Up @@ -879,7 +877,6 @@ class Copter : public AP_Vehicle {
// system.cpp
void init_ardupilot() override;
void startup_INS_ground();
void update_dynamic_notch() override;
bool position_ok() const;
bool ekf_has_absolute_position() const;
bool ekf_has_relative_position() const;
Expand Down
43 changes: 21 additions & 22 deletions ArduCopter/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
{
switch(packet.command) {

case MAV_CMD_NAV_VTOL_TAKEOFF:
case MAV_CMD_NAV_TAKEOFF: {
// param3 : horizontal navigation by pilot acceptable
// param4 : yaw angle (not supported)
Expand Down Expand Up @@ -778,6 +779,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
}
return MAV_RESULT_ACCEPTED;

case MAV_CMD_NAV_VTOL_LAND:
case MAV_CMD_NAV_LAND:
if (!copter.set_mode(Mode::Number::LAND, ModeReason::GCS_COMMAND)) {
return MAV_RESULT_FAILED;
Expand Down Expand Up @@ -995,30 +997,24 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_

MAV_RESULT GCS_MAVLINK_Copter::handle_command_pause_continue(const mavlink_command_int_t &packet)
{
#if MODE_AUTO_ENABLED
if (copter.flightmode->mode_number() != Mode::Number::AUTO) {
// only supported in AUTO mode
// requested pause
if ((uint8_t) packet.param1 == 0) {
if (copter.flightmode->pause()) {
return MAV_RESULT_ACCEPTED;
}
send_text(MAV_SEVERITY_INFO, "Failed to pause");
return MAV_RESULT_FAILED;
}

// requested pause from GCS
if ((int8_t) packet.param1 == 0) {
copter.mode_auto.mission.stop();
copter.mode_auto.loiter_start();
gcs().send_text(MAV_SEVERITY_INFO, "Paused mission");
return MAV_RESULT_ACCEPTED;
}

// requested resume from GCS
if ((int8_t) packet.param1 == 1) {
copter.mode_auto.mission.resume();
gcs().send_text(MAV_SEVERITY_INFO, "Resumed mission");
return MAV_RESULT_ACCEPTED;
// requested resume
if ((uint8_t) packet.param1 == 1) {
if (copter.flightmode->resume()) {
return MAV_RESULT_ACCEPTED;
}
send_text(MAV_SEVERITY_INFO, "Failed to resume");
return MAV_RESULT_FAILED;
}
#endif

// fail pause or continue
return MAV_RESULT_FAILED;
return MAV_RESULT_DENIED;
}

void GCS_MAVLINK_Copter::handle_mount_message(const mavlink_message_t &msg)
Expand Down Expand Up @@ -1097,7 +1093,7 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)
break;
}

#if MODE_GUIDED_ENABLED == ENABLED
#if MODE_GUIDED_ENABLED == ENABLED || MODE_AUTOROTATE_ENABLED == ENABLED
case MAVLINK_MSG_ID_SET_ATTITUDE_TARGET: // MAV ID: 82
{
// decode packet
Expand Down Expand Up @@ -1169,7 +1165,10 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)

copter.mode_guided.set_angle(attitude_quat, ang_vel,
climb_rate_or_thrust, use_thrust);

#if MODE_AUTOROTATE_ENABLED == ENABLED
copter.mode_autorotate.set_roll_angle(attitude_quat, ang_vel,
climb_rate_or_thrust, use_thrust);
#endif
break;
}

Expand Down
38 changes: 17 additions & 21 deletions ArduCopter/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,18 +425,6 @@ const AP_Param::Info Copter::var_info[] = {
// @User: Advanced
GSCALAR(rc_speed, "RC_SPEED", RC_FAST_SPEED),

// @Param: ACRO_RP_P
// @DisplayName: Acro Roll and Pitch P gain
// @Description: Converts pilot roll and pitch into a desired rate of rotation in ACRO and SPORT mode. Higher values mean faster rate of rotation.
// @Range: 1 10
// @User: Standard

// @Param: ACRO_YAW_P
// @DisplayName: Acro Yaw P gain
// @Description: Converts pilot yaw input into a desired rate of rotation. Higher values mean faster rate of rotation.
// @Range: 1 10
// @User: Standard

#if MODE_ACRO_ENABLED == ENABLED || MODE_SPORT_ENABLED == ENABLED
// @Param: ACRO_BAL_ROLL
// @DisplayName: Acro Balance Roll
Expand Down Expand Up @@ -1147,7 +1135,7 @@ ParametersG2::ParametersG2(void)
,mode_systemid_ptr(&copter.mode_systemid)
#endif
#if MODE_AUTOROTATE_ENABLED == ENABLED
,arot()
,arot(copter.inertial_nav)
#endif
#if HAL_BUTTON_ENABLED
,button_ptr(&copter.button)
Expand Down Expand Up @@ -1387,15 +1375,23 @@ void Copter::convert_pid_parameters(void)
AP_Param::convert_old_parameters(&ff_and_filt_conversion_info[i], 1.0f);
}

// notch filter parameter conversions (changed position and type) for Copter-3.7
const AP_Param::ConversionInfo notchfilt_conversion_info[] = {
{ Parameters::k_param_ins, 165, AP_PARAM_INT16, "INS_NOTCH_FREQ" },
{ Parameters::k_param_ins, 229, AP_PARAM_INT16, "INS_NOTCH_BW" },
};
uint8_t notchfilt_table_size = ARRAY_SIZE(notchfilt_conversion_info);
for (uint8_t i=0; i<notchfilt_table_size; i++) {
AP_Param::convert_old_parameters(&notchfilt_conversion_info[i], 1.0f);
#if HAL_INS_NUM_HARMONIC_NOTCH_FILTERS > 1
if (!ins.harmonic_notches[1].params.enabled()) {
// notch filter parameter conversions (moved to INS_HNTC2) for 4.2.x, converted from fixed notch
const AP_Param::ConversionInfo notchfilt_conversion_info[] {
{ Parameters::k_param_ins, 101, AP_PARAM_INT8, "INS_HNTC2_ENABLE" },
{ Parameters::k_param_ins, 293, AP_PARAM_FLOAT, "INS_HNTC2_ATT" },
{ Parameters::k_param_ins, 357, AP_PARAM_FLOAT, "INS_HNTC2_FREQ" },
{ Parameters::k_param_ins, 421, AP_PARAM_FLOAT, "INS_HNTC2_BW" },
};
uint8_t notchfilt_table_size = ARRAY_SIZE(notchfilt_conversion_info);
for (uint8_t i=0; i<notchfilt_table_size; i++) {
AP_Param::convert_old_parameters(&notchfilt_conversion_info[i], 1.0f);
}
AP_Param::set_default_by_name("INS_HNTC2_MODE", 0);
AP_Param::set_default_by_name("INS_HNTC2_HMNCS", 1);
}
#endif

// ACRO_RP_P and ACRO_Y_P replaced with ACRO_RP_RATE and ACRO_Y_RATE for Copter-4.2
const AP_Param::ConversionInfo acro_rpy_conversion_info[] = {
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class Parameters {
k_param_pid_accel_z, // remove
k_param_acro_balance_roll,
k_param_acro_balance_pitch,
k_param_acro_yaw_p,
k_param_acro_yaw_p, // remove
k_param_autotune_axis_bitmask, // remove
k_param_autotune_aggressiveness, // remove
k_param_pi_vel_xy, // remove
Expand Down
Loading