Commit Graph

27258 Commits

Author SHA1 Message Date
Peter Barker
dbb43a5746 AP_Motors: remove motor_num from motor definition structures
Every structure simply used the defines in sequence, meaning 0, 1, 2, 3
etc.  Handily we have a loop counter where we use these structures...
2021-09-08 18:20:44 +10:00
Peter Barker
a152ad70a9 AP_Motors: use structures to save flash when initialising motors (raw motors) 2021-09-08 18:20:44 +10:00
Peter Barker
26385009ca AP_Motors: use structures to save flash when initialising motors 2021-09-08 18:20:44 +10:00
Iampete1
529a3a9122 AP_HAL_ChibiOS: convert back to full range on IOMCU ONESHOT125 read 2021-09-08 18:01:50 +10:00
Iampete1
1f7023b580 RC_Channel: add SIMPLE_HEADING_RESET option 2021-09-08 16:49:33 +09:00
Iampete1
7ada4a0d5a AP_Arming: logger: fail check if downloading logs 2021-09-08 17:38:48 +10:00
Iampete1
a47eeb3fed AP_Logger: log transfer: add error message if armed 2021-09-08 17:38:48 +10:00
Willian Galvani
1057161f88 AP_BattMonitor_logging: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
467554ee0e AP_Frsky_Telem: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
9206599e6c AP_BattMonitor_UAVCAN: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
e563919dd2 AP_Scripting: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
c08e04a16a AP_RCTelemetry: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
018ff3d11c GCS_MAVLink: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
f7fa4b7c19 AP_OSD: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
b9452c83be AP_Notify: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
207723319b AP_BattMonitor_Backend: change capacity_remaining_pct() to a bool 2021-09-08 17:17:41 +10:00
Willian Galvani
735e2ab651 AP_BattMonitor: change capacity_remaining_pct() to a bool 2021-09-08 17:17:41 +10:00
Andy Piper
e705f78b5e AP_HAL_ChibiOS: correct and compact Pixhawk4-bdshot build 2021-09-08 17:09:49 +10:00
Andy Piper
c92c75c9a6 AP_HAL_ChibiOS: bdshot version of CUAVv5 2021-09-08 17:09:49 +10:00
Andy Piper
bb41db8478 AP_HAL_ChibiOS: bdshot version of CUAVv5Nano 2021-09-08 17:09:49 +10:00
Andrew Tridgell
d29057a158 HAL_ChibiOS: added f303-PWM
for a PWM output node based on mRo f303 CAN node
2021-09-08 17:06:44 +10:00
Peter Barker
dabba69b5e AP_NavEKF3: improve description of XKF4/NKF4 fields
Courtesy Paul Riseborough here: https://github.com/ArduPilot/ardupilot_wiki/issues/3641#issuecomment-913577132
2021-09-08 17:06:12 +10:00
Peter Barker
a62cb64867 AP_NavEKF2: improve description of XKF4/NKF4 fields
Courtesy Paul Riseborough here: https://github.com/ArduPilot/ardupilot_wiki/issues/3641#issuecomment-913577132
2021-09-08 17:06:12 +10:00
Peter Barker
abe78e168d SITL: make heli-blade simulation work 2021-09-08 14:33:19 +10:00
Peter Barker
ae40531cd7 AP_HAL_SITL: make heli-blade simulation work 2021-09-08 14:33:19 +10:00
Bill Geyer
9a917abf76 SITL: update conventional heli dynamics and add blade 360 heli dynamics 2021-09-08 14:33:19 +10:00
Leonard Hall
35a93c5988 AC_AttitudeControl: AC_PosControl: Change set_correction_speed_accel_z to use input arguments 2021-09-07 19:04:14 +09:00
Andrew Tridgell
9342ded2bb AC_WPNav: cope with negative WPNAV_SPEED_DN
a user set WPNAV_SPEED_DN to a negative value, with odd results. Take
absolute value to cope. Even though the param docs clearly say range
should be positive, it is one where it is easy to think it should be
negative
2021-09-07 18:55:00 +09:00
Peter Barker
fd144ccc59 GCS_MAVLink: log source sysid/compid in MAVC
For field length purposed had tor remove Current and autocontinue which we don't care about
anyway.
2021-09-07 11:06:08 +10:00
Peter Barker
13a7b60279 AP_Logger: log source sysid/compid in MAVC
For field length purposed had tor remove Current and autocontinue which we don't care about
anyway.
2021-09-07 11:06:08 +10:00
Peter Barker
ec53a41ffd AC_WPNav: monitor WPNAV_SPEED for changes 2021-09-07 10:04:07 +09:00
Andrew Tridgell
2e4766fe54 HAL_ChibiOS: ensure HI_POWER periph is on 2021-09-07 10:40:44 +10:00
Andrew Tridgell
532396e5e6 REVERT: HAL_ChibiOS: Rename STM32F412 hw definition file
This reverts commit 5de6c690d8.

