Commit Graph

44286 Commits

Author SHA1 Message Date
Randy Mackay 63a21c6c12 AP_Proximity: add correct_angle_for_orientation to backend 2020-10-06 20:52:29 +11:00
Randy Mackay cf020e1d84 AP_Proximity: minor spelling fix for SF40c assert 2020-10-06 20:52:29 +11:00
Randy Mackay 5d31a443b6 Copter: update 4.0.5-rc1 release notes 2020-10-06 16:43:13 +09:00
Randy Mackay 8753d3cf8d Copter: 4.0.5-rc1 release notes 2020-10-06 16:43:10 +09:00
Andrew Tridgell e995a198bd AP_GPS: always send GPS2_RAW if 2nd GPS configured
this improves the display on the GCS when the GPS has not yet been
found. This is particularly important after a reboot, as otherwise the
GCS may display stale information from the previous boot
2020-10-06 16:48:19 +11:00
Randy Mackay 92f34a19d3 Plane: integrate parachute check_sink_rate
this was previously part of the update function.  It can be run before or after the update
2020-10-06 16:14:59 +11:00
Randy Mackay e2d41a3e04 Copter: integrate parachute check_sink_rate
also move set_is_flying into check parachute to increase it's update rate
2020-10-06 16:14:59 +11:00
Randy Mackay 4b7709f11d AP_Parachute: move sink rate check to new method
also remove unused critical_sink accessor
2020-10-06 16:14:59 +11:00
Randy Mackay 17d4e797fb AP_Parachute: formatting fixes 2020-10-06 16:14:59 +11:00
Andrew Tridgell dbf6f6f4b1 Copter: fixed parachute checks for sink rate
ensure is_flying is set, setup sink rate at the right position, force
disarm if chute releases
2020-10-06 16:14:59 +11:00
Michael du Breuil b04844ca13 AP_Logger: Log all vibration instances 2020-10-06 14:20:49 +11:00
Peter Barker 04633d7e1c autotest: if MODE_AUTO is disabled then we also need to disabled AFS 2020-10-06 11:25:09 +11:00
Peter Barker c86ee44264 Copter: correct compilation when AFS enabled 2020-10-06 11:25:09 +11:00
Peter Barker 4136397810 Copter: correct compilation when CIRCLE mode is disabled 2020-10-06 11:25:09 +11:00
Peter Barker af53f9ce64 Copter: correct compilation when AUTO/RTL are disabled 2020-10-06 11:25:09 +11:00
Peter Barker 2783257aa4 Plane: correct compilation when logging disabled 2020-10-06 11:25:09 +11:00
Peter Barker 1ea3ca768c Sub: correct compilation when logging disabled 2020-10-06 11:25:09 +11:00
Randy Mackay 835e6fc764 AP_VisualOdom: T265 ignores position and speed for 1sec after reset 2020-10-06 09:18:04 +09:00
Randy Mackay d9b90bf19f AP_Logger: VISP and VISV get ignored field 2020-10-06 09:18:04 +09:00
Peter Barker 8e8b396afe Tools: improve decode-ICSR formatting 2020-10-06 10:30:14 +11:00
Andrew Tridgell 8e08d93026 AP_GPS: fixed pre-arm check on ublox M9 GPS
this prevents a failure from config of SOL and TMODE messages
2020-10-06 10:22:52 +11:00
vierfuffzig 60b37f395e AP_OSD_Screen.cpp: add decimal precision to vspd 2020-10-06 10:17:43 +11:00
Tom Pittenger 5e2450c4ea AP_Math: fix LoadUint() to allow 32bit values 2020-10-05 15:32:53 -07:00
Patrick José Pereira e4f8d47423 AP_LeakDetector: AP_LeakDetector_Digital: Improve status logic
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-10-05 16:39:03 +01:00
Tatsuya Yamaguchi ea0d869a9c RC_Channels: redefine surface tracking auxiliary function 2020-10-05 13:23:51 +09:00
Andrew Tridgell ad41098beb Tools: added bootloader for QuiTekZealot 2020-10-05 07:41:06 +11:00
QioTek 86100d6316 Tools: add auto build for QioTekZealotF427 2020-10-05 07:41:06 +11:00
QioTek f04de7d610 HAL_ChibiOS: Add QioTekZealotF427 build target
I've added the hwdef to support the QioTekZealotF427

