Commit Graph

27963 Commits

Author SHA1 Message Date
Iampete1 e0f03a3e09 AP_TECS: no longer child of SpdHgtController 2021-11-13 08:05:39 +11:00
Iampete1 7bf1fe1277 AP_Soaring: remove SpdHgt and use TECS direct 2021-11-13 08:05:39 +11:00
Iampete1 1c195d01b8 AP_Landing: remove SpdHgt and use TECS direct 2021-11-13 08:05:39 +11:00
Iampete1 29455adab4 AP_L1_Control: remove SpdHgt and use TECS direct 2021-11-13 08:05:39 +11:00
Peter Barker eb6da9512f AP_HAL_SITL: quieten i2c-device-creation diagnostics 2021-11-12 10:17:28 +11:00
Peter Barker 60453b2250 SITL: quieten MKFIFO warning in case of EEXIST 2021-11-12 09:56:28 +11:00
Peter Barker 5e18f98b8e AP_RCProtocol: number all of the RC Protocols supported
Needed this as soon as we got the RC_PROTOCOL bitmask
2021-11-12 09:00:45 +11:00
Andy Piper 00da3520bc Filter: set output slew rate to zero when max is zero. 2021-11-11 08:13:23 +09:00
Andy Piper 819645d1f6 AC_AutoTune: set slew rate to 0 while twitching 2021-11-11 08:13:23 +09:00
Andy Piper e84a05d5ba AC_PID: add slew_rate modifier 2021-11-11 08:13:23 +09:00
Bill Geyer d2c37daa66 AP_Motors: change internal variable names and methods for mid collective to be more accurate 2021-11-10 16:45:17 -05:00
Bill Geyer 183b5e9e6d AP_Motors: update H_SV_MAN parameter to reflect zero thrust collective 2021-11-10 16:45:17 -05:00
Bill Geyer d02097bf1c AP_Motors: add protection for new tradheli parameters 2021-11-10 16:45:17 -05:00
Bill Geyer 1a50dce206 AP_Motors: coll setup uses actual blade pitch angle 2021-11-10 16:45:17 -05:00
Andrew Tridgell c3442d0143 hwdef: added alternative Durandal 20602 IMU 2021-11-11 08:28:51 +11:00
Patrick José Pereira 6ac7c2dbea AP_HAL_Linux: Update SPIDevice for Navigator R4
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-11-10 18:11:34 -03:00
Patrick José Pereira 176c70b5ff AP_HAL: Update Navigator board to R4
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-11-10 18:11:34 -03:00
Patrick José Pereira 91ea129be3 AP_Compass: Add support to AK09915
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-11-10 18:11:34 -03:00
torsten 14c9de4d95 AP_FETtecOneWire: reset buf_used
if byte is missing due to electrical noise it can now resync
2021-11-11 07:44:57 +11:00
Andrew Tridgell 3f936baf5c AC_AttitudeControl: adjust docs for rate max limits
after discussion with Leonard
2021-11-11 07:22:38 +11:00
bugobliterator 6d07a512e9 StorageManager: fix storage manager counts and merge common areas 2021-11-10 19:03:59 +11:00
Andrew Tridgell 71faeb926c RC_Channel: added fixed wing autotune rc option 2021-11-10 18:46:34 +11:00
Jaime 5d117c6ae7 hwdef: CubeOrange Enable Serial2 and Serial3 in bootloader hwdef 2021-11-10 18:10:20 +11:00
bugobliterator 60e0bec628 AP_Common: add support for setting custom external buffer 2021-11-10 17:21:35 +11:00
bugobliterator 09096cb355 AP_HAL_SITL: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
bugobliterator f57f106c7f AP_HAL_Linux: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
bugobliterator 7a1044309c AP_HAL_ESP32: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
bugobliterator b025c17ec4 AP_HAL_ChibiOS: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
bugobliterator 6d4ac999d0 AP_HAL: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
bugobliterator 528e57c2ae AP_Filesystem: add support for downloading raw storage via ftp sysfs 2021-11-10 17:21:35 +11:00
Iampete1 6c29eb73d2 AP_Motors: Coax: correct array indexnig offset 2021-11-10 11:52:19 +09:00
Iampete1 291ab5b5f2 AP_Motors: Coax: remvoe servo outs from motor mask 2021-11-10 11:52:19 +09:00
Willian Galvani 4c756fd7ef AP_Compass: update MMMC5XX3 driver to support only mmc5983
Registers changed
Product ID changed
Data is now Big endian
Results are now 18 bits instead of 16, but we only consume 16.
Added SPI support

