Commit Graph

52571 Commits

Author SHA1 Message Date
Andrew Tridgell
27cbe5dbbb Plane: prevent rapid RTL/AUTO switching on fence breach
don't switch back to RTL if already in a DO_LAND_START sequence
2022-03-23 20:21:59 +11:00
Andrew Tridgell
ce27ec2276 AP_BattMonitor: fixed battery remaining of sum battery
and move to common function for update_consumed()
2022-03-23 20:21:38 +11:00
Andrew Tridgell
3f865ba102 web: changed from '3DR' to 'SiK'
these radios have not been sold by 3DR for a long time
2022-03-23 19:23:17 +11:00
bugobliterator
79c45049e0 AP_GPS: only use PPS time when there is atleast 2D Fix 2022-03-23 19:10:47 +11:00
bugobliterator
2dceb9a3ed AP_HAL_ChibiOS: ensure that common ram is selected for bootloader/app comms in STM32H7 2022-03-23 19:09:21 +11:00
bugobliterator
39b771c3a9 AP_Scripting: add support for can_printf in lua 2022-03-23 18:59:43 +11:00
bugobliterator
7f5dc33e7e AP_Periph: allow can_printf as periph member method as well 2022-03-23 18:59:43 +11:00
Andrew Tridgell
d82a306cc2 Plane: when shutting down motors force outputs to minimum
this fixes issue #20354 where a long spool time can lead to motors
running without control for an extended period of time.
2022-03-23 18:20:42 +11:00
Andrew Tridgell
73eabb1fd0 GCS_MAVLink: send GCS voltage to GCS
may be resting voltage of option enabled
2022-03-22 11:12:54 +11:00
Andrew Tridgell
9c067f360f AP_BattMonitor: added option to send resting voltage to GCS 2022-03-22 11:12:54 +11:00
Peter Barker
f1ec657c41 GCS_MAVLink: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker
fe863b9567 AP_Vehicle: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker
38a1c4412a AP_Mount: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker
3dae386ae3 AP_InertialSensor: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker
df4911cbcb AP_NavEKF3: avoid direct use of Location alt field 2022-03-22 10:33:37 +11:00
Peter Barker
83011580f3 AP_NavEKF2: avoid direct use of Location alt field 2022-03-22 10:33:37 +11:00
Andrew Tridgell
33b7f8f46e Tools: rebuild IO firmware 2022-03-22 10:30:35 +11:00
Andrew Tridgell
ce0b7a8957 AP_IOMCU: fixed handling of RC_OPTIONS bit to ignore RC failsafe bit
this worked on FMU but not on IOMCU
2022-03-22 10:30:35 +11:00
Andrew Tridgell
522173328c AP_RCProtocol: added failsafe_active() API 2022-03-22 10:30:35 +11:00
Andrew Tridgell
e8115a99bc AP_Scripting: added set_override method for scripting
useful for test code
2022-03-22 10:21:06 +11:00
Willian Galvani
19db542111 AP_Param: Use AP:FS for accessing files 2022-03-22 10:19:21 +11:00
Willian Galvani
0e62d561d9 AP_Filesystem: add allow_absolute_paths to open(), implement it for posix backend 2022-03-22 10:19:21 +11:00
Peter Barker
2784f8fa7f Plane: remove persistent guided_WP_loc state
So instead of updating plane.guided_WP_loc and then calling
set_guided_WP(void) to copy that state into plane.next_WP_loc we pass
the new location in the call to set_guided_WP(const Location &loc).