It has 3 IMU sensors(ICM20698,ICM20602,BMI055), a Compass(Ist8310),
2Baro sensors(DSP310,MS5611), an integrated analog OSD, 14motor
outputs, 4Relay output, 5uarts, 2Power Module input, an i2c, a Can.
2020-10-05 07:41:06 +11:00
Andrew Tridgell 11b3c622dd AP_BoardConfig: allow more serial ports to have flow control 2020-10-03 20:22:56 +10:00
Andrew Tridgell 702a3926f8 HAL_ChibiOS: setup defines for more flow control pins
allow all uarts to have flow control
2020-10-03 20:22:56 +10:00
Andrew Tridgell 5e80b10396 HAL_ChibiOS: enable telem3 on Durandal
the RCIN issue is not there in the final production boards
2020-10-03 20:22:56 +10:00
Peter Barker 29775f310e Tools: flesh out decode-ICSR tool 2020-10-03 13:28:48 +10:00
Peter Barker 6711c479de SITL: fix RPLidarA2 instructions and diagnostic output 2020-10-02 16:05:15 +10:00
Andrew Tridgell 9f3afe5434 Plane: update release notes for 4.0.7beta1 2020-10-02 15:16:40 +10:00
Andrew Tridgell e471b23f58 HAL_ChibiOS: add a max quota of GPIO interrupts
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues

This addresses issue #15384
2020-10-02 09:38:24 +10:00
Andrew Tridgell 965af98f4a AP_InternalError: added an internal error for GPIO ISR overload 2020-10-02 09:38:24 +10:00
Andrew Tridgell c62b86e3c1 AP_HAL: added timer_tick() on GPIO 2020-10-02 09:38:24 +10:00
Peter Barker 56790625b8 Copter: stop passing unused inav into autorotate library 2020-10-01 21:13:20 +10:00
Peter Barker 4bbf623cac AP_Soaring: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 914316a529 AP_RangeFinder: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 460bb7291e AP_Proximity: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker b024ff8ea4 AP_Notify: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 3a8751d8a7 AP_NavEKF: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 10e0646251 AP_Generator: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 0eb34912cf AP_ADSB: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker 12af51e356 AC_Autorotation: remove unused variables 2020-10-01 21:13:20 +10:00
Patrick José Pereira 57373180d1 AP_LeakDetector: Remove not used LeakDetector_Type enum
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-10-01 16:31:13 +10:00
Guy Rodnay 8c32392d73 Rover: fix speed nudge
Problem: vehicle speed "runs away" to speed_max for any throttle value over 75%.
Cause: the desired_speed was calculated by interpolation between the current speed to speed_max, rather than the speed_default to speed_max. As current speed increases the desired speed increases although throttle is fixed. Hence the "runaway".

Fix: Now speed nudge interpolates between the desired speed and speed_max.

Tested:
modes:  wp navigation, guided ,rtl
params: spped_max, wp_speed, rtl_speed, speed_max
do_change_speed
2020-10-01 09:33:06 +09:00
Randy Mackay 8b3cc0b255 Copter: fixup auto options 2020-10-01 08:48:06 +09:00
Michael du Breuil 50dfe3f197 Copter: Add AUTO_OPTIONS and support arming and throttle bypass
This allows you to arm the copter without any extra GCS commands while
in auto, and can be done from both the GCS, or the RC Tx. This is useful
for creating a simpler workflow.

This also allows you to set the auto_armed flag internally, which
bypasses the need to raise the throttle stick for the copter to start a
takeoff.

This exposed a problem where we would start running the controllers
before the EKF was at all initialized, if you switched into auto to
early. This now has a check that prevents us from running the mission
state machine until after the origin has been set. This was a suggestion
from @rmackay9.

When combined these options allow you to have the vehicle on the ground,
disarmed in auto with a takeoff waypoint loaded, then just arm the
aircraft and watch it takeoff. This is a feature we've had on quadplanes
for quite awhile now, and it has proven to be very nice for operators.
2020-10-01 08:46:29 +09:00