Co-authored-by: Patrick Pereira <patrickelectric@gmail.com>
Co-authored-by: Jacob Walser <jwalser90@gmail.com>
2021-11-10 11:38:25 +11:00
Iampete1 1771481779 AP_Compass: never override custom orentation in calabration 2021-11-10 09:28:54 +11:00
Kirill Shilov f97182f48a hwdef: AIRLink board support 2021-11-10 08:47:21 +11:00
Andrew Tridgell e1c9da85b9 AP_BoardConfig: allow for heater polarity setting on FMU 2021-11-10 08:47:21 +11:00
Andrew Tridgell f7bc7b0d9b HAL_ChibiOS: support more enable pins for late enable 2021-11-10 08:47:21 +11:00
Andrew Tridgell 61cc86b911 GCS_MAVLINK: fixed build of boards with APJ_BOARD_ID>32768
this impacts modalai_fc_v1
2021-11-10 08:46:52 +11:00
Peter Barker 7c774d02bb AP_RCProtocol: remove pointless 100kbaud speed change
added.opened is set to false.  Next time we check_added_uart, the baud
rate is unconditionally set in each of the phases.  Thus this line has
no effect except to confuse the reader
2021-11-10 07:04:47 +11:00
Samuel Tabor 266fbabb6f AP_Landing: Fix slope calculation. 2021-11-10 06:55:14 +11:00
Peter Barker 065cb2decb AP_GPS_UBLOX: tidy reading of uart data
Neither of the return types used for data and numc were actually correct for the values being returned from the uartdriver functions.
2021-11-09 10:31:25 +11:00
Peter Barker e95aedd748 AP_Logger: tidy construction of backends 2021-11-09 10:18:10 +11:00
murata 511dec01c5 AP_WindVane: Make the char_to_hex method a common method 2021-11-09 10:16:25 +11:00
murata 1e91dfe9d6 AP_Common: Make the char_to_hex method a common method 2021-11-09 10:16:25 +11:00
murata 8743ca226c AP_AIS: Make the char_to_hex method a common method 2021-11-09 10:16:25 +11:00
Michael du Breuil f08866639e AP_GPS: Novatel respect the auto config disable parameter 2021-11-09 10:05:26 +11:00
Michael du Breuil eedcb9aded AP_GPS: Isolate the header to be only set once
Also wrap up some common whitespace issues
2021-11-09 10:05:26 +11:00
Randy Mackay 9c1ca781f6 AP_HAL_ChibiOS: update for renamed BRD_HEAT_ parameters 2021-11-09 08:02:57 +09:00
Randy Mackay ad0a5aa260 AP_BoardConfig: rename TEMPMGN_LOW to HEAT_LOWMGN
also these renames are included
BRD_IMU_TARGTEMP becomes BRD_HEAT_TARG
BRD_IMUHEAT_P/I/IJAX become BRD_HEAT_P/I/IMAX
2021-11-09 08:02:57 +09:00
Peter Barker 63f87a863c AP_RCProtocol: use switch statement for 3-frame check
Forces new protocol implementer to consider whether a 3-frame check is
required
2021-11-09 09:06:45 +11:00
Andrew Tridgell 12c10dce32 AP_InertialSensor: fixed comments on IMU types supported 2021-11-09 08:05:03 +11:00
Hwurzburg 47028f136e AP_Motors: change build option name to new standard 2021-11-08 19:13:00 +09:00
Andrew Tridgell ad29135384 AP_Scripting: added plane aerobatics example 2021-11-08 21:08:52 +11:00
Andrew Tridgell 9ccfbe9813 AP_Scripting: added bindings for NAV_SCRIPT_TIME support 2021-11-08 21:08:52 +11:00
Andrew Tridgell 527d9b38e6 AP_Vehicle: added nav_script_time methods
for supporting aerobatics in scripts
2021-11-08 21:08:52 +11:00
Andrew Tridgell ca00eceb98 AP_Mission: support NAV_SCRIPT_TIME 2021-11-08 21:08:52 +11:00
Andrew Tridgell 86c481b4b0 AP_NavEKF3: fixed switch to non-zero primary on disarm
if EK3_PRIMARY is not zero then we were not switching to it when
disarmed
2021-11-07 10:11:52 +11:00
Iampete1 0f1d3c4fc4 AP_Scripting: Docs: document arguments 2021-11-07 08:01:32 +11:00
Andrew Tridgell f91c948fd0 AP_SerialManager: disable unused RX/TX pins on uarts 2021-11-07 07:00:35 +11:00
Andrew Tridgell 61ffe188d4 HAL_ChibiOS: implement disable_rxtx() 2021-11-07 07:00:35 +11:00
Andrew Tridgell 51da1c3eff AP_HAL: added disable_rxtx() to UARTs 2021-11-07 07:00:35 +11:00
Andrew Tridgell 97aee6f45e HAL_ChibiOS: fixed regex error for GPIOs 2021-11-07 07:00:35 +11:00
Peter Barker 306bd0a4ab SIM_GPS: make writing of data w/out byteloss more efficient 2021-11-06 16:56:14 +11:00
Peter Barker 13bd2379cf SITL: use SITL::SerialDevice in place of pipe for communication 2021-11-06 16:54:07 +11:00
Peter Barker 9ebd0cdeed AP_HAL_SITL: use SITL::SerialDevice in place of pipe for communication 2021-11-06 16:54:07 +11:00
Peter Barker a88464c928 SITL: send sv_info from both GPS instances
Without sv_info we don't get the correct ublox type, meaning we get the wrong lag time, meaning EKF2 gets rather more annoyed than it should when we do loops in SITL.
2021-11-05 23:18:11 +11:00
Andrew Tridgell 8a4001817b HAL_ChibiOS: added support for Pixhawk5X 2021-11-05 14:30:43 +11:00
Andrew Tridgell 5f15432e07 HAL_ChibiOS: allow for NODMA patterns
this makes it easy to disable DMA on I2C
2021-11-05 14:30:43 +11:00
Andrew Tridgell 7f2bcf927c HAL_ChibiOS: allow setting of armed pin 2021-11-05 14:30:43 +11:00
Andrew Tridgell c77dfae9a4 HAL_ChibiOS: adjust modalai for INA2xx batt mon change 2021-11-05 14:30:43 +11:00
Andrew Tridgell 75dfa6bae4 AP_BattMonitor: support other INA2xx battery monitors
added parameters for I2C bus and address. Tested on INA231 and INA226