avoidance was the only place which was not entirely over-writing
plane.guided_WP_loc.  However, plane.next_WP_loc was updated to be the
current location when we entered guided mode.  If we update the
horizontal/vertical avoidance now it is relative to the current
location, not the guided wp location, which could be quite important.
2022-03-22 10:14:40 +11:00
Andrew Tridgell
feb9e78f00 AP_GPS: prevent switching to a dead GPS
when we switch away from the blended GPS instance we need to ensure we
don't switch to a GPS that is timing out, and may be the instance that
is triggering the disable of blending
2022-03-22 10:10:07 +11:00
Pierre Kancir
699651e306 Tools: add pexpect on Arch env 2022-03-22 09:08:06 +11:00
Pierre Kancir
e704e84bf9 Tools: fix package install on Python2 2022-03-22 09:08:06 +11:00
pacolate12
0d256da3b5 AP_UAVCAN: correct array inxexing
Allows the code to be run on hardware
2022-03-20 07:32:33 -07:00
bugobliterator
8574afb2e1 AP_BoardConfig: add WHOAMI for INV42688 2022-03-20 07:23:10 -07:00
bugobliterator
95b69ba1fd AP_Bootloader: add board type CubeOrangePlus 2022-03-20 07:23:10 -07:00
bugobliterator
7abcf9ec46 AP_HAL_ChibiOS: add CubeOrangePlus 2022-03-20 07:23:10 -07:00
Peter Barker
1f5165349e Plane: correct compilation when airspeed disabled 2022-03-20 21:47:05 +11:00
Peter Barker
6b48a8df02 Tools: correct antennatracker name in size_compare_branches.py 2022-03-20 21:46:45 +11:00
Andrew Tridgell
62db423758 Tools: update MatekL431 bootloaders 2022-03-19 12:06:04 +11:00
Andrew Tridgell
54e4c6e1be hwdef: leave MatekL431 ROMFS uncompressed
this allows for bl update when low on memory
2022-03-19 12:06:04 +11:00
mateksys
b3f7556ac2 Tools: add MatekL431 bootloader 2022-03-19 12:06:04 +11:00
mateksys
35ed87a5db AP_HAL_ChibiOS: add MatekL431 AP_Periph hwdef 2022-03-19 12:06:04 +11:00
Andrew Tridgell
994e1e0c0a AP_Periph: mark version as 1.4.0dev 2022-03-18 21:16:13 +11:00
Andrew Tridgell
59456b4f82 AP_Periph: updated release notes for 1.3.0 2022-03-18 21:14:07 +11:00
Andrew Tridgell
116c692e2b AP_Periph: rename ReleaseNotes.txt
be consistent with plane and copter
2022-03-18 21:14:04 +11:00
Andrew Tridgell
2c22cbc50e Plane: update release notes for 4.2.0beta3 2022-03-18 21:13:54 +11:00
Henry Wurzburg
14700063d2 ArduPlane: convert floating point divides into multiplys 2022-03-18 15:26:44 +11:00
Henry Wurzburg
c48b7319bc AP_RSSI: convert floating point divides into multiplys 2022-03-18 15:26:44 +11:00
Andrew Tridgell
6ebefbdb16 Plane: added airspeed based pitch limit check
prevent using too much pitch when at low airspeed, which can lead to
severe instability in SLT quadplanes
2022-03-18 13:36:16 +11:00
Andrew Tridgell
eabdaae1e7 Plane: use set_lean_angle_max_cd()
allows for a wider range of Q_TRANS_DECEL while landing on the desired
landing point
2022-03-18 13:36:16 +11:00
Andrew Tridgell
7bb129aa3e AC_AttitudeControl: added set_lean_angle_max_cd() 2022-03-18 13:36:16 +11:00
Andrew Tridgell
7dcdeac7ab AC_Autorotation: use accel_to_angle() 2022-03-18 13:36:16 +11:00
Andrew Tridgell
f824be726c AC_WPNav: use angle/accel functions 2022-03-18 13:36:16 +11:00
Andrew Tridgell
ca4151be2c AP_Math: added angle_to_accel() and accel_to_angle() 2022-03-18 13:36:16 +11:00
Andrew Tridgell
cc6fc2b130 Plane: improvements to POSITION1 controller
this improves 4 things in the POSITION1 controller based on logs from
4.2.0beta2. The changes are designed to increase the tolerance to
an incorrect value for Q_TRANS_DECEL, reducing landing overshoot

1) we fix the initialisation of the acceleration. The
   init_xy_controller() function assumes zero accel, so we need to
   call set_accel_desired_xy_cmss() just after that init to get the
   correct accel. Thanks to Leonard for this fix

2) if we decel more than expected due to too low Q_TRANS_DECEL we
   need to reduce the target speed, rather than putting the nose down

3) lower the default Q_P_JERK_XY to a value more appropriate for most
   quadplanes (Leonard suggested a value of 2)

4) fixed the pitch envelope from Q_BACKTRANS_MS to start after the
   airbrake phase is complete
2022-03-18 13:36:16 +11:00
Andrew Tridgell
3772029450 Plane: fixed pitch envelope after AIRBRAKE
we need to setup last_fw_mode_ms and last_fw_nav_pitch_cd when we
enter POSITION1 mode so that the expanding envelope pitch limit from
Q_BACKTRANS_MS is applied correctly
2022-03-18 13:36:16 +11:00