Commit Graph

27431 Commits

Author SHA1 Message Date
Andrew Tridgell
fd86cb0591 AP_Vehicle: moved accel cal update handling from vehicles 2021-09-17 14:07:14 +10:00
Andrew Tridgell
fefade783b AP_InertialSensor: allow accelcal with a rotation 2021-09-17 14:07:14 +10:00
Andrew Tridgell
3f043dd933 AP_AHRS: added get_view_rotation() 2021-09-17 14:07:14 +10:00
Andrew Tridgell
63fcb804b3 AP_UAVCAN: added CAN_Dn_UC_OPTION parameter
this allows for 2 ways of controlling conflicts in the UAVCAN DNA
database. The first is to set CAN_Dn_UC_OPTION to 1, which resets the
DNA database, thus clearing any node conflicts.

The second is to set CAN_Dn_UC_OPTION to 2, which ignores node
conflicts in the DNA database

These options are useful for vehicles with UAVCAN smart batteries
where the node ID is fixed but the hwid changes and you want to do
battery swapping (possibly without rebooting)
2021-09-17 12:32:59 +10:00
Andrew Tridgell
17f8b0b11a AP_Param: disable debug code by default
found on EU dev call
2021-09-16 21:05:48 +10:00
Andrew Tridgell
119df09c44 SITL: cope with a socket error in FlightAxis
this fixes an issue that has arisen with the new threading approach
where RF would occasionally freeze
2021-09-16 14:31:10 +10:00
yaapu
94aba33d10 AP_OSD: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
yaapu
9f0d9a5652 AP_MSP: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
Iampete1
934a4e26c9 AR_Motors: re-work omni output to scale evenly at saturation 2021-09-16 08:48:47 +09:00
Iampete1
7ec7b478f0 AC_WPNav: add getter for wp_radius_cm 2021-09-15 20:36:56 +10:00
Iampete1
0a41cdaa24 SRV_Channel: add ignore reversed flag to set_trim_to_min_for 2021-09-15 18:59:07 +09:00
Iampete1
950dcf9242 AP_MotorsUGV: ignore servo reverse when setting trim for brushed with relay 2021-09-15 18:59:07 +09:00
Iampete1
85e57a3bd8 AP_Avoidance: correct ADSB vertical velocity conversion 2021-09-15 17:55:50 +10:00
Peter Barker
16c11fc4fa AP_Airspeed: allow zero offset if we are skipping calibration 2021-09-15 17:52:34 +10:00
Iampete1
bf695e4eeb AP_HAL_ChibiOS: atof to strtof 2021-09-15 17:36:12 +10:00
Iampete1
34f5b800b6 AP_Generator: atof to strtof 2021-09-15 17:36:12 +10:00
Iampete1
17e8ea0136 AP_RangeFinder_Params: update PIN discription 2021-09-15 17:31:54 +10:00
yaapu
53ea385291 AP_MSP: removed unnecessary pure virtual methods 2021-09-15 17:28:56 +10:00
yaapu
e1b12fbee3 AP_MSP: use const structures and brace initialization where possible
saves ane extra 130bytes
2021-09-15 17:28:56 +10:00
yaapu
3bbf2c1f70 AP_MSP: removed unstructured writes to msp dst buffer 2021-09-15 17:28:56 +10:00
yaapu
a2b83d675f AP_Scripting: added a frsky battery example 2021-09-15 17:21:41 +10:00
Peter Barker
305a8ad48a AP_Scripting: add and use HAL_QUADPLANE_ENABLED 2021-09-14 11:23:18 +10:00
Josh Henderson
7a3425faca AP_ADSB: sagetech use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
f534a315ea AP_Proximity: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
51023fc846 AP_NMEA_Output: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
3006d50f97 AP_NavEKF3: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
d5f5a3024a AP_NavEKF2: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
f76f86c207 AP_InertialNav: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
06251335da AP_GPS: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
38ead58df2 AP_AHRS: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
996b3b8b1e AC_Sprayer: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
c0b18e4d52 AC_Avoid: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
a3e475822b AC_AttitudeControl: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Hwurzburg
6dfbd9ce31 AP_HAL_ChibiOS: add batt mon defaults to Kakutef4 Mini 2021-09-14 10:14:20 +10:00
Willian Galvani
68cbb47d68 HAL_Linux: RCOutput_PCA9685: implement force_safety_on/off 2021-09-14 10:11:17 +10:00
Willian Galvani
38e8020e4b HAL_Linux: try to stop PWMs before shutting down due to SIGTERM 2021-09-14 10:11:17 +10:00
Rhys Mainwaring
6cb4e6b31d SITL: update simpleRover C++ JSON interface example
- Provide a cmake file for cross platform builds
- Modify the example to respond to throttle commands on RC channel 3 (default for Rover)
- Add more detail to readme

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2021-09-14 09:54:39 +10:00
Iampete1
d9e30452ed AP_Mission: only continue after land if next waypoint is a takeoff 2021-09-14 08:24:02 +09:00
Iampete1
3dca9b4534 AR_Motors: stop setting safety limit 2021-09-14 09:23:02 +10:00
Iampete1
2abe120969 SRV_Channel: remove set_safety_limit 2021-09-14 09:23:02 +10:00
Iampete1
cc03b2975c AP_IOMCU: iofirmware: remove saftey PWM 2021-09-14 09:23:02 +10:00
Iampete1
c1a2379504 AP_IOMCU: remove safe PWM 2021-09-14 09:23:02 +10:00
Iampete1
53ee7d861d AP_HAL_ChibiOS: remove safe PWM 2021-09-14 09:23:02 +10:00
Iampete1
ed80d91d55 AP_HAL: remove set_safety_pwm 2021-09-14 09:23:02 +10:00
Willian Galvani
fe72640955 AP_HAL: remove BATT_ settings, they belong in AP_BattMonitor_Analog.h 2021-09-14 09:21:42 +10:00
Willian Galvani
08b33954db AP_BattMonitor_Analog: add default PM definitions for the Navigator Board 2021-09-14 09:21:42 +10:00
Willian Galvani
2e5b689196 AP_BattMonitor_Analog: allow per-board setting of CURR_AMP_OFFSET 2021-09-14 09:21:42 +10:00
Andrew Tridgell
88d77d0acd HAL_ChibiOS: change f303-PWM timers
fixes PWM on channels 3 and 4
2021-09-13 21:29:13 +10:00
Andrew Tridgell
adbaccaa08 HAL_ChibiOS: fixed RTSCTS flow control issue
this fixes an issue reported on MatekH743, but also applies to other
boards. When not using DMA if there have been bytes written before the
auto flow control detection was enabled then these must be cleared
from _total_written so the flow control detection can work correctly
2021-09-13 21:28:08 +10:00
Iampete1
bc216b103c AP_Mission: remove support for MAV_CMD_DO_SET_MODE 2021-09-13 16:18:24 +10:00
Iampete1
01cbb897e3 AP_Mission: add missing strings 2021-09-13 16:18:24 +10:00
Iampete1
1a2ea893b6 AP_MotorsMatrix: correct octo I testing order 2021-09-13 13:39:03 +09:00
Iampete1
8c37d08379 SITL: Examples: SilentWings: remove AUTO_FBW_STEER 2021-09-12 22:12:32 -05:00
Iampete1
66e1baa94c AP_IRLock_I2C: add comment on calibration equation 2021-09-13 10:56:00 +09:00
Andrew Tridgell
d62346f8d0 SITL: use a thread to create sockets for RealFlight
this reduces the cost of the socket creation on each frame, resulting
in higher frame rates. Typical improvement is around 30%
2021-09-13 10:38:48 +10:00
Iampete1
febf843e6d AC_Loiter: protect against negative angle max 2021-09-13 07:55:34 +09:00
Iampete1
ffac134014 AC_PosControl: protect against negative angle max 2021-09-13 07:55:34 +09:00
mateksys
659286ee4f ChibiOS: add icm42605 as substitution for icm20602 2021-09-11 17:37:12 +10:00
murata
731fd7221f AP_Scripting: Only use messages that are useful for debugging 2021-09-10 20:46:33 +10:00
Randy Mackay
570c12215d AR_AttitudeControl: fix get_throttle_out_speed use of passed in limits 2021-09-10 07:50:00 +09:00
Mohammad Hefny
61a7387dd9 AP_Notify: link to notify module 2021-09-10 08:17:37 +10:00
Mohammad Hefny
bd099b3910 AP_Batt: link to battery monitor 2021-09-10 08:17:37 +10:00
Mohammad Hefny
5eb28be8e6 AP_HAL_Linux: define board features on Linux module 2021-09-10 08:17:37 +10:00
Mohammad Hefny
2cb13dcc7d AP_HAL: define board features 2021-09-10 08:17:37 +10:00
Iampete1
999c26926a SITL: examples: SilentWings: remove ALT_CTRL_ALG 2021-09-09 11:07:07 +01:00
Leonard Hall
8c51271b45 AC_WPNav: Add units to the AC_AttitudeControl Library 2021-09-09 08:01:14 +09:00
Leonard Hall
90b5bc6a2d AC_AutoTune: Add units to the AC_AttitudeControl Library 2021-09-09 08:01:14 +09:00
Leonard Hall
ad278779e3 AC_AttitudeControl: : Add units to the accessors. 2021-09-09 08:01:14 +09:00
Leonard Hall
7852e9d1b0 AC_WPNav: Fix calculation of _scurve_jerk_time using radians. 2021-09-09 08:01:14 +09:00
Peter Barker
8a3a787b76 AC_WPNav: honour changes to wp-speed-up and wp-speed-down in-flight 2021-09-08 21:29:38 +10:00
Iampete1
f80fedff9c AP_Logger: add function to set longer log persist 2021-09-08 18:26:40 +10:00
Iampete1
1e5b9e487b AP_Arming: set force disarmed logging for all the nasty disarm reasons 2021-09-08 18:26:40 +10:00
Peter Barker
380d962648 AP_Motors: do not use int version to define motors 2021-09-08 18:20:44 +10:00
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
Andrew Tridgell
a76323aaca AP_DAL: fixed a bug in RMGH logging 2021-09-03 18:16:08 +10:00
Andrew Tridgell
eacdd017d7 AP_Declination: added a test suite for AP_Declination
use test vectors from MAVProxy mavextra
2021-09-03 14:45:17 +10:00
Andrew Tridgell
71c5c624ce AP_Declination: fixed rounding in mag field
thanks to Angela for noticing this
2021-09-03 14:45:17 +10:00
Peter Barker
7a06c941df AP_Vehicle: make bad-mode-number notification consistent across vehicles 2021-09-01 19:45:46 +09:00
Peter Barker
a292fe13d6 GCS_MAVLink: add option to create internal error via preflight-reboot
useful for testing our handling of internal errors
2021-09-01 18:58:15 +10:00
olliw42
af634f0421 AP_Mount: initialize backends after all mounts were added 2021-09-01 18:57:24 +10:00
Iampete1
e82860266d SRV_Channel: call update_aux_servo_function in function_assigned 2021-09-01 18:34:45 +10:00
Peter Barker
129eb4c184 AP_HAL_SITL: do not overwrite FETTecESC telemetry data w/SITL ESC data 2021-09-01 18:25:51 +10:00
Andrew Tridgell
ae615de4ce GCS_MAVLink: added logging of NAMED_VALUE_FLOAT
this is useful when running sensors on a companion computer and
wanting values logged in main ArduPilot log.
2021-09-01 17:52:48 +10:00
Iampete1
8d669f7616 AP_Arming: update primary GPS type 0 string 2021-09-01 17:51:31 +10:00
Iampete1
0d3c00cb96 AP_Rangefinder: MAVLink: accept data only from configured orentation 2021-09-01 17:50:58 +10:00
Andy Piper
e8d1326a6d AP_ESC_Telem: fix raw rpm
Co-authored-by: Amilcar Lucas <amilcar.lucas@iav.de>
2021-09-01 17:15:32 +10:00
Andy Piper
9281982b8f AP_ESC_Telem: log raw RPM information 2021-09-01 17:15:32 +10:00
bugobliterator
4ecdf90470 AP_HAL_ChibiOS: add internal flash version of hwdef for H757I_EVAL 2021-09-01 17:10:53 +10:00
Siddharth Purohit
d484477a99 AP_HAL_ChibiOS: move to using PLL2_R_CK for QSPI 2021-09-01 17:10:53 +10:00
Siddharth Purohit
81dc237a19 AP_HAL_ChibiOS: move to using Instruction RAM with External Flash setup 2021-09-01 17:10:53 +10:00
Siddharth Purohit
1eb318c62b AP_HAL_ChibiOS: increase clock frequency for QSPI 2021-09-01 17:10:53 +10:00
Siddharth Purohit
215c1249cb AP_HAL_Empty: add check owner method 2021-09-01 17:10:53 +10:00
Siddharth Purohit
39bd229279 AP_HAL_ChibiOS: remove dependency on Semaphores in QSPIDevice in BL 2021-09-01 17:10:53 +10:00
Siddharth Purohit
813e93a69c AP_HAL_ChibiOS: do not reset GPIO for boards with external flash 2021-09-01 17:10:53 +10:00
Siddharth Purohit
4ba2835de1 AP_HAL_ChibiOS: add config for supporting load from external flash 2021-09-01 17:10:53 +10:00
Siddharth Purohit
faedb12493 AP_HAL_ChibiOS: fix hwdef generation for bootloader supporting ext flash 2021-09-01 17:10:53 +10:00
Siddharth Purohit
6e81fcbed1 AP_HAL_ChibiOS: add support for things required to run QSPIDriver 2021-09-01 17:10:53 +10:00
Siddharth Purohit
a039711628 AP_HAL_ChibiOS: prepare H757I_EVAL for external flash programming 2021-09-01 17:10:53 +10:00
Siddharth Purohit
32f91c4cb2 AP_FlashIface: add jedec test using bootloader config 2021-09-01 17:10:53 +10:00
Andrew Tridgell
fdfa14c4c0 HAL_ChibiOS: adjust Swan-K1 tuning 2021-09-01 14:04:35 +10:00
Andrew Tridgell
f4ad8f6ef5 HAL_ChibiOS: fix for HAL_PWM_COUNT zero
reported by Mallikarjun
2021-09-01 13:05:20 +10:00