This allows any 2M flash board to use an INA2xx battery monitor
2021-11-05 14:30:43 +11:00
Andrew Tridgell 34ba3e4782 AP_HAL: make set_soft_armed() virtual 2021-11-05 14:30:43 +11:00
Peter Barker f7d42a3f3b GCS_MAVLink: add board ID to AUTOPILOT_VERSION mavlink msg
Co-authored-by: durka
2021-11-05 14:10:46 +11:00
Peter Barker ce352410e1 AP_Vehicle: move EFI to AP_Vehicle 2021-11-05 09:22:17 +11:00
Hwurzburg 0b5123b194 AP_Motors: add Y4 Frame type to Quadcopters 2021-11-05 07:39:27 +11:00
bugobliterator 85284d1bc0 GCS_MAVLink: remove use of AP_BattMonitor if AP_Periph and Battery disabled 2021-11-05 07:38:43 +11:00
bugobliterator 418ac60373 AP_HAL_ChibiOS: disable watchdog when DISABLE_WATCHDOG is defined 2021-11-05 07:38:43 +11:00
Andrew Tridgell 01fb16b3b0 AP_AHRS: relax arming checks for inactive AHRS types
When using an EKF as ride-along we should not fail arming if it has
inconsistent yaw between its lanes. This is especially important when
using external yaw or GPS yaw with EKF3, where yaw is expected to be
bad with EKF2.

