Commit Graph

27062 Commits

Author SHA1 Message Date
Peter Barker 97057a1350 SITL: add simulated FETtec ESC 2021-08-13 16:22:37 +10:00
Peter Barker 26f2393014 AP_HAL_SITL: add simulated FETtec ESC 2021-08-13 16:22:37 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 72a69ec274 AP_ESC_Telem: implement get_active_esc_mask()
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-08-13 16:22:37 +10:00
Peter Barker 2251e442cc AP_Math: move crc8_dvb_update into crc library 2021-08-13 16:22:37 +10:00
Pierre Kancir 2020fbaa26 SRV_Channel: add FETtec support 2021-08-13 16:22:37 +10:00
Pierre Kancir c1ad7253b6 AP_SerialManager: add FETtecOneWire protocol 2021-08-13 16:22:37 +10:00
Pierre Kancir 6346739466 AP_FETtecOneWire: Conversion to C++ and initial ArduPilot support 2021-08-13 16:22:37 +10:00
Torsten Z 35861ab616 AP_FETtecOneWire: Initial protocol implementation in C provided by FETtec 2021-08-13 16:22:37 +10:00
Scott Parlane 4d95a9d1c3 AP_InertialSensor: BMI160: Allow configuring the rotation 2021-08-13 12:32:28 +10:00
Scott Parlane 700edd241f AP_InertialSensor: BMI160: Make it possible to use I2C
The BMI160 chip talks the same protocol over SPI and I2C,
so simply allowing I2C in hwdef is sufficient to allow it to be used.
2021-08-13 12:32:28 +10:00
Scott Parlane 6554c535a1 AP_InertialSensor: BMI160: Remove linux-only restriction 2021-08-13 12:32:28 +10:00
Hwurzburg 400cf31df1 AP_Scripting: Add mission selection applet 2021-08-13 08:18:55 +10:00
Andy Piper b6ec06ac0f AP_Vehicle: output rcout banner when initialization is done
move down ready message
2021-08-12 19:07:51 +09:00
Andy Piper 68fd87091c AP_HAL_ChibiOS: output initializing from PWM banner when not available 2021-08-12 19:07:51 +09:00
Andy Piper b9598dac00 RC_Channel: add turtle mode to RC option 150 2021-08-12 19:00:51 +09:00
Andy Piper a51e58022f AP_HAL_ChibiOS: add accessor for reversed mask
allow mask updates to be disabled
send dshot commands even if armed - they will be accepted as long as throttle is at zero
only accept low-priority dshot commands while disarmed
apply reversed and reversible mask as servo channels
2021-08-12 19:00:51 +09:00
Andy Piper 09e0135ecb AP_HAL: add accessor for reversed mask
allow mask updates to be disabled
document mask types
define DSHOT_ZERO_THROTTLE
2021-08-12 19:00:51 +09:00
Andy Piper 5ece42bce0 RC_Channel: add turtle mode 2021-08-12 19:00:51 +09:00
Andy Piper 513aa592e4 AP_Motors: add accessors for turtle mode 2021-08-12 19:00:51 +09:00
Tom Pittenger 00cc8a4042 AP_BattMonitor: fix mppt sequence bug
closes https://github.com/ArduPilot/ardupilot/issues/18283
2021-08-12 14:37:04 +10:00
Pierre Kancir bff899e8f2 AP_OSD: check for nullptr before using it 2021-08-12 13:56:53 +10:00
Pierre Kancir 99456ba1f8 AP_Logger: fix MAVLink logger random failure on SITL
rand() return an int
2021-08-12 13:55:22 +10:00
Pierre Kancir 8216905f47 AP_NavEKF3: remove unecessary assignements 2021-08-12 10:39:49 +09:00
Pierre Kancir d95f503a32 AP_NavEKF2: remove unecessary assignements 2021-08-12 10:39:49 +09:00
Pierre Kancir adf86357aa AP_ESC_Telem: prevent possible overrun 2021-08-12 11:20:24 +10:00
Pierre Kancir 7739ddefd0 AP_ESC_TELEM: prevent overrun, esc_index should be < to ESC_TELEM_MAX_ESCS 2021-08-12 11:20:24 +10:00
Pierre Kancir a0175441a0 AP_ESC_Telem: fix out of bound access 2021-08-12 11:20:24 +10:00
Randy Mackay b399649c36 AP_Torqeedo: increase speed cmd at 50hz
under human control the tiller/battery only sends at 3hz but in testing it is capable of at least 50hz (but not as much as 100hz)
2021-08-12 10:54:36 +10:00
Peter Barker 29aed55a74 AP_AHRS: remove pointless zeroing of gyro_estimate vector
This value is assigned to in the following "if" block in both the for
and against cases, and isn't used to determine the new value.
2021-08-12 08:52:24 +10:00
Peter Barker 73bad9fd2d AP_AHRS: move fly_forward flag to front end
This same flag is requested by the DAL so AN_NavEKF2 and AP_NavEKF3 can
use it in their estimates - so AP_AHRS_DCM accessing it via the same
mechanism is not out-of-shape
2021-08-11 15:36:22 -07:00
bugobliterator 6bbfe35c73 AP_Logger: do not use AP_Scheduler for AP_Periph builds 2021-08-12 07:57:12 +10:00
Peter Barker 1db7e9e2e2 AP_NavEKF: log EKF data source set changes 2021-08-11 19:28:28 +09:00
Peter Barker 110d48e6fa AP_Logger: add events for changing EKF data source set changes 2021-08-11 19:28:28 +09:00
Peter Barker e9c56a2b0a AP_AHRS: move takeoff/touchdown flags to frontend 2021-08-11 18:45:34 +10:00
Pierre Kancir c19391d540 AP_Filesystem: correct file open flags for append 2021-08-11 18:43:53 +10:00
giacomo892 8da8b34b49 AP_OSD: Add option to disable Crosshair on horizon element 2021-08-11 18:42:11 +10:00
Hwurzburg 42128a70b8 RC_Channel: add CRUISE mode RC AUX Function switch 2021-08-11 18:35:05 +10:00
Leonard Hall ad2a152751 AP_Math: Spelling fix 2021-08-11 17:07:29 +09:00
Leonard Hall 71ccffd7c9 AC_AttitudeControl: AC_PosControl: support Control: Refactor to use Jerk 2021-08-11 17:07:29 +09:00
Leonard Hall a1b47f36ef AC_WPNav: support Control: Refactor to use Jerk 2021-08-11 17:07:29 +09:00
Leonard Hall 8961695369 AP_Math: Control: Refactor to use Jerk 2021-08-11 17:07:29 +09:00
Leonard Hall 3a8924c185 AP_Math: Control: protect against divide by zero 2021-08-11 17:07:29 +09:00
Leonard Hall 32b2510893 AC_WPNav: Fix Angle Vel units on function 2021-08-11 17:07:29 +09:00
Leonard Hall f57175a84f AC_AttitudeControl: Fix Angle Vel units on function 2021-08-11 17:07:29 +09:00
Pierre Kancir 0a922426a2 AP_Beacon: fix comparison order to prevent using wrong beacon_instance first 2021-08-11 15:17:08 +10:00
Pierre Kancir 4bccdada16 AC_Avoidance: do fence pointer check before using it 2021-08-11 13:43:23 +10:00
ES-Alexander 600df16604 Add pressure offset based on device P-mode 2021-08-10 18:30:04 -04:00
ES-Alexander 5fd32d3f36 Enable offset based on P-mode 2021-08-10 18:30:04 -04:00
Andrew Tridgell 4f4a0a02f6 AP_GPS: added doc message for bit 2 of DRV_OPTIONS 2021-08-10 10:54:14 +10:00
Andrew Tridgell 1479566921 AP_GPS: added GPS_DRV_OPTIONS bit for forcing ublox GPS to 115200
this may help with some GPS modules
2021-08-10 10:54:14 +10:00
Andrew Tridgell 79b0571d7e HAL_ChibiOS: added Swan K1 support 2021-08-10 10:08:05 +10:00
Andrew Tridgell 36dcc0d16d AP_RCProtocol: make SBUS frame gap configurable 2021-08-10 10:08:05 +10:00
Peter Barker 784c56f6d0 GCS_MVALink: remove virtual from send_simstate
No longer overridden by anyone
2021-08-10 09:48:34 +10:00
Randy Mackay 2a2cde68ef AP_NavEKF3: skip GSF reset count check if source actively changed
also only fail all compass on emergency reset
2021-08-10 09:44:57 +10:00
Peter Barker ecd488b3c3 AP_AHRS: move trim-related functionality to front end 2021-08-10 09:41:19 +10:00
Andy Piper 7dea029626 AP_HAL_ChibiOS: probe for compasses on FlywooF745 2021-08-10 09:35:06 +10:00
Leonard Hall 4e06140c6c AP_Hal_ChibiOS: Skyviper Parameters PSC_VELXY_FLTE 2021-08-10 08:33:56 +09:00
Leonard Hall 870888efeb AC_AttitudeControl: AC_PosControl: fix PID filter names FILT -> FLTE, D_FILT -> FLTD 2021-08-10 08:33:56 +09:00
Leonard Hall d21b07db98 AC_PID: fix PID filter names FILT -> FLTE, D_FILT -> FLTD
Follow used guided but references the maximum velocity settings. As Guided does not set maximum velocities these values come back as zero. So we need to reference WP_Nav to get safe maximums.
2021-08-10 08:33:56 +09:00
Iampete1 88a5372ab7 AP_AIS: log base station report message 2021-08-10 08:11:18 +09:00
Iampete1 193ee8d865 AP_AIS: add log structures 2021-08-10 08:11:18 +09:00
Iampete1 6deacda180 AP_HAL_SITL: load SIM_AIS 2021-08-10 08:11:18 +09:00
Iampete1 ce7a93ab6c SITL: add SIM_AIS 2021-08-10 08:11:18 +09:00
Peter Hall 60db4c1a62 GCS_Mavlink: add AIS msg 2021-08-10 08:11:18 +09:00
Peter Hall c539f0cff5 AP_AIS: add 2021-08-10 08:11:18 +09:00
Peter Hall 2a58e7097f AP_Logger: LogStructure: add AIS 2021-08-10 08:11:18 +09:00
Peter Hall d0fc5210c8 AP_SerialManager: add AIS 2021-08-10 08:11:18 +09:00
ES-Alexander e78fc9cd5b AP_LeakDetector: enable for Pixhawk4 2021-08-09 18:55:11 -04:00
Andrew Tridgell 2d6070d449 AP_Scripting: added has_valid_input binding 2021-08-10 08:48:10 +10:00
bugobliterator 81c5a99527 AP_HAL_ChibiOS: fix invalid use of FDCAN2_IT0_IRQn enum for ifdef 2021-08-10 07:25:05 +10:00
Andrew Tridgell 3f67917c26 AP_Airspeed: check for baro baro data in SDP3X
this matters for SDP3X as AP_Periph sensor with no baro
2021-08-10 07:10:02 +10:00
QioTek 30e23052a0 AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
2021-08-10 07:00:52 +10:00
Andrew Tridgell ff59e0f72f AP_NavEKF3: fixed output LLH to account for IMU offset
thanks to Paul and Randy
2021-08-09 19:19:21 +10:00
Hwurzburg 72a927343a AP_Scripting: make LUA memory panic more helpful 2021-08-09 16:34:09 +10:00
Hwurzburg 2939efe2c6 AP_OSD: add option to convert to miless at 5280ft vs 10000ft 2021-08-09 16:33:01 +10:00
Randy Mackay 1ccbe0d0df AP_Torqeedo: fixes after peer review 2021-08-09 15:13:24 +09:00
Randy Mackay 4c7f23bb67 AP_Torqeedo: pre-arm does not provide prefix 2021-08-09 15:13:24 +09:00
Randy Mackay b147d59ab7 AP_Torqeedo: rename TRQD_DEBUG to OPTIONS and make bitmask 2021-08-09 15:13:24 +09:00
Randy Mackay 2890c1c651 AP_Torqeedo: health reporting based on sending and receiving 2021-08-09 15:13:24 +09:00
Randy Mackay 9ffd22fad0 AP_Torqeedo: support connection to motor or tiller 2021-08-09 15:13:24 +09:00
Randy Mackay 8ebb6165f7 AP_Torqeedo: logging and debug output 2021-08-09 15:13:24 +09:00
Randy Mackay 7bcd43eb0d AP_Torqeedo: add healthy and pre-arm checks 2021-08-09 15:13:24 +09:00
Randy Mackay 719b1e1267 AP_Torqeedo: serial RTS pin can turn motor on 2021-08-09 15:13:24 +09:00
Rishabh 8aa5be2a08 SITL: Change Morse Ackermann model param 2021-08-09 14:54:11 +09:00
Randy Mackay a6e8f2e73b AP_NavEKF2: NKF3.IYAW logs in degrees 2021-08-09 08:10:42 +09:00
Randy Mackay 2f1444772b AP_NavEKF3: XKF3.IYAW logs in degrees 2021-08-09 08:10:42 +09:00
Peter Barker c9699d7ce4 AP_GPS: log GPS primary change event in GPS library 2021-08-06 15:30:18 +10:00
Hwurzburg 80b4cd7ae9 ArduPlane: correct Mission Reset override behaviour in Plane 2021-08-06 10:17:25 +10:00
Hwurzburg e680611324 AP_OSD: Add Link Quality icon 2021-08-06 10:16:24 +10:00
Randy Mackay d961186e0c AP_NavEKF3: remove unused EK3_GSF_DELAY param 2021-08-06 07:00:46 +09:00
Randy Mackay f8399fe3de AP_NavEKF2: remove unused EK2_GSF_DELAY param 2021-08-06 07:00:46 +09:00
Peter Barker d73ce0ed57 AP_Common: tests: stop overriding non-virtual method
set_origin is no longer virtual.  These tests can be reinstated once we
have a single origin for the AHRS
2021-08-05 10:37:47 +10:00
Peter Barker 7f4a4a99d6 AP_AHRS: move home and origin methods to frontend 2021-08-05 10:37:47 +10:00
Andrew Tridgell 02ca6b67a2 GCS_MAVLINK: fixed macos snprintf error 2021-08-05 09:43:35 +10:00
Andrew Tridgell 68a33e996d AP_Common: fixed invalid nmea test 2021-08-05 09:43:35 +10:00
Andrew Tridgell cb462cac6e AP_UAVCAN: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell c4d05b3f3a AP_ToshibaCAN: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell 3712d7eca5 AP_Relay: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell 68c1f0db35 AP_Parachute: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell 067a6547bc AP_HAL: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell f8e40eef00 AP_GPS: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell a49f5b92e2 AP_Common: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell 7cdd18924e AP_CANManager: fixed printf format errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell 45f6b16dec AP_RPM: fixed formatting of pin arming check 2021-08-05 09:43:35 +10:00
Andrew Tridgell a56db06efb AP_Relay: fixed formatting of pin arming check 2021-08-05 09:43:35 +10:00
Andrew Tridgell fe6ac6a581 AP_Button: fixed formatting of pin arming check 2021-08-05 09:43:35 +10:00
bugobliterator e51d358552 AP_RangeFinder: use typename SIM instead of SITL as it conflicts with namespace name 2021-08-05 07:25:31 +10:00
bugobliterator 62b6350af1 AP_AHRS: use typename SIM instead of SITL as it conflicts with namespace name 2021-08-05 07:25:31 +10:00
bugobliterator 3033589fca SITL: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 0d34a78701 GCS_MAVLink: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 88a72cca0b AP_WheelEncoder: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 4312213e18 AP_RangeFinder: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 5653f8c08b AP_RPM: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 02c0ce175e AP_Proximity: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 392ba06f6e AP_OpticalFlow: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator a3c301f689 AP_Notify: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 7832f81a84 AP_Logger: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator f20b7d0f8e AP_InertialSensor: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 58baad9949 AP_IRLock: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 26e2a4a3cb AP_HAL_SITL: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 3d6ef2106f AP_ESC_Telem: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 33f9c38528 AP_Compass: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 56b6c669d7 AP_Beacon: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 90437cb894 AP_Baro: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 114d7b22f4 AP_AHRS: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
bugobliterator 9cad93f58c AC_PrecLand: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Willian Galvani fe99d3e217 AP_NavEKF_Source: add vertical position to pre_arm_check() description 2021-08-04 21:42:39 +09:00
Peter Barker 107e647d00 AP_AHRS: correct compilation under SITL with no EKF3 2021-08-04 18:15:55 +10:00
Andy Piper f71b951cb2 AP_HAL_ChibiOS: return correct value for tx_pending(). 2021-08-04 17:26:18 +10:00
Andy Piper 6f53337b88 AP_RCTelemetry: add baud rate change command frame processing.
report CRSF version when rate changes
2021-08-04 17:26:18 +10:00
Andy Piper 293bb7704e AP_RCProtocol: implementation of CRSF v3
add CRSF command frame types
allow CRSF baud rate changes
record CRSF version being processed
2021-08-04 17:26:18 +10:00
Andrew Tridgell ba45d32c7e AP_Scripting: avoid a error in lua with gcc 10.2 on STM32 with -Werror 2021-08-04 15:48:23 +10:00
Samuel Tabor 4564992b47 AP_Soaring: Add an override-disable flag to update_active_state to support e.g. mission landing sequence. 2021-08-04 06:52:56 +10:00
Leonard Hall 0ad2bf15bc AC_AttitudeControl: Support thrust to weight of 10:1 2021-08-03 17:04:43 +09:00
Andy Piper 30252c1b3f AP_Motors: remove tri yaw servo from motor mask 2021-08-03 11:16:50 +09:00
Hwurzburg 89246739c4 AP_RCTelemetry: warn if Passthru miss-configured
Co-authored-by: Alessandro Apostoli <30294218+yaapu@users.noreply.github.com>
2021-08-03 11:00:11 +10:00
Peter Barker 76c4af6aef GCS_MAVLink: cope with MAV_CMD_ACCELCAL_VEHICLE_POS outside accelcal 2021-08-03 10:54:52 +10:00
Andrew Tridgell eb638a5267 HAL_ChibiOS: added CubeMX files for G431 and G441 2021-08-03 10:54:03 +10:00
Andrew Tridgell bab0c1dfc7 HAL_ChibiOS: fixed build for single FDCAN G4 boards 2021-08-03 10:54:03 +10:00
Andrew Tridgell 8df99f0d15 HAL_ChibiOS: added G431 and G441 support 2021-08-03 10:54:03 +10:00
Peter Barker 3013017369 AP_AdvancedFailsafe: use mission singleton inside AP_AdvancedFailsafe 2021-08-03 10:35:24 +10:00
Andrew Tridgell d0969a4476 AP_Logger: added RATEMAX for mavlink and block backends 2021-08-03 10:23:36 +10:00
Andrew Tridgell 4dfe750d71 AP_Logger: handle instance types in rate limiting 2021-08-03 10:23:36 +10:00
Andrew Tridgell 575c76bdd0 AP_Logger: pack LogStructure to save some flash space
prevent padding between records
2021-08-03 10:23:36 +10:00
Andrew Tridgell 8196f422cb SITL: mark SIM2 as a streaming message 2021-08-03 10:23:36 +10:00
Andrew Tridgell b83c7f3025 AP_NavEKF: mark log messages as streaming 2021-08-03 10:23:36 +10:00
Andrew Tridgell 8681ecebfd AP_NavEKF3: mark log messages as streaming 2021-08-03 10:23:36 +10:00
Andrew Tridgell 84b1468ce6 AP_NavEKF2: mark log messages as streaming 2021-08-03 10:23:36 +10:00
Andrew Tridgell f68ed4f0a4 AP_InertialSensor: mark log messages as streaming 2021-08-03 10:23:36 +10:00
Andrew Tridgell 9a262d19ed AP_GPS: mark log messages as streaming 2021-08-03 10:23:36 +10:00