That commit broke the build for the affected board as the chibios
headers rely on the name of the file matching a ifdef
2021-09-07 10:37:43 +10:00
Andrew Tridgell
8366a1622c AP_OSD: hide disabled parameters in OSD var_info2 2021-09-07 10:36:16 +10:00
Andrew Tridgell
10cbd3fd80 AP_Param: added a flag for hidden parameters 2021-09-07 10:36:16 +10:00
Iampete1
ccd330a40a AP_Vehicle: add AUTO_RTL_EXIT mode reason 2021-09-07 09:35:35 +09:00
Josh Henderson
a91c0f4b12 AC_WPNav: simplify get_wp_destination_loc 2021-09-07 08:02:18 +09:00
Andrew Tridgell
b77580f934 HAL_ChibiOS: avoid an issue with DCache init on H743
this fixes an issue found by Andy Piper where the H743 bootloader gets
a hard fault in the DCache enable code when SRAM1 is primary memory.

This is the simplest fix I could think of, and avoids the problem by
making DTCM the first segment in the bootloader.

Note that we can't use DTCM as first segment for main firmware since
we went to double precision EKF as the static variables don't fit
2021-09-06 18:23:03 +10:00
Randy Mackay
8a5ade1f46 AC_WPNav: protect against divide-by-zero 2021-09-06 16:02:25 +09:00
Randy Mackay
28a14b3602 AC_WPNav: move definitions to .cpp file 2021-09-06 16:02:25 +09:00
Randy Mackay
af9a91c853 Copter: terrain spelling fix 2021-09-06 16:02:25 +09:00
Randy Mackay
ba50f68390 AC_WPNav: terrain spelling fix 2021-09-06 16:02:25 +09:00
Leonard Hall
5337ab0551 AC_AttitudeControl: AC_PosControl: Remove const float 2021-09-06 16:00:19 +09:00
Leonard Hall
94002101fd AC_WPNav: Separate landing and terrain following. 2021-09-06 16:00:19 +09:00
Leonard Hall
30cda045f1 AC_Autotune: Separate landing and terrain following. 2021-09-06 16:00:19 +09:00
Leonard Hall
0fff010046 AC_AttitudeControl: AC_PosControl: Separate landing and terrain following. 2021-09-06 16:00:19 +09:00
Hwurzburg
d0b67baefd AP_HAL_ChibOS: add pin defs for RSSI to KakuteF7 2021-09-06 10:12:48 +10:00
Hwurzburg
854697f870 AP_HAL_ChibiOS: update default params for SWAN-K1 2021-09-06 08:07:06 +10:00
Pierre Kancir
2b44f86f9c AP_HAL: fix ringbuffer test on clang.
../../libraries/AP_HAL/utility/tests/test_ringbuffer.cpp:46:17: fatal error: variable-sized object may not be initialized
    uint8_t buf[strlen(str)+5] {};
2021-09-04 15:46:47 +10:00
Andrew Tridgell
8462ce4e2e HAL_ChibiOS: fixed GPIO lines for QioTekZealotF427 2021-09-03 18:16:43 +10:00