The check on DCM is based on the existance of an AHRS view. This is so
that tailsitters do not get arming failures due to the inability of
DCM to cope with being nose up
2021-11-04 17:44:29 +11:00
Michel Pastor 04a170d141 AP_SerialManager: fix ESC telem baud rate so that it is consistent with other protocols baud forcing 2021-11-03 18:09:41 -07:00
Josh Henderson ea4c3d68d6 AP_Airspeed: make MAV_SEVERITY levels higher 2021-11-03 18:06:48 -07:00
Mirko Denecke 8b46ab66bd AP_Motors: remove throttle roll adjust for single motor tailsitter 2021-11-03 12:32:31 +11:00
Buzz 854266dc78 ESP32: drop submodule and add script to get it as a clone and/or submodule
works with either a submodule setup or a 'clone' for either type of dev
2021-11-03 06:06:15 +11:00
Iampete1 b047ea5c02 AP_Scripting: stop and restart scripting via command int 2021-11-02 17:33:34 +11:00
Peter Barker 6a46ccf019 AP_Beacon: have nooploop use base-class uart instance 2021-11-02 11:19:18 +11:00
Iampete1 73fb871695 AP_BatteryMoniter: combine pointer loaded param tables 2021-11-02 11:12:57 +11:00
Iampete1 7d4f305f20 AP_BatteryMoniter: add mask param to sum battery backend. 2021-11-02 11:12:57 +11:00
Josh Henderson ed32136006 AP_Param: remove unused convert_parent_class() 2021-11-02 10:18:09 +11:00
Josh Henderson 9cae5d1120 AP_Param: add sub-group class param conversion method 2021-11-02 10:18:09 +11:00
Iampete1 a45e7608f2 GCS_MAVLink: set RC is_calibrating from command_preflight_calibration param4 2021-11-02 10:05:07 +11:00
Iampete1 c9107b2e98 RC_Channel: add gcs_is_calibrating bool 2021-11-02 10:05:07 +11:00
Iampete1 f7a788dc44 AP_Arming: add rc_in_calibration_check to manual_transmitter_checks and mandatory_checks 2021-11-02 10:05:07 +11:00
Peter Barker 1abef3275e SITL: make ToshibaLED simulator optional 2021-11-02 09:40:09 +11:00
Peter Barker 59bda177ff SITL: cope with fewer than three INS_MAX_INSTANCEs 2021-11-02 09:38:59 +11:00
Josh Henderson 38ef0fd4fa AP_Param: eedump_apparam match Param_header and sentinals to AP_Param.h 2021-11-02 06:06:16 +11:00
Peter Barker 581629b332 SITL: make Ship simulator optional 2021-11-01 21:34:04 +11:00
yaapu b97e335940 AP_CRSF_Telem: adjusted status text frame size based on actually used bytes 2021-11-01 21:32:24 +11:00
yaapu 1850851869 AP_CRSF_Telem: adjusted flight mode frame length based on actually used bytes 2021-11-01 21:32:24 +11:00
Peter Barker 0627ee66c5 AP_Compass: clarify all_configured calculations 2021-11-01 21:28:17 +11:00
Andrew Tridgell e8926f8518 AP_Logger: avoid all opens of log files in main thread
this fixes a problem with sdcards where file open is very slow. It can
trigger a watchdog if it is slow enough. Peter and I hit this issue on
a pixracer today with a new sd card
2021-11-01 20:32:38 +11:00
Buzz 3ecfdd5f88 GCS_MAVLink: esp target is not STM32, so don't do stm32 specific magic
see libraries/AP_HAL_ESP32/README.md for more.

Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00