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
Buzz
adaccdf0ba
AP_Math: esp32 with esp_idf have MIN and MAX defined to something else.
...
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
Buzz
d4e2828540
AP_Logger: esp32 takes longer to init its SD card after boot.
...
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
Buzz
168dc34566
AP_InertialSensor: New fallback type = NONE, which successfully does nothing like an INS, but without needing a real one, like esp32 dev boards.
...
Good for boards that u want to boot even when they dont have an IMU attached.
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
Buzz
ecfdd80bc7
AP_HAL: new HAL layer for esp32
...
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
Buzz
bb8998bdef
AP_HAL_ESP32: new HAL layer for esp32
...
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
Buzz
7c893d7cc9
AP_Filesystem: add ESP32 support
...
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
Buzz
8d9f161b40
AP_Compass: add support for ICM20948 I2C variant and rename existing one as SPI variant
...
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
Andrew Tridgell
98849a3998
HAL_ChibiOS: fixed build for EMPTY uarts
...
this fixes NucleoH743 build
2021-11-01 15:48:25 +11:00
divyateja04
2d7076fd39
AP_SerialLED: removed empty constructors
2021-11-01 10:24:40 +11:00
Andrew Tridgell
2b19b8a988
AP_Compass: switched to GSF based compass learning
...
this makes inflight compass learning faster, more accurate and much
simpler
2021-11-01 09:00:27 +11:00
Andrew Tridgell
282209e3e6
AP_NavEKF3: add accessor for GSF yaw estimator
2021-11-01 09:00:27 +11:00
Andrew Tridgell
0d8cf00c5a
AP_NavEKF2: add accessor for GSF yaw estimator
2021-11-01 09:00:27 +11:00
Andrew Tridgell
bdf903b862
AP_AHRS: add accessor for GSF yaw estimator
2021-11-01 09:00:27 +11:00
divyateja04
001f6a29ee
AP_RangeFinder: removed empty constructors
2021-10-31 09:49:25 +11:00
divyateja04
2406877a60
AP_VisualOdom: removed empty constructors
2021-10-31 09:47:12 +11:00
QioTek
952a827287
HAL_ChibiOS: fixed orientation of ADI1674X and optimize SPI3 DMA
...
HAL_ChibiOS: fixed orientation of ADI1674X and optimize SPI3 DMA
2021-10-31 08:42:05 +11:00
bugobliterator
57e1fb1a81
HAL_ChibiOS: disable building CrashCatcher for non 2M boards
2021-10-30 19:24:57 +11:00
bugobliterator
91fdf6e875
HAL_ChibiOS: fix issue with writing the last byte
2021-10-30 19:24:57 +11:00
bugobliterator
a28bf358d1
HAL_ChibiOS: skip compiling last_crash_dump if bootloader and GCS disabled
2021-10-30 19:24:57 +11:00
bugobliterator
8651d99de6
HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define
2021-10-30 19:24:57 +11:00
bugobliterator
70f606c480
AP_HAL_ChibiOS: restrict crash dump mechanisms only on boards with 2M flash
2021-10-30 19:24:57 +11:00
bugobliterator
909f59f0e0
HAL_ChibiOS: fix build with boards without HAL_CRASH_SERIAL_PORT
2021-10-30 19:24:57 +11:00
bugobliterator
a6b2018cbf
HAL_ChibiOS: fix build and serial crash dump for F4 based boards
2021-10-30 19:24:57 +11:00
bugobliterator
7d199f3e51
HAL_ChibiOS: record info into watchdog as well
2021-10-30 19:24:57 +11:00
bugobliterator
13c83f7010
HAL_ChibiOS: remove build of Crash dump to flash methods when !defined(HAL_CRASH_DUMP_FLASHPAGE)
2021-10-30 19:24:57 +11:00
bugobliterator
66b8b9cf74
HAL_ChibiOS: add support for dumping crash logs to flash page
2021-10-30 19:24:57 +11:00
bugobliterator
b2ffc12092
HAL_ChibiOS: define flash page for dumping crash log
2021-10-30 19:24:57 +11:00
bugobliterator
29568a23ae
HAL_ChibiOS: fetch crash_dump stored in flash
2021-10-30 19:24:57 +11:00
bugobliterator
f9f47cbeeb
AP_HAL: add method to fetch last crash dump
2021-10-30 19:24:57 +11:00
bugobliterator
2af001541e
AP_FileSystem: add crash_dump.bin
2021-10-30 19:24:57 +11:00
bugobliterator
bd08d2d257
HAL_ChibiOS: move crashcatcher methods out from system.cpp into hwdef common
2021-10-30 19:24:57 +11:00
bugobliterator
7c96f295b3
HAL_ChibiOS: use CrashCatcher's hardfault method to log and dump crashes
2021-10-30 19:24:57 +11:00
bugobliterator
69f53a6188
HAL_ChibiOS: add defines for CrashCatcher methods to use
2021-10-30 19:24:57 +11:00
bugobliterator
c32bd845f2
HAL_ChibiOS: build crashcatcher lib alongside chibios
2021-10-30 19:24:57 +11:00
Andrew Tridgell
8a73bdcbe6
APM_Control: suppress roll/pitch D term in ground_mode
...
prevent oscillations which are quite common
2021-10-30 18:45:53 +11:00
Andrew Tridgell
50f9d2601f
AP_Arming: log key @SYS files on arming
2021-10-30 16:44:00 +11:00
Andrew Tridgell
0be1017843
AP_Logger: support logging of files contents
...
this allows us to see key internal data in log files
2021-10-30 16:44:00 +11:00
Andrew Tridgell
a0b662f161
hwdef: fixed reported flash on boards with storage at end of flash
...
this was in hwdef-bl.dat but had been left out of hwdef.dat which led
to flash_free being wrong in apj file
2021-10-29 18:28:36 +11:00
Shiv Tyagi
1c33cfca5d
AP_MSP: factor code in init method
...
This factors code in AP_MSP:init() and removes two of the three identical implementations for initialising backends
2021-10-28 20:37:24 +11:00
Tom Pittenger
6107dcc8e7
AP_ADSB: bugfix vertical velocity sign was backwards
2021-10-28 09:51:33 +11:00
Peter Barker
02dc42275c
AP_HAL_SITL: remove unused/unimplemented methods/vars, tidy namespacing
2021-10-28 09:09:44 +11:00
divyateja04
7f0bf89003
AC_AttitudeControl: removed empty constructors
2021-10-28 09:07:56 +11:00
drtrigon
3a0ed5446a
AP_Scripting: select auto or manual gimbal/camera control mode
...
I have a camera that has picture and video trigger on the same channel. As ArduPilot is not able to handle that currently I wrote a script that allows to switch between auto and manual gimbal and camera control modes. Switching to manual camera control allows to enable picture as well as video trigger.
2021-10-27 18:40:42 +11:00
divyateja04
24eb35f0f6
AP_WheelEncoder: quadrature spelling changed
2021-10-27 16:03:06 +11:00
Tom Pittenger
99912e9e0f
AP_ADSB: UCP cleanup
2021-10-26 16:53:00 -07:00
nicholas-inocencio
f4ff8859e4
AP_ADSB: I implement new mavlink packets ADSB_OUT_STATUS and ADSB_OUT_CONTROL
2021-10-26 16:53:00 -07:00
nicholas-inocencio
9ca681c76d
GCS_MAVLink: integrate new ADSB Ping200X/MissionPlanner new mavlink config and status commands
2021-10-26 16:53:00 -07:00
Hwurzburg
9349abfe48
AP_Motors: add build options for each frame class
2021-10-27 07:59:52 +09:00
divyateja04
d82ad94b7e
AP_WheelEncoder: remove empty constructors
2021-10-26 22:10:21 +11:00
Randy Mackay
58b2154e77
AP_Torqeedo: handle outgoing esc characters
2021-10-26 19:40:52 +09:00
Randy Mackay
096f459148
AP_Torqeedo: handle incoming escape characters
2021-10-26 19:40:52 +09:00
Andrew Tridgell
b94d6b064f
HAL_ChibiOS: convert some hwdef.dat to unix line endings
2021-10-26 15:56:53 +11:00
Andrew Tridgell
80836ca1d9
HAL_ChibiOS: simplify AP_Periph hwdef.dat
2021-10-26 15:56:53 +11:00
Andrew Tridgell
68146d541c
HAL_ChibiOS: removed boilerplate lines from bootloaders
2021-10-26 15:56:53 +11:00
Andrew Tridgell
0378e1a879
HAL_ChibiOS: removed need for a lot of boilerplate hwdef lines
...
bootloader and AP_Periph lines can default to right values
2021-10-26 15:56:53 +11:00
Andrew Tridgell
7056a09ef4
SITL: rename uLanding files to USD1
2021-10-26 15:31:12 +11:00
Andrew Tridgell
55e8725231
SITL: rename uLanding simulation to USD1
2021-10-26 15:31:12 +11:00
Andrew Tridgell
8e689f2e66
AP_SerialManager: rename uLanding simulation to USD1
2021-10-26 15:31:12 +11:00
Andrew Tridgell
8192661042
AP_HAL_SITL: rename uLanding simulation to USD1
2021-10-26 15:31:12 +11:00
Andrew Tridgell
4f2bec72b6
AP_RangeFinder: rename uLanding to USD1_Serial
...
this was rebranded by the vendor Ainstein a long time ago
2021-10-26 15:31:12 +11:00
Andrew Tridgell
c1b9585926
AP_RangeFinder: average over 100Hz frames in USD1 CAN driver
...
this reduces noise
2021-10-26 15:31:12 +11:00
Andrew Tridgell
c56bd323ee
AP_CANManager: fixed CAN protocol docs to include USD1
2021-10-26 15:31:12 +11:00
Andy Piper
32482a29db
AP_Common: define build directory for tests
2021-10-26 11:42:12 +11:00
Andy Piper
ad55a570ee
AP_Common: define build directory for tests
2021-10-26 11:42:12 +11:00
Andy Piper
97b57519bf
AP_OSD: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
6a00819b2d
AP_InertialSensor: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
31c74f9793
AP_Scripting: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
9408c5711d
AP_Camera: remove build dependant compile
2021-10-26 11:42:12 +11:00
Andy Piper
70b02aeadf
AP_BattMonitor: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
0d9b677586
AP_Rally: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
63cea29af3
AP_BLHeli: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
62825ee44f
AP_Arming: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
f9c74f207b
AP_CANManager: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
e1dd0fd70d
AP_AHRS: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
592241f029
AP_Scheduler: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
a2bb0b01e8
AP_RangeFinder: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
71c0d9479a
AP_GyroFFT: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
9bea417d5c
SRV_Channel: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
50b90c2d2a
StorageManager: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
7010a6bf7e
AP_Vehicle: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
...
force compilation failure if build type is unknown
2021-10-26 11:42:12 +11:00
Andy Piper
78621668f8
AP_NavEKF2: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
bc0101e446
AP_NavEKF3: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
008c61215c
GCS_MAVLINK: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Andy Piper
f9b6934d7d
AC_Avoidance: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Iampete1
f5805058c2
AP_Scripting: docs ignore duplicate-set-field warning
2021-10-26 11:05:22 +11:00
Iampete1
648a2b7140
AP_Scripting: docs: add manual bindings
2021-10-26 11:05:22 +11:00
Iampete1
da1fde06ad
AP_Scripting: fix skip check userdata feild write
2021-10-26 11:05:22 +11:00
Iampete1
003561ab75
AP_Scripting: Docs: append _ud to userdata types to avoild name clash with new functions and declare local
2021-10-26 11:05:22 +11:00
Michel Pastor
876f478ae1
RCOutput: fix motor stopping with rev thrust and full throttle
2021-10-26 10:53:34 +11:00
Hwurzburg
e7a157283f
AP_HAL_ChibiOS: add param for second IMU primary in Swan-K1 hwdef
2021-10-26 10:38:28 +11:00
Hwurzburg
9c529c8950
RC_Channel: add RC option to plane for emergency remote landing that forces FS actions to FBWA
2021-10-26 10:34:28 +11:00
Iampete1
d7cc2cb296
AP_HAL_ChibiOS: hwdef.py: allow same GPIO pin in multiple alt configs
2021-10-26 10:05:20 +11:00
kniuk
aabb6f7c59
AP_HAL_ChibiOS: add alt config GPIO to Matek F765-Wing
...
Based on new functionality introduced in #18753
2021-10-26 10:05:20 +11:00
Iampete1
ef9580fcf2
SITL: update tailsitter ground behavoir
2021-10-26 10:03:00 +11:00
IamPete1
950391df12
SITL: add copter tailsitter
2021-10-26 10:03:00 +11:00
Peter Barker
2dbe15911f
AP_GPS: change empty constructors out for 'use AP_GPS_Backend::AP_GPS_Backend'
2021-10-23 15:05:28 +11:00
Peter Barker
e158bab893
AP_Beacon: tidy constructors
2021-10-23 10:10:28 +11:00
Peter Barker
cf9bbb570c
AP_HAL_SITL: correct nullptr check on simulated mavlink rangefinder
...
Obvious copy/paste error
2021-10-22 21:46:01 +11:00
Sebastian Quilter
0276c165ed
GCS_MAVLink: make rangefinder ranges m rather than cm
2021-10-21 21:28:53 +11:00
Sebastian Quilter
0f7c3e3964
AP_RangeFinder: make rangefinder ranges m rather than cm
2021-10-21 21:28:53 +11:00
Sebastian Quilter
1fb1eb793f
AP_Proximity: make rangefinder ranges m rather than cm
2021-10-21 21:28:53 +11:00
Sebastian Quilter
c8434fe1ed
AP_OSD: make rangefinder ranges m rather than cm
2021-10-21 21:28:53 +11:00
Peter Barker
7da5d9861a
SITL: remove use of fprintf in SIM_SPI
2021-10-21 13:04:33 +11:00
Peter Barker
8c60bfc1c3
SITL: correct format string in SIM_IntelligentEnergy24
2021-10-21 13:01:49 +11:00
Peter Barker
06c3290e15
SITL: correct buffer over-read in GPS lag simulation
2021-10-21 12:09:21 +11:00
Peter Barker
6c16da21c5
SITL: make simulated GPS work as a SerialDevice
2021-10-21 12:09:21 +11:00
Peter Barker
1ab8a3e3aa
AP_HAL_SITL: make simulated GPS work as a SerialDevice
2021-10-21 12:09:21 +11:00
Peter Barker
99e80549b1
SITL: move sitl_gps.cpp to SIM_GPS.cpp
2021-10-21 12:09:21 +11:00
Peter Barker
e88cd8498b
AP_GPS: add note about GPS_LEAPSECONDS_MILLIS being copied
2021-10-21 12:09:21 +11:00
Peter Barker
d7ef63deaf
GCS_MAVLink: use USB VID and PID in AUTOPILOT_VERSION mavlink msg
2021-10-20 22:47:03 +11:00
Stephen Dade
1356beb14d
AP_HAL_SITL: Add instance to ADSB simulation
2021-10-20 20:21:33 +11:00
Stephen Dade
016edd28fc
SITL: Add instance to ADSB simulation
2021-10-20 20:21:33 +11:00
Randy Mackay
85dbb70df5
AP_RangeFinder_NMEA: add hondex custom message support
2021-10-20 19:46:21 +11:00
Peter Barker
2bffaef9ca
AP_Arming: log whether disarm was forced
2021-10-20 19:45:58 +11:00
Peter Barker
8ffbddd6ec
SITL: correct compilation when MAX_CONNECTED_MAGS is reduced
...
For example, when building AP_Periph with reduced mag count
2021-10-20 19:43:47 +11:00
Peter Barker
2d192e1fd3
SITL: remove written-only AP::sitl().update_rate_hz
2021-10-20 19:07:17 +11:00
Peter Barker
21030c4e83
AP_HAL_SITL: remove written-only AP::sitl().update_rate_hz
2021-10-20 19:07:17 +11:00
Andrew Tridgell
822e657a70
HAL_ChibiOS: increase PROCESS_STACK on several boards
...
use min of 0xA00 for AP_Periph. A larger stack is needed for parameter
fetching
2021-10-20 19:06:35 +11:00
Iampete1
84db897b7f
AC_Avoidance: Dijkstra: convert Vector3f to curly brace init
2021-10-20 03:45:40 -04:00
Iampete1
8937802f77
AC_Avoidance: Dijkstra: don't consider points in corners
2021-10-20 03:45:40 -04:00
Iampete1
ae9300134a
AC_Avoidance: add option to log vis graph
2021-10-20 03:45:40 -04:00
Iampete1
05e01fb603
AP_Scripting: docs: update GCS
2021-10-20 18:35:09 +11:00
Iampete1
05219ca5c4
GCS_Common: return true result for scripting set_message_interval
2021-10-20 18:35:09 +11:00
Iampete1
1af244e5bc
AP_Scripting: maunaly update GPIO docs as example
2021-10-20 18:35:09 +11:00
Iampete1
6dd9ffc334
AP_Scripting: auto generate docs
2021-10-20 18:35:09 +11:00
Iampete1
a70134ba38
AP_Scripting: generator: ouput Emmylua docs
2021-10-20 18:35:09 +11:00
Iampete1
a5a3b413df
AP_Scripting: wscript: support docs option
2021-10-20 18:35:09 +11:00
Iampete1
b595beab10
AP_Motors: set ouput scaled with float
2021-10-20 18:29:58 +11:00
Iampete1
a590a675d6
AP_RollController: return floats
2021-10-20 18:29:58 +11:00
Iampete1
da4fd7a914
AP_PitchController: return floats
2021-10-20 18:29:58 +11:00
Iampete1
6e4ae3898d
AP_Winch: use floats for get/set output scaled
2021-10-20 18:29:58 +11:00
Iampete1
76ccbeb0fa
AP_SpdHgtControl: use float for get_throttle_demand
2021-10-20 18:29:58 +11:00
Iampete1
d69d493ea6
AP_TECS: use float for get_throttle_demand
2021-10-20 18:29:58 +11:00
Iampete1
fbb9ef422c
AP_Scripting: use floats for get/set output scaled
2021-10-20 18:29:58 +11:00
Iampete1
89c0a8ea04
AP_Airspeed: use floats for get/set output scaled
2021-10-20 18:29:58 +11:00
Iampete1
14b9e99020
RC_Channel: use float for stick mixing
2021-10-20 18:29:58 +11:00
Iampete1
b84633630a
SRV_Channel: use floats for get/set output scaled
2021-10-20 18:29:58 +11:00
Andy Piper
73b0a212f7
AP_Arming: FFT prearm should not be dependent on INS prearm
2021-10-20 18:16:05 +11:00
Peter Barker
cf9f060db8
AP_InertialNav: handle renaming of AP_InertialNav_NavEKF to AP_InertialNav
2021-10-20 18:09:36 +11:00
Peter Barker
300628a570
AP_InertialNav: rename files for delayering
2021-10-20 18:09:36 +11:00
Peter Barker
b8d9f79969
AP_InertialNav: remove old AP_InertialNav.h for delayering
2021-10-20 18:09:36 +11:00
Shiv Tyagi
229e2757d4
RC_Channel : Formatting fix for blimp parameter documentation
2021-10-20 14:22:48 +11:00
Randy Mackay
a09013c656
AP_Torqeedo: correct display system state motor power field type
...
No need to store as float
2021-10-19 01:30:51 -04:00
Randy Mackay
90f7e15bcb
AP_Torqeedo: fixups from peer review
2021-10-19 01:30:51 -04:00
Randy Mackay
1bdfe8ad55
AP_BattMonitor: fixups from peer review
2021-10-19 01:30:51 -04:00
Randy Mackay
47dd2d7aea
RC_Channel: torqeedo clear error aux function
2021-10-19 01:30:51 -04:00
Randy Mackay
d3c8a5e85f
AP_BattMonitor: add torqeedo battery monitor
2021-10-19 01:30:51 -04:00
Randy Mackay
866ea184c8
AP_Torqeedo: major refactor and enhancement
...
SLEW_TIME specifies the rate of change in output to the motor
DIR_DELAY specifies the length of the pause at zero during forward-reverse transitions
POWER param allows configurable power output
Consume Display system state and setup messages
Consume Motor messages to retrieve volt and current
TRQD logs on each motor speed update
AP_Torqeedo: request and consume motor status messages
ESC_Telemetry support
Battery info accessor
Add real-time error reporting of failures to user
Support user manually clearing motor errors via RC
Improve message reply handling
Tiller message consumption improved
Messages with unexpected lengths increment error count
Enums added
Comments improved
Remove unused include
Disable for AP_Periph and minimise features
2021-10-19 01:30:51 -04:00
Randy Mackay
e61624d43b
AP_Torqeedo: motor connector method output slowed to 10hz
2021-10-19 01:30:51 -04:00
Peter Barker
29088e25f9
AP_Vehicle: move SITL object up to AP_Vehicle
2021-10-19 11:34:43 +11:00
Iampete1
8459439798
AP_HAL_ChibiOS: CubeYellow: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
8e381b6017
AP_HAL_ChibiOS: CubeSolo: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
a004de65b3
AP_HAL_ChibiOS: CubePurple: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
e3289d2aec
AP_HAL_ChibiOS: CubeBlack: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
5d5a21a4ec
AP_Hal_ChibiOS: CubeOrange: set default min IMU temp margin
2021-10-19 11:16:45 +11:00
Iampete1
3f98927885
AP_BoardConfig: add min arming temp margin param and getter
2021-10-19 11:16:45 +11:00
Iampete1
55a6b731a8
AP_Arming: add min heater temp check
2021-10-19 11:16:45 +11:00
QioTek
fd2195d6fe
HAL_ChibiOS: added QioTekZealotH743 support
2021-10-19 08:17:43 +11:00
Peter Barker
a39fe77681
SITL: add simulated MCP9600
2021-10-19 08:15:00 +11:00
Peter Barker
0acccaf4b7
AP_ExternalAHRS: factor substring from allocation_error parameter
2021-10-18 12:49:44 +11:00
Peter Barker
d6ebc5578b
AP_DAL: factor substring from allocation_error parameter
2021-10-18 12:49:44 +11:00
Peter Barker
60759f9a83
AP_CANManager: factor substring from allocation_error parameter
2021-10-18 12:49:44 +11:00
Peter Barker
5b2eced5a2
AP_BoardConfig: factor substring from allocation_error parameter
2021-10-18 12:49:44 +11:00
Andrew Tridgell
b0674a2b35
AP_Compass: support 2nd address for ICM20948 compass
2021-10-18 08:29:29 +11:00
Andrew Tridgell
7aa968329c
HAL_ChibiOS: added Nucleo-L476 target
2021-10-17 20:30:20 +11:00
Andrew Tridgell
c8664e0b98
HAL_ChibiOS: added STM32L476 support
2021-10-17 20:30:20 +11:00
Andrew Tridgell
655c757c22
HAL_ChibiOS: added Sierra-L431 peripheral
2021-10-17 20:30:20 +11:00
Andrew Tridgell
5a68e21435
HAL_ChibiOS: support STM32L431
2021-10-17 20:30:20 +11:00
Andrew Tridgell
71e7bb0fe3
HAL_ChibiOS: mark af_parse_cubemx.py as executable, py3
2021-10-17 20:30:20 +11:00
Andrew Tridgell
f1ea4f5d01
HAL_ChibiOS: use a 16 bit sysinterval_t on 16 bit timers
...
prevent mixed size subtraction errors
2021-10-17 20:29:42 +11:00
Peter Barker
05c6a25e52
SITL: move simulated megasquirt to SerialDevice framework
2021-10-17 10:00:08 +11:00
Peter Barker
8c9ade3f7f
AP_HAL_SITL: move simulated megasquirt to SerialDevice framework
2021-10-17 10:00:08 +11:00
Davis Schenkenberger
2026f7efb8
AP_ExternalAHRS: Implement EAHRS Driver for Lord Microstrain AHRS
2021-10-17 08:55:03 +11:00
Davis Schenkenberger
3e748d77c9
Tools: autotest: add test for LORD EAHRS
2021-10-17 08:55:03 +11:00
Asa Davis
85fbbe0704
SITL: add simulator for LORD Microstrain serial EAHRS
2021-10-17 08:55:03 +11:00
Davis Schenkenberger
795e7e53bf
AP_HAL: add helpers le64toh_ptr, be64toh_ptr, put_le64_ptr, put_be64_ptr
2021-10-17 08:55:03 +11:00
Sandy Urazayev
644726ff50
AP_Common: Added missing fenv exception functions from FreeBSD fenv tree
...
Signed-off-by: Sandy Urazayev <ctu@ku.edu>
2021-10-16 20:09:11 +11:00
Andrew Tridgell
67fd862a8c
AP_RCProtocol: check for RC protocol switching enable
...
by default don't allow protocol switching after initial protocol is
found
2021-10-15 19:29:23 -04:00
Andrew Tridgell
6c2689fef2
RC_Channel: added RC_OPTION bit for allowing RC protocol switching
...
this is meant to prevent accidential switching to a disconnected pin
2021-10-15 19:29:23 -04:00
Peter Barker
670663a741
AP_NavEKF3: allow hwdef to override IMU default
2021-10-16 10:26:29 +11:00
courk
b1bf22b53c
GPIO_BBB: fix partially working GPIO init
...
use cleaner way to enable all GPIO banks, including GPIO1.
2021-10-15 15:16:17 -07:00
bugobliterator
5fa50c419d
AP_HAL_ChibiOS: account for TXFIFO when doing flow control detection
2021-10-15 19:57:55 +11:00
Andy Piper
d71fb2cb34
AP_Filesystem: fix ftp burst read with credit to deanharken
2021-10-15 19:02:41 +11:00
Tom Pittenger
12192f60e3
GCS_MAVLink: move ADSB mavlink handling from vehicles to common library
2021-10-14 19:55:27 -07:00
Josh Henderson
2b5e2a00e1
SITL: NMEA Depthfinder add temperature simulation
2021-10-15 13:08:17 +11:00
tajisoft
f076bb3ad1
AP_Scripting: update ahrs-source-gps-optflow.lua
2021-10-14 10:36:29 +11:00
Pierre Kancir
12e1f67326
AP_Compass: only update last_update_ms on raw_field update if on calibration
2021-10-13 19:45:03 +11:00
Peter Barker
893354ccfe
RC_Channel: correct spelling error in parameter description
2021-10-13 19:36:20 +11:00
李孟晓
e5efc52324
AP_BattMonitor: Add support for BatteryInfoAux message
2021-10-13 18:44:05 +11:00
李孟晓
36ceb76cae
AP_UAVCAN: Add battery ID field
2021-10-13 18:44:05 +11:00
李孟晓
54b68ffae3
GCS_MAVLink: Provide the time remaining
2021-10-13 18:44:05 +11:00
李孟晓
bf1a17825c
AP_BattMonitor: Provide the time remaining
2021-10-13 18:44:05 +11:00
Andrew Tridgell
d1c7ed1c82
HAL_ChibiOS: make it clear how to enable parameter backup on CubeBlack
...
uses 16k more ram, but allows auto-restore of corrupted params
2021-10-12 22:08:13 -04:00
Andrew Tridgell
24f40d9049
AP_Mission: allow for more jump commands on high memory boards
...
and allow override of maximum in custom hwdef.dat
2021-10-13 12:49:12 +11:00
Tom Pittenger
e9ce1886c8
GCS_MAVLink: unify DO_SET_CAM_TRIG_DIST for missions and cmd_long
2021-10-12 15:04:00 -07:00
Peter Barker
f5d5387358
AP_HAL_SITL: remove unused ext_fifo_fd member variable
2021-10-12 20:07:19 +11:00
Peter Barker
e9165fdeab
SITL: add simulated RAMTRON device
2021-10-12 20:01:49 +11:00
Peter Barker
67226433e3
AP_HAL_SITL: add simulated RAMTRON device
2021-10-12 20:01:49 +11:00
Peter Barker
437e0e6459
SITL: add simulated SPI devices
2021-10-12 20:01:49 +11:00
Peter Barker
58a7f022fd
AP_HAL_SITL: add simulated SPI devices
2021-10-12 20:01:49 +11:00
Andrew Tridgell
1559f7aa2d
AP_Logger: added stack logging
2021-10-12 16:04:06 +11:00
Andrew Tridgell
8157c24977
AP_HAL: added stack logging
2021-10-12 16:04:06 +11:00
Andrew Tridgell
84bbc707fc
AP_HAL_ChibiOS: added stack logging
2021-10-12 16:04:06 +11:00
auturgy
7c3c3a0a41
HAL_Chibios: support modalai_fc-v1 flight controller
...
Based on M0018 version. Thanks to ModalAI for assistance
2021-10-12 15:47:51 +11:00
Andrew Tridgell
d8c0d82857
AP_RCProtocol: allow DSM bind using uart RX pin directly
2021-10-12 15:47:51 +11:00
Andrew Tridgell
6fa9768eab
HAL_ChibiOS: support GPIO get_mode and set_mode
2021-10-12 15:47:51 +11:00
Andrew Tridgell
029743e27a
AP_HAL: added support for saving and restoring GPIO settings
...
this allows for using any pin (eg. UART TX, RX, RTS, CTS) as a GPIO,
and restoring the old mode. Initial use is for spektrum bind on RX pin
2021-10-12 15:47:51 +11:00
Andrew Tridgell
25324ae0e2
HAL_ChibiOS: support SDMMC2 for sdcard
2021-10-12 15:47:51 +11:00
Andrew Tridgell
281b8eb234
AP_BattMonitor: support LTC2946 I2C battery monitoring
2021-10-12 15:47:51 +11:00
Andrew Tridgell
2903e10fc0
AP_BattMonitor: added INA231 backend
...
only enabled via hwdef.dat for now
2021-10-12 15:47:51 +11:00
Andrew Tridgell
8d9c9d9130
AP_BoardConfig: allow override of BRD_SAFETYENABLE default
2021-10-12 15:47:51 +11:00
Peter Barker
5b8a3c3ff9
SITL: use enumeration in place of O_RDWR for I2C register defs
2021-10-12 14:44:31 +11:00
Iampete1
82cd9e24c3
RC_Channel: add configured_in_storage metthod
2021-10-11 22:19:17 -04:00
Iampete1
d16be50e57
AP_Motors: add PWM min and max param conversion function
2021-10-11 22:19:17 -04:00
Iampete1
14dfac42e7
AP_Motors: remove use of external PWM min and max
2021-10-11 22:19:17 -04:00
Andrew Tridgell
d962e094e7
HAL_ChibiOS: change RCIN PULLUP to PULLDOWN
...
this makes us more consistent between boards
2021-10-12 11:52:36 +11:00
Andrew Tridgell
47da7f5c9b
HAL_ChibiOS: change RCIN FLOAT to PULLDOWN
...
this lowers the chance of noise on a RCIN pin causing incorrect
protocol detection
2021-10-12 11:52:36 +11:00
Nick Exton
ffa2bba35c
HAL_ChibiOS: add missing return to Dual CDC get_usb_baud()
2021-10-12 10:54:44 +11:00
Andrew Tridgell
e6aae3caf6
HAL_ChibiOS: fix G4 I2c bus speeds
2021-10-12 10:54:07 +11:00
Iampete1
0f8bcbf4b8
AP_Scripting: optimise genrated bindings for size
2021-10-12 10:08:56 +11:00
Iampete1
c1dbb1c046
AP_Scripting: change all -FLT_MAX FLT_MAX ranges to no check
2021-10-12 10:08:56 +11:00
Iampete1
302e855dab
AP_Scripting: add 'skip_check keyword to skip argument range check
2021-10-12 10:08:56 +11:00
Iampete1
0772af5539
AP_Scripting: generator: dont initalise trivial types
2021-10-12 10:08:56 +11:00
Iampete1
32d6919ae2
AP_Scripting: generator: remove unneeded else in nullable returns
2021-10-12 10:08:56 +11:00
Peter Barker
90f8cbde13
SITL: provide HAL_x_ENABLED for many SITL features
...
This allows for the feature to be compiled out
2021-10-12 09:04:55 +11:00
Peter Barker
aa4f375015
SITL: SIM_RichenPower: remove reference to stderr
2021-10-12 09:00:45 +11:00
Peter Barker
c9df857f16
SITL: avoid use of stderr/::fprintf
2021-10-12 09:00:17 +11:00
Peter Barker
94ad32b91c
SITL: remove HIL_MODE vestiges
2021-10-12 08:57:05 +11:00
Peter Barker
d98cda12c6
AP_HAL_SITL: remove HIL_MODE vestiges
2021-10-12 08:57:05 +11:00
Willian Galvani
34b42d8252
AP_HAL: Navigator: set HAL_BARO_EXTERNAL_BUS_DEFAULT to 6
...
This is the bus exposed in the board for external sensors.
This is required as HAL_Linux doesn't probe all i2c buses.
2021-10-11 17:57:52 -03:00
Willian Galvani
2feb740a03
AP_Baro: add option to set BARO_EXT_BUS default value
...
This allows boards to define their own BARO_EXT_BUS default value.
This is mostly relevant for linux boards, as HAL_LINUX doesn't
probe all buses when BARO_EXT_BUS == -1.
2021-10-11 17:57:52 -03:00
tajisoft
68274ff996
AP_Scripting: fix switch check in ahrs-source
2021-10-11 20:59:46 +11:00
Andrew Tridgell
5f6af3567a
SRV_Channel: added SERVO_GPIO_MASK
...
this allows for channels to be set as GPIO without setting
SERVOn_FUNCTION=-1. That allows for use of UAVCAN or SBUS outputs on
those channels with a servo function, while using the aux pin as a
GPIO
2021-10-11 19:28:11 +11:00
Rishabh
13f3d04300
AC_Avoid: Early exit Dijkstra's path finder if destination is found
2021-10-11 02:21:48 -04:00
Andrew Tridgell
08fcfa04ae
APM_Control: only save autotune gains when P finished
...
this prevents saving values which are temporarily high due to tuning
process
See this bug report
https://discuss.ardupilot.org/t/plane-4-1-0-stable/76507/45
2021-10-10 19:00:57 +11:00
Iampete1
f0bc041b86
AP_Gererator: IE Fuel Cell: reset health timer at init
2021-10-08 19:34:34 -04:00
Lucas De Marchi
24adf18685
AP_HAL_Linux: small fixes to cpu affinity
...
- Do not mention x:y form in the comment since it's not supported
- Give more detail in the help output regarding the meaning of each form
- No prints in the helper parse function, let the caller print it
2021-10-08 16:08:52 -07:00
HefnySco
9f1cbdc0a5
AP_HAL_Linux: cpu affinity
2021-10-08 13:47:56 -07:00
Stephen Dade
e85f803e27
SITL: Expand multi-drone example
2021-10-08 17:29:10 +11:00
Peter Barker
521918d74c
SITL: remove set-but-not-used _framerate member variable
2021-10-08 14:23:18 +11:00
olliw42
312604f577
AP_Mount: add handle_global_position_int() method to backend and use it + little spelling
2021-10-08 14:22:43 +11:00
murata
fa609afc44
AP_Scripting: Change the script file name for messages
2021-10-07 18:21:11 -04:00
Josh Henderson
1e0ae4b998
GCS_MAVLINK: Common capacity_remaining_pct checks healthy status and has_current
2021-10-07 22:16:02 +11:00
Josh Henderson
ca568953d9
AP_BattMonitor: capacity_remaining_pct add checks for healthy status and has_current
2021-10-07 22:16:02 +11:00
bugobliterator
f298ea406e
HAL_ChibiOS: enable RNG only for H7 based boards off for the rest by default
2021-10-07 19:43:11 +11:00
bugobliterator
fc4d59c5a4
HAL_ChibiOS: setup hw random number generator for stm32 chips
2021-10-07 19:43:11 +11:00
bugobliterator
792e6666a3
HAL_ChibiOS: add random number generator implementation for ChibiOS
2021-10-07 19:43:11 +11:00
bugobliterator
e4f4b3ce1f
AP_HAL: add true random number generator
2021-10-07 19:43:11 +11:00
Hwurzburg
b327f80946
AP_Airspeed: do not cal if backend does not exist
2021-10-07 13:36:44 +11:00
Peter Barker
43e83f18be
AP_AHRS: do not send EKF_STATUS_REPORT from DCM
...
This means that even if you configure DCM as your primary you won't get
its status.
Given the status was currently garbage, this isn't necessarily a bad
thing at the moment.
2021-10-06 19:10:36 +11:00
Peter Barker
2f69dcc085
AP_AHRS: cache some trig results for yaw in DCM backend
2021-10-06 19:10:36 +11:00
Peter Barker
44d56854be
AP_AHRS: make AP_AHRS_DCM an AP_AHRS backend
2021-10-06 19:10:36 +11:00
Iampete1
2b402ed2d7
AP_BLHeli: use is_dshot_protocol in place of >= AP_HAL::RCOutput::MODE_PWM_DSHOT150
2021-10-06 18:59:57 +11:00
Iampete1
3b8b90d170
AP_HAL: move is_dshot_protocol to AP_HAL
2021-10-06 18:59:57 +11:00
Iampete1
9751cb5b24
AP_HAL_ChibiOS: move is_dshot_protocol up to AP_HAL
2021-10-06 18:59:57 +11:00
Iampete1
9b02baa5f0
AP_HAL: add note to output_mode enum about params using it
2021-10-06 18:59:57 +11:00
Iampete1
436f9a3f46
AP_BLHeli: move OTYPE to use RCOutput::MODE not AP_Motors::PWM_TYPE
2021-10-06 18:59:57 +11:00
Iampete1
9106835c93
AP_BLHeli: use motors is_digital_pwm_type helper
2021-10-06 18:59:57 +11:00
Iampete1
bc29735cb2
AP_Motors: make pwm_type protected and add helpers
2021-10-06 18:59:57 +11:00
Iampete1
b472300191
AP_MotorsUGV: make pwm_type private and add is_digital_pwm_type method
2021-10-06 18:59:57 +11:00
Iampete1
86e56934b6
AP_Scripting: update analog input example to check for valid pin
2021-10-06 18:42:51 +11:00
Iampete1
f50326c154
AP_WindVane: check for valid analog pins
2021-10-06 18:42:51 +11:00
Iampete1
e5ae023be2
AP_Scripting: AnalogSource set_pin returns bool
2021-10-06 18:42:51 +11:00
Iampete1
8f50eab6c2
AP_RSSI: check for valid analog pin
2021-10-06 18:42:51 +11:00
Iampete1
f667c098a2
AP_RangeFinder: analog: check for valid pin
2021-10-06 18:42:51 +11:00
Iampete1
5ea72bd371
AP_LeakDetector: check for valid analog pin
2021-10-06 18:42:51 +11:00
Iampete1
9f04cded3b
AP_HAL_SITL: AnalogSource: return bool for set_pin
2021-10-06 18:42:51 +11:00
Iampete1
62474e6dc8
AP_HAL_Linux: AnalogSource: set_pin return true
2021-10-06 18:42:51 +11:00
Iampete1
f479964c5a
AP_HAL_Empty: AnalogSource: return bool
2021-10-06 18:42:51 +11:00
Iampete1
f7cba024c1
AP_HAL_ChibiOS: AnalogSource: check for valid pin
2021-10-06 18:42:51 +11:00
Iampete1
bb04406496
AP_HAL: AnalogSource: set_pin returns bool
2021-10-06 18:42:51 +11:00
Iampete1
19f66803ff
AP_BatteryMonitor: Analog: check valid pin
2021-10-06 18:42:51 +11:00
Iampete1
0731af751a
AP_Airspeed: analog: check valid pin
2021-10-06 18:42:51 +11:00
Andrew Tridgell
613f970870
AP_Compass: added AK09918 support
...
minor update over AK09916
2021-10-06 18:16:00 +11:00
Andrew Tridgell
32731e2cd0
AP_Scripting: fixed bug in string logging with logger.write()
...
this dereferenced a bad pointer, leading to crash and watchdog
thanks to Charlie for finding this!
2021-10-06 18:14:54 +11:00
Andrew Tridgell
33529c98a9
HAL_ChibiOS: check the ROMFS line for IOMCU is added
2021-10-06 06:45:43 +11:00
Andrew Tridgell
52124cf602
HAL_ChibiOS: fixed f1 bootloader build errors
2021-10-06 06:44:36 +11:00
Andrew Tridgell
8deaa1b46b
HAL_ChibiOS: fixed warning for USB
2021-10-06 06:44:36 +11:00
Andrew Tridgell
4daf4ad501
HAL_ChibiOS: lock in no warnings for chibios RTOS build
2021-10-06 06:44:36 +11:00
Peter Barker
402669f269
AP_HAL_SITL: add and use HAL_SITL &hal_sitl
...
analogous to our normal "extern hal" stuff but removes need for casting
2021-10-05 22:24:38 +11:00
Andrew Tridgell
4dbff85de7
HAL_ChibiOS: check for common hwdef.dat errors
...
catches missing GPIO type, mismatched timers and UARTs or bad pin types
2021-10-05 15:46:02 +11:00
Iampete1
f0a284c1e7
AP_Hal_ChibiOS: R9Pilot: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
0143518954
AP_Hal_ChibiOS: mRoControlZeroF7: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
a282a39866
AP_Hal_ChibiOS: F4BY: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
6f1f26a72a
AP_Hal_ChibiOS: CubeOrange: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Peter Barker
919dc26ff6
AP_Camera: use location methods to convert altitudes
2021-10-05 13:54:19 +11:00
Michel Pastor
c590e1f1c5
OP_OSD_Screen: make the rangefinder distance element fixed length
2021-10-05 12:15:08 +11:00
Iampete1
5848510876
AP_HAL_ChibiOS: set flow control disabled if no RTS line
2021-10-05 12:11:47 +11:00
Iampete1
2d39836b42
AP_SerialManager: always set options
2021-10-05 12:11:47 +11:00
Michel Pastor
a9fed2f9bc
RCOutput: fix full throttle bug
2021-10-05 11:47:04 +11:00
Hwurzburg
3b543a8ceb
AP_Compass: Change orientation labels to match order of rotation
2021-10-05 11:22:32 +11:00
Hwurzburg
873097c030
AP_AHRS: Change orientation labels to march order of rotation
2021-10-05 11:21:48 +11:00
Peter Barker
e4ebea9e26
GCS_MAVLink: use AHRS position for location
...
This is our canonical source of position.
2021-10-05 10:20:44 +11:00
Peter Barker
07aa00f2b4
GCS_MAVLink: tidy sending of high-latency message
2021-10-05 10:20:44 +11:00
Peter Barker
3292128531
AP_HAL_SITL: allow for selection of Storage backend type at runtime
2021-10-05 10:16:54 +11:00
Peter Barker
102b1c6879
AP_HAL: allow for selection of Storage backend type at runtime
2021-10-05 10:16:54 +11:00
Tom Pittenger
9578b9bcd4
AP_ADSB: Ping200X update health, remove option for external baro, and gnss altitude units bugfix
2021-10-03 09:57:39 -05:00
Shiv Tyagi
9729377bb3
AP_Rangefinder : make get_temp const
...
This makes backend get_temp methods const
Co-Authored-By: Josh Henderson <69225461+hendjoshsr71@users.noreply.github.com>
2021-10-03 09:21:31 -04:00
Shiv Tyagi
5cca39e50a
GCS_Common : send water depth for each rangefinder instance
...
This sends depth message for each downward facing rangefinder instance which has data.
Co-Authored-By: Josh Henderson <69225461+hendjoshsr71@users.noreply.github.com>
2021-10-03 09:21:31 -04:00
Andrew Tridgell
9a29f2558c
HAL_SITL: fixed cygwin build
...
cygwin does not handle panic being weak, it gets a link error
2021-10-03 14:00:34 +11:00
Andrew Tridgell
c15221fd53
HAL_ChibiOS: fixed orientation of ICM42605 on QiotekZealotF427
2021-10-03 14:00:09 +11:00
Andrew Tridgell
6953778b4c
HAL_ChibiOS: use micros16() for blheli pass-thru IRQ
...
saves some IRQ overhead, makes time handling more consistent
2021-10-02 18:26:39 +10:00
Andrew Tridgell
5714ee113f
HAL_ChibiOS: added micros16() method
2021-10-02 18:26:39 +10:00
Andrew Tridgell
1283d42fbf
AP_HAL: added micros16() method
...
fast method for both 16 and 32 bit timers
2021-10-02 18:26:39 +10:00
Andrew Tridgell
2aef3364bc
HAL_ChibiOS: optimisation for AP_HAL::micros() on systems with 32 bit timers
...
most ChibiOS boards have a 32 bit timer. This optimisation reduces the
cost of micros() from 0.3us to 0.06us, which is significant in
interrupt handlers and for accurate timing. It takes advantage of the
timer being 32 bit with 1MHz clock
2021-10-02 18:26:39 +10:00
Iampete1
1371499022
AP_Motors: add note about test to new inverse functions
2021-10-01 22:04:51 +01:00
Iampete1
484a0b989f
AP_Motors: add expo inverse test example
2021-10-01 22:04:51 +01:00
Iampete1
0c1fe0b373
AP_MotorsMulticopter: add inverse thrust_to_actuator and thrust curve functions
2021-10-01 22:04:51 +01:00
lthall
d5286ec533
AC_AttitudeControl: Fix initialize bug
2021-10-01 13:14:46 -04:00
Peter Barker
4aeb85d080
GCS_MAVLINK: correct mavlink return code when wiping storage header
2021-10-01 11:39:25 +10:00
bugobliterator
ae65f2e6ab
AP_GPS: fix build and working with single GPS Receiver config
2021-09-30 21:53:07 +10:00
Andrew Tridgell
aa05629ef6
AP_HAL: added peekiovec test
...
fixes #18285
2021-09-30 12:46:07 +10:00
Peter Barker
df7b2982d3
AP_Filesystem: add fgets
2021-09-30 10:31:03 +10:00
Peter Barker
3f37a21aaf
GCS_MAVLink: set message intervals from config files
2021-09-30 10:31:03 +10:00
bugobliterator
dd9f513aa5
AP_HAL_ChibiOS: setup led control via lua script for HerePro
2021-09-30 08:52:27 +10:00
bugobliterator
d23e37e3bb
AP_Scripting: add script for controling herepro leds per vehicle state
2021-09-30 08:52:27 +10:00
bugobliterator
e666e460f9
AP_Scripting: add periph methods for getting vehicle states
2021-09-30 08:52:27 +10:00
bugobliterator
2673cde52b
AP_UAVCAN: add dsdl for sending vehicle notify state
2021-09-30 08:52:27 +10:00
bugobliterator
e4c6c0ad17
AP_UAVCAN:add support for sending Vehicle Notify state
2021-09-30 08:52:27 +10:00
Siddharth Purohit
24448d6adf
AP_Scripting: add rgb control for independent LEDs
2021-09-30 08:52:27 +10:00
bugobliterator
756972a80b
AP_DAL: replace config_error with allocation_error
2021-09-30 08:51:26 +10:00
bugobliterator
f5ee2a3a50
AP_CANManager:replace config_error with allocation_error
2021-09-30 08:51:26 +10:00
bugobliterator
fd369e8262
AP_UAVCAN: throw allocation error when failing to allocate
2021-09-30 08:51:26 +10:00
bugobliterator
b897f984a7
AP_UAVCAN: use config error instead of panic on allocation failure
2021-09-30 08:51:26 +10:00
bugobliterator
224abe7933
AP_ExternalAHRS: use config error instead of panic on allocation failure
2021-09-30 08:51:26 +10:00
Ben Wolsieffer
68ee2c21dd
AP_Control: apply pitch rate limit to turn coordination
...
At high bank angles, for example when rolling to/from inverted, a large turn
coordination pitch rate offset is requested. Before this patch, this offset was
not subject to the configured pitch rate limit, which could result in pitch
controller integrator windup.
2021-09-29 17:03:32 +01:00
Gone4Dirt
0038b8edd7
StorageManager: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
ab07a7c4fa
SRV_Channel: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
a0245a2640
GCS_MAVLink: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
f8ed6426a9
AP_Scripting: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
55f6feac9a
AP_Scheduler: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
e0af10886b
AP_RangeFinder: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
9b7b9c351a
AP_Rally: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
e5488e1869
AP_OSD: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
0abfde0a7d
AP_NavEKF3: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
9090cb1271
AP_NavEKF2: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
290794bf93
AP_InertialSensor: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
79787d55cc
AP_GyroFFT: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
40f8407c1d
AP_CANManager: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
a97cafbaad
AP_BLHeli: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
1d02ac768d
AP_BattMonitor: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
4421e4a842
AP_Arming: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
94b97313be
AP_AHRS: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
765f6b69fa
AC_Avoidance: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Gone4Dirt
7c20658acf
AP_Vehicle: Add Heli build type
2021-09-29 19:55:48 +10:00
Iampete1
b6de44cc7b
AP_HAL_ChibiOS: CubeOrange: add alt config for telem1 RTS CTS as GPIO
2021-09-29 19:55:21 +10:00
Iampete1
8ae5bc5ad0
AP_HAL_ChibiOS: hwdef: allow GPIO alt config
2021-09-29 19:55:21 +10:00
Iampete1
a96150a528
AP_HAL_ChibiOS: allow enabling GPIO as alt config
2021-09-29 19:55:21 +10:00
Iampete1
dc45a113f9
AP_HAL_ChibiOS:UARTDriver: allow re-defintion of RTS and CTS pins
2021-09-29 19:55:21 +10:00
Iampete1
eeb5dd3c96
AP_SerialManger: always run set_options
2021-09-29 19:55:21 +10:00
Iampete1
0e0cc36f8f
AP_BoardConfig: remove ALT_CONFIG param if no alt config is posible
2021-09-29 19:55:21 +10:00
bugobliterator
1a6179148b
AP_IOMCU: ensure page_GPIO is aligned to 16bit
2021-09-29 19:08:10 +10:00
Peter Barker
8ce4a1fce7
AP_Camera: use AP_AHRS singleton to get current location and home
2021-09-29 18:33:01 +10:00
Andrew Tridgell
e85594e423
HAL_ChibiOS: added KakuteH7 support
2021-09-29 18:11:04 +10:00
Andrew Tridgell
d1d5cd5d9f
HAL_ChibiOS: fix sdcard on SPI bus on H7
...
the spiIgnore() call was hanging on H7. The ChibiOS submodule change
fixes that, but this patch is also needed to ensure we timeout any
spiIgnore calls correctly
2021-09-29 18:11:04 +10:00
Andrew Tridgell
2c2c85c4d8
HAL_ChibiOS: fixed polled SPI
2021-09-29 18:11:04 +10:00
Andrew Tridgell
27e93155f4
HAL_ChibiOS: fixed build on boards with OTG2 and no CAN interfaces
2021-09-29 18:11:04 +10:00
Peter Barker
d7ff072d26
SITL: remove mtk GPSs
2021-09-29 17:28:59 +10:00
Peter Barker
6bd2bc2179
AP_HAL_SITL: remove mtk GPSs
...
These are ancient and of very poor quality.
2021-09-29 17:28:59 +10:00
Peter Barker
068f91169c
AP_GPS: remove mtk GPSs
...
These are ancient and of very poor quality.
2021-09-29 17:28:59 +10:00
Pierre Kancir
c676d4772f
AP_ONVIF: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Pierre Kancir
c12217eeb5
AP_HAL: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Pierre Kancir
cceaa1e2fc
AP_Common: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Iampete1
6aa8319b90
AP_Scripting: re-emmit error messages every 10 seconds if SCR_DEBUG_LVL > 0
2021-09-29 17:11:18 +10:00
Peter Barker
207f38dfaf
AP_Filesystem: raise an internal error for fileop on main thread
...
#ecoefi.log
2021-09-29 15:50:52 +10:00
Tatsuya Yamaguchi
0b06d4072e
AP_OSD: remove OSDn_BTEMP_* params when BARO_MAX_INSTANCES=1
2021-09-29 10:51:14 +10:00
Tatsuya Yamaguchi
f249fe7eb2
AP_Hott_Telem: cope with BARO_MAX_INSTANCES = 1
2021-09-29 10:51:14 +10:00
Tatsuya Yamaguchi
f3173174f3
SITL: cope with BARO_MAX_INSTANCES < 3
2021-09-29 10:51:14 +10:00
Josh Henderson
67eb6d17eb
AP_NavEKF3: initialize stateStruct.quat to unit length
2021-09-28 19:09:16 +10:00
Josh Henderson
9a274ba565
AP_NavEKF2: initialize stateStruct.quat to unit length
2021-09-28 19:09:16 +10:00
Josh Henderson
9b74452270
AP_Math: add Internal_Error for quaternion of 0 length
2021-09-28 19:09:16 +10:00
Peter Barker
8d00152815
AC_AutoTune: stop specifying bit-widths for state
...
new: bin/arducopter 1670916 2544 194276 1867736
master: bin/arducopter 1671232 2544 194272 1868048
new: bin/arduplane 1670692 2452 194364 1867508
master: bin/arduplane 1671012 2452 194364 1867828
2021-09-28 11:00:30 +10:00
Andrew Tridgell
f148c3fc44
AP_Logger: fixed stuck logging with LOG_DISARMED=1
...
this prevents a stuck write closing logging when LOG_DISARMED=1
2021-09-28 10:47:48 +10:00
Peter Barker
143f23db89
AP_Logger: move SBP logging structures into AP_GPS
2021-09-28 10:45:51 +10:00
Peter Barker
da66ecf1f2
AP_GPS: move SBP logging structures into AP_GPS
2021-09-28 10:45:51 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
52c39bc382
GCS_MAVLink: add ESC_TELEMETRY_1_TO_4 to the mavlink_id_to_ap_message_id table
2021-09-28 10:01:16 +10:00
Shiv Tyagi
5f94986af1
GCS_Common : Mavlink wrap when battery percentage is above 100
...
When calculated battery percentage is above 100 we wrap it to INT8_MAX
2021-09-28 09:54:55 +10:00
Iampete1
3ae8dfead4
AP_Relay: update param description to inclde IOMCU
2021-09-28 09:40:25 +10:00
Iampete1
ade01f41d9
AP_HAL_ChibiOS: support digital write via IOMCU
2021-09-28 09:40:25 +10:00
Iampete1
ba58cb86db
AP_IOMCU: support digital write
2021-09-28 09:40:25 +10:00
Iampete1
12d5fbbc86
AP_IOMCU: iofirmware: support digital write
2021-09-28 09:40:25 +10:00
Iampete1
69624b1c1b
AP_BatteryMoniter: add plane Loiter to QLand failsafe action
2021-09-28 09:31:13 +10:00
Iampete1
d566b24c04
AP_Vehickle: add Loiter alt then QLAND mode reasons
2021-09-28 09:31:13 +10:00
Iampete1
407b70b82e
AP_Common: location: add get alt distance method
2021-09-28 09:31:13 +10:00
Iampete1
3d566ca59b
RC_Channel: add trim to current servo and RC option
2021-09-28 09:16:24 +10:00
Josh Henderson
4d7dddf337
SITL: sim_MS5611 fix simulated driver for 32bit usage
2021-09-28 09:15:11 +10:00
Josh Henderson
1019628ae4
SITL: test_ms5611 fix <-15C test case
2021-09-28 09:11:48 +10:00
Josh Henderson
9a7530ad50
AP_HAL_Linux: make panic() WEAK
2021-09-28 09:11:48 +10:00
Josh Henderson
328cf01436
AP_HAL_SITL: make panic() WEAK
2021-09-28 09:11:48 +10:00
Josh Henderson
0ae1536e4a
AP_InternalError: change panic to return error code as string in SITL
2021-09-28 09:11:48 +10:00
Josh Henderson
6c3612b51d
AP_Common: enable SITL unit testing
...
apcommon
2021-09-28 09:11:48 +10:00
Josh Henderson
0125ae26ac
AP_Math: enable SITL unit testing
2021-09-28 09:11:48 +10:00
Peter Barker
1ae8385a0f
AP_GPS: correct GPS switching when GPS blending disabled
2021-09-28 09:08:50 +10:00
Sebastian Quilter
69120fa1c7
AP_OSD: #if sidebars
2021-09-28 09:04:45 +10:00
Sebastian Quilter
9a58ccb3cd
AP_OSD: sidebar support for remaining 4 fonts
2021-09-28 09:04:45 +10:00
Sebastian Quilter
2379036e9a
AP_OSD: Add sidebars for MAX7456
2021-09-28 09:04:45 +10:00
Iampete1
b6a73dd3d0
RC_Channel: renstate ArmDisarm Discription with 4.1 note
2021-09-27 13:33:54 +01:00
Andrew Tridgell
4aa88d172c
HAL_ChibiOS: adjust Swan-K1 parameters
...
limit down pitch to 15 degrees to prevent overspeed, and limit angular
rates to 100 deg/s
2021-09-27 21:21:53 +10:00
Andy Piper
20a91dc1c8
AP_SerialManager: correct docs for SERIAL8
2021-09-26 19:51:50 +01:00
Iampete1
25aedc4ee7
AP_Proximity: lower SF45B update rate
2021-09-26 20:26:20 +09:00
Peter Barker
b0e59b2611
RC_Channel: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
341379c5bd
GCS_MAVLink: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
d86e2792fd
AP_Vehicle: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
43469955a9
AP_HAL_ChibiOS: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
5433cbe9a5
AP_Generator: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
f71b4ec568
AP_BattMonitor: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Peter Barker
d9844cc75a
AP_Arming: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
TunaLobster
dd379af7cc
AP_Scripting: Add Z logger format to example
2021-09-25 14:00:00 +01:00
Peter Barker
0d03cef48b
AP_ADSB: tidy sending of SageTech RF mode
...
Saves 64 bytes on CubeBlack
2021-09-25 15:55:53 +10:00
Tom Pittenger
de753f386c
AP_Vehicle: fix periph-heavy compile errors when INS is disabled
2021-09-24 10:47:13 -05:00
Tom Pittenger
fcfaab4beb
AP_Frsky_Telem: fix periph-heavy compile errors with different things enabled
2021-09-24 10:47:13 -05:00
Tom Pittenger
d45526ff42
AP_Compass: fix periph-heavy compile errors with different things enabled
2021-09-24 10:47:13 -05:00
Tom Pittenger
6ac1b7daf2
GCS_MAVLink: fix periph-heavy compile errors with different things enabled
2021-09-24 10:47:13 -05:00
Josh Henderson
27fa2e776d
AP_HAL_ChibiOS: Hitec-Airspeed move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-24 21:05:05 +10:00
Andrew Tridgell
6d093e56fb
HAL_ChibiOS: added Nucleo-L496 AP_Periph target
2021-09-24 18:08:00 +10:00
Andrew Tridgell
ca45fcbc70
AP_FlashStorage: support L496 MCUs
2021-09-24 18:08:00 +10:00
Andrew Tridgell
0212e23cd3
HAL_ChibiOS: added support for STM32L496 MCUs
...
good MCU for AP_Periph
2021-09-24 18:08:00 +10:00
lthall
31e7d672c9
AC_AttitudeControl: AC_PosControl: Update PSC logging to include desired
2021-09-23 20:07:52 +09:00
Leonard Hall
087a2b92c3
AP_Logger: Update PSC logging to include desired
2021-09-23 20:07:52 +09:00
Leonard Hall
77fbcf1741
AP_Math: Control: add expo calculation.
2021-09-23 20:03:53 +09:00
Paul Riseborough
c828bdfbc9
AP_NavEKF3: Reduce output observer vertical velocity error when bad IMU
2021-09-23 18:55:28 +10:00
Paul Riseborough
8429c66860
AP_NavEKF3: Make subsequent bad IMU event detections faster
2021-09-23 18:55:28 +10:00
Paul Riseborough
458c67639d
AP_NavEKF3: Force velocity state to follow GPS when IMU data is bad
2021-09-23 18:55:28 +10:00
Paul Riseborough
c0d88e2673
AP_NavEKF3: Fix vertical velocity reset
...
Fixes bug that prevents the vertical velocity being reset to the GPS if the position aiding has already timed out and improves sensitivity of the bad IMU data check.
2021-09-23 18:55:28 +10:00
Paul Riseborough
17c2ba5ac1
AP_NavEKF3: Fix bug causing too frequent resets if bad IMU data detected
2021-09-23 18:55:28 +10:00
Peter Barker
f0efc1300e
AP_HAL_Linux: move defines of GPIO LOW/HIGH into cpp file
...
Insane having these generic defines happening if you include GPIO_BBB.h
2021-09-22 21:37:00 +10:00
Peter Barker
9c24916115
AP_HAL_SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
275457fd2c
AP_HAL_Linux: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
6ce79785b5
AP_OSD: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
dac4134533
AP_InertialSensor: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
df3cfe12a9
AP_VisualOdom: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
4b5525f53e
SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
224ff97f5c
AP_Compass: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
9f6b9c7519
GCS_MAVLink: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
d6e5f8398d
AP_RTC: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
0305a79b7b
AP_Param: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
b66fd214f0
AP_NavEKF3: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
4aa6c212d2
AP_MSP: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
fec9d4850d
AP_Logger: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
1976b2b859
AP_HAL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
1bd62362a4
AP_HAL_ChibiOS: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
6d615a3e16
AP_GPS: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
df9de582e4
AP_DAL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
b18bdb80d6
AP_BattMonitor: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
cf9a774bc2
AP_Baro: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
22e9ad4818
AP_Airspeed: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Peter Barker
8f6bed23cf
AP_AccelCal: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
bugobliterator
b43c9961a3
AP_Param: disable format security
2021-09-22 21:36:34 +10:00
bugobliterator
f3fef657f9
AP_GPS: handle failure to allocation of GPS CAN message subscribers
2021-09-22 21:36:34 +10:00
bugobliterator
0de393bf7f
AP_BoardConfig: add allocation failure handling loop
2021-09-22 21:36:34 +10:00
Tatsuya Yamaguchi
1dcc5c3030
AP_BattMonitor: cope with AP_BATT_MONITOR_MAX_INSTANCES < 9
2021-09-22 18:58:12 +10:00
Iampete1
955be569a3
AP_Scripting: add forward flight motor shutdown applet
2021-09-22 18:16:32 +10:00
yaapu
6a459af624
AP_OSD: decrease blink frequency from 2Hz to 1Hz on MSP DisplayPort
...
Allows to actually see the blinking on hardware with a slow screen refresh rate
2021-09-22 18:06:12 +10:00
yaapu
9acfdaaa19
AP_OSD: added packed decimal support to MSP DisplayPort
...
This allows to take advantage of ArduPilot's compact decimal fonts
2021-09-22 18:06:12 +10:00
yaapu
f33d6c4ec1
AP_MSP: fix rssi rounding issue
2021-09-22 17:09:50 +10:00
Pierre Kancir
d853d16c42
AP_Math: fix vectorN ctor warning by using C++11 brace initilization in all cases
2021-09-21 20:51:37 +10:00
Paul Riseborough
e9c339a0a0
AP_NavEKF3: fix wind speed covariance initialisation bug
2021-09-21 17:16:36 +10:00
Andrew Tridgell
758ce2699e
HAL_ChibiOS: added Hitec-Airspeed hwdef
2021-09-21 13:51:40 +10:00
Andrew Tridgell
7f59366cc0
HAL_ChibiOS: process AIRSPEED lines in hwdef.dat
2021-09-21 13:51:40 +10:00
Andrew Tridgell
f65620f4f3
AP_Airspeed: allow for an AIRSPEED list in hwdef.dat
...
this saves a lot of flash by only including specific drivers
2021-09-21 13:51:40 +10:00
Peter Barker
f07d40a570
AP_Mission: fix infinite loop with nav commands that won't start
...
Discovered this when trying to run the standard CMAC mission on Sub
2021-09-21 13:42:01 +10:00
Shiv Tyagi
a24a8c110b
SRV_Channel : Improved should_e_stop method by using switch
...
This method earlier used >=, <= and == operators which is less maintainable. Hence, I replaced it by switch.
Co-Authored-By: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-09-21 11:17:09 +10:00
Gone4Dirt
30589f9b29
AP_Generator: Make unhealthy driver message persist
2021-09-21 11:14:03 +10:00
Andy Piper
e1fdab8423
AP_RCTelemetry: don't enter parameter mode while armed.
...
exit parameter mode quickly on ping
construct and respond to ping frames correctly
2021-09-21 10:41:58 +10:00
Iampete1
f541653502
SRV_Channel: fix override timeout without repeated calls
2021-09-21 10:24:04 +10:00
Iampete1
db6490818f
AP_Button: update FUNx values
2021-09-21 09:36:24 +10:00
Iampete1
524ea39dfa
RC_Channel: add convert_options function
2021-09-21 09:36:24 +10:00
Iampete1
c67705b02d
RC_Channel: do_aux_function_armdisarm no longer needs to be virtual
2021-09-21 09:36:24 +10:00
Iampete1
39ca7dae1c
RC_Channel: add two new ARMDISARM options and deprecate old
2021-09-21 09:36:24 +10:00
Josh Henderson
96cabfc423
SITL: add unit tests for SIM_MS5525
2021-09-21 09:30:58 +10:00
Josh Henderson
18a0632276
SITL: MS5XXX drivers use check_conversion_accuracy
2021-09-21 09:30:58 +10:00
Josh Henderson
2a2399c8f1
SITL: airspeed DLVR add atmosphere temperature model
2021-09-21 09:30:58 +10:00
Josh Henderson
c454cea401
AP_Airspeed: fix MS5525 driver to allow copying driver to 64bit SITL
2021-09-21 09:30:58 +10:00
Josh Henderson
5e90649a6e
SITL: fix MS5525 for temp <20C and negative pressures
2021-09-21 09:30:58 +10:00
Hwurzburg
aa402d9a55
AP_Tuning: add options to prevent spamming tuning error messages
2021-09-21 07:56:19 +09:00
Hwurzburg
502aff27da
AC_AttitudeControl: add options to prevent spamming tuning error messages
2021-09-21 07:56:19 +09:00
Iampete1
169375d14f
RC_Channel: arming_check_throttle to virtual
2021-09-18 15:52:38 +01:00
Shiv Tyagi
cdb4ec8ad0
Plane : Improved LAND_THEN_NEUTRL to work on all control surfaces
...
This fixes the issue #18593
Co-Authored-By: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2021-09-17 22:06:24 -05:00
Michelle Rossouw
c9a3b16aa7
SITL: Blimp SITL add initial dynamics
2021-09-18 08:26:23 +10:00
Andrew Tridgell
f77e64ac83
HAL_SITL: Fixed default PWMs for blimp
2021-09-18 08:26:23 +10:00
Andrew Tridgell
5dcfa95444
GCS_Mavlink: allow setting of AHRS_TRIM_Z
2021-09-17 14:07:14 +10:00
Andrew Tridgell
3715ce6d1a
AP_AHRS: allow setting of AHRS_TRIM_Z
2021-09-17 14:07:14 +10:00
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
Peter Barker
5f980929d9
AP_Motors: use add_motors to save flash
2021-08-31 20:23:58 +10:00
nkruzan
0a236bc13d
AP_Vehicle: log internal error and report bitmask to GCS
...
AP_Vehicle.cpp: cast parameter bitmask as (unsigned) per Peter B.
rework per Peter B.
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
remove unnecessary send_internal_error_statustext function
remove Write_InternalError function
2021-08-31 15:54:02 +10:00
Peter Barker
2be49cb42b
AP_Airspeed: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
875b6331a4
AP_Compass: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
acc595ff57
AP_Mission: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
522c05fcc9
AP_Module: fix examples for AP_AHRS_DCM becoming backend
2021-08-31 14:28:53 +10:00
Peter Barker
29d2eed9e4
Sub: view update does not take skip_ins_update
2021-08-31 14:28:53 +10:00
Peter Barker
9dbd9d1e06
AP_AHRS: call INS update in AP_AHRS::update w/o holding data sem
...
We shouldn't be holding the data semaphore while waiting for the samples
- lots of things might be unnecessarily blocked
DCM's update function doesn't need to take the semaphore as it is
already taken by AP_AHRS
2021-08-31 14:28:53 +10:00
TunaLobster
c20914c0c6
SITL: Add C++ library for JSON interface
...
Includes examples for a 1-D rover, minimum, and a copy of Socket as SocketExample.
2021-08-31 14:28:03 +10:00
Iampete1
970d0ea2a3
AP_BoardConfig: make sure heater is left off if disabled
2021-08-31 10:32:25 +10:00
Josh Henderson
b1028035bc
AP_UAVCAN: cleanup comments in BatteryInfoAux dsdl message
2021-08-31 10:30:28 +10:00
Andrew Tridgell
584fb7cd7b
HAL_ChibiOS: use more USB buffers on higher end F7 chips
2021-08-31 10:12:00 +10:00
Andrew Tridgell
4fdc1ebc30
AP_InertialSensor: fixed locking issue in delta accumulation
...
this fixes a bug in calculating delta velocity and delta acceleration
between threads.
2021-08-31 10:10:18 +10:00
Iampete1
e28650c8bd
RC_Channel: remove recompute_pwm_no_deadzone
2021-08-31 09:48:59 +10:00
Peter Barker
3a5062c90b
AP_NMEA_Output: eliminate AP::ahrs().get_location
2021-08-31 09:47:31 +10:00
Peter Barker
cc514af158
AP_AHRS: eliminate AP::ahrs().get_location
2021-08-31 09:47:31 +10:00
Andrew Tridgell
a412795045
AP_Terrain: make TERRAIN_MARGIN a float
...
it turns out very large margins are needed for some locations
2021-08-31 09:25:36 +10:00
Randy Mackay
e5bde1a085
AP_VisualOdom: use AP_AHRS::using_extnav_for_yaw to protect against aligning to oneself
2021-08-31 09:20:17 +10:00
Randy Mackay
1c08866342
AP_AHRS: add using_extnav_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
63e579d738
AP_NavEKF3: add using_extnav_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
b984f1370c
AP_VisualOdom: integrate rename to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
e7be608a4a
AP_AHRS: rename is_ext_nav_used_for_yaw to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Randy Mackay
0edfd2634f
AP_NavEKF3: rename using_external_yaw to using_noncompass_for_yaw
2021-08-31 09:20:17 +10:00
Iampete1
ce56bfe786
AP_Arming: check status and health of all GPS
2021-08-31 09:13:57 +10:00
Peter Barker
de9f8a9320
AP_Logger: specify frames on PSC fields
2021-08-31 09:09:02 +10:00
Andy Piper
8035b92e6e
AP_RCProtocol: increase CRSF frame timeout to account for scheduling delays
2021-08-31 08:18:32 +10:00
Andrew Tridgell
39f44147b8
HAL_ChibiOS: reduce the impact of UART DMA contention
...
this changes the heuristics for UART TX DMA allocation to greatly
reduce the chances of DMA contention causing long delays on other
devices
This fixes issues with FETTec driver output and gimbal status messages
as reported by Amilcar and OlliW. The problem is particularly bad when
no GPS is connected to GPS1 on fmuv3 and derived boards (such as
CubeBlack)
key changes:
- remember the contention_counter across begin() calls, as the GPS
calls begin with new baudrates regularly
- added a is_shared() API to Shared_DMA, allowing the UART driver to
avoid TX DMA on shared streams when at low baudrates.
2021-08-31 07:55:27 +10:00
Andrew Tridgell
dc252aa8f5
GCS_MAVLink: check for null comm_port before writing
...
this was found when adding debug code to write to a specific channel
2021-08-31 07:55:27 +10:00
Rishabh
ee176d26e9
AC_PrecLand: Raise internal error if state machine is running while precland is disabled
2021-08-30 14:08:44 +09:00
Iampete1
7d536666b4
SITL: SIM_Sailboat: remove use of AHRS
2021-08-30 13:40:37 +10:00
Marek Łukasiewicz
5de6c690d8
HAL_ChibiOS: Rename STM32F412 hw definition file
2021-08-30 10:27:45 +10:00
Pierre Kancir
60155a7fec
Filter: add more unittests
2021-08-30 09:51:25 +10:00
Pierre Kancir
fd38be843a
Filter: finish modefilter test
2021-08-30 09:51:25 +10:00
Peter Barker
0792caab83
AP_AHRS: factor out an update_notify_from_filter_status
2021-08-28 23:11:09 +10:00
Peter Barker
ca6d214bb3
AP_AHRS: remove unused getGpsGlitchStatus method
2021-08-28 19:46:13 +10:00
Iampete1
6628fd2837
SITL: swap rotation direciton of motor 2 for lower yaw offset
2021-08-28 10:32:59 +09:00
Teo
4988f72ee2
RC_Channel: removed dead code
2021-08-28 10:29:06 +09:00
bugobliterator
fd95c32d88
AP_HAL_ChibiOS: add CubeOrange Periph Heavy build
2021-08-27 09:17:30 -07:00
Pierre Kancir
cc39eafe02
AP_GyroFFT: ensure we got float division when there are needed instead of integer divisions
2021-08-27 13:42:03 +10:00
Pierre Kancir
23a67a9e60
AP_GyroFFT: checking that uint16_t is negative is useless
2021-08-27 13:42:03 +10:00
Pierre Kancir
39fd32aa9e
AP_GyroFFT: reduce first_harmonic scope
2021-08-27 13:42:03 +10:00
Andrew Tridgell
858a6b7e87
HAL_ChibiOS: allow FlywooF745 to build again
2021-08-27 07:45:58 +10:00
Pierre Kancir
bcfb07b39f
AP_Rangefinder: fix override in constructor
2021-08-26 21:48:19 +10:00
Randy Mackay
b524094216
AP_NavEKF2: init rngOnGnd to 5cm to avoid div-by-zero
2021-08-26 12:23:32 +09:00
Leonard Hall
ff58054d1b
AC_AttitudeControl: AC_PosControl: Clean up to use .xy()
2021-08-26 12:22:52 +09:00
Leonard Hall
8223d664a7
AC_AttitudeControl: AC_PosControl: Non functional clean up
2021-08-26 12:22:52 +09:00
Leonard Hall
520883b504
AC_WPNav: Fix Jerk units
2021-08-26 12:22:52 +09:00
Leonard Hall
9c097dd6be
AC_AttitudeControl: AC_PosControl: limit initial acceleration
2021-08-26 12:22:52 +09:00
Leonard Hall
445e52b821
AC_AttitudeControl: AC_PosControl: fix stopping point initialization
2021-08-26 12:22:52 +09:00
Randy Mackay
b396169084
AP_Scripting: copter-fast-descent.lua example script
2021-08-26 11:25:54 +09:00
Randy Mackay
1a7826295f
AP_Vehicle: add virtual set_target methods
2021-08-26 11:25:54 +09:00
Randy Mackay
e8155bc47c
AP_Scripting: add AP_Vehicle set_target_pos_NED and posvelaccel_NED bindings
2021-08-26 11:25:54 +09:00
Randy Mackay
a3b4c8efd8
AP_Scripting: minor reorder of AP_Vehicle bindings
...
this is a slightly better grouping
2021-08-26 11:25:54 +09:00
Randy Mackay
5eb65c9a1f
AP_Scripting: add AHRS:get_relative_position_NED_origin binding
2021-08-26 11:25:54 +09:00
Pierre Kancir
ec03c9eaf4
AP_Scheduler: correct pointer checking
2021-08-26 10:17:22 +10:00
Andrew Tridgell
1655beeca9
AP_MSP: fixed build without MSP
...
found by custom.ardupilot.org
2021-08-26 10:01:35 +10:00
olliw42
617024bdfa
GCS_Mavlink: scale across full valid range
2021-08-26 09:44:59 +10:00
olliw42
bacfe82c66
GCS_MAVLINK: add receiver_rssi() method, and use it
2021-08-26 09:44:59 +10:00
Marek S. Łukasiewicz
47f2e13024
HAL_ChibiOS: Add hwdef for BirdCANdy
2021-08-26 09:43:39 +10:00
Iampete1
2a834508ae
AC_AttitudeControl: check for zero rate Y max before taking min
2021-08-25 23:48:52 +01:00
Peter Barker
1387ed06bd
AP_WindVane: remove empty contructors
2021-08-25 20:42:23 +10:00
Peter Barker
47455f12db
AP_Vehicle: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
9dd02f0c2b
AP_Scripting: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
c9fd7ee00d
AP_Button: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Peter Barker
4ae3ad555d
AP_Arming: add and use HAL_BUTTON_ENABLE
2021-08-25 19:03:42 +10:00
Samuel Tabor
3ead096329
AP_Soaring: Initialize filter to the current filtered measurement
2021-08-25 19:00:46 +10:00
Michael du Breuil
e3109e4b29
AP_Logger: Use actual MAVLink constant
...
This isn't a functional change, it just improves the readibility of the
file
2021-08-25 18:52:21 +10:00
Randy Mackay
4bdb428cfe
AP_Scripting: add copter-circle-speed.lua example
...
Co-authored-by: Iampete1 <iampete@hotmail.co.uk>
2021-08-25 18:39:09 +10:00
Randy Mackay
8548695e5d
AP_Scripting: add bindings for get_circle_radius, set_circle_rate
2021-08-25 18:39:09 +10:00
Randy Mackay
1725eda961
AP_Vehicle: add get_circle_radius, set_circle_rate
2021-08-25 18:39:09 +10:00
Peter Barker
9114d4fc86
AP_AHRS: make home-relative functions AHRS-frontend only
2021-08-25 18:32:07 +10:00
Peter Barker
e8066aa993
AP_AHRS: constrain airspeed sensor airspeed using WIND_MAX
...
fixes regression from d1d790019c
2021-08-25 18:28:12 +10:00
Peter Barker
a933652950
AP_AHRS: return perfect airspeed estimate for EKF-type 10
...
... rather than the EKF3 estimate
2021-08-25 18:28:12 +10:00
Pierre Kancir
29b13ff98a
AP_InertialSensor: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
Pierre Kancir
ae11353d81
AP_Baro: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
Pierre Kancir
4481bc6147
AP_Compass: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
yaapu
617b023c6f
AP_Frsky_Telem: added frame 0x500C for true/apparent WIND info
2021-08-25 17:13:16 +10:00
yaapu
d91e2008d3
AP_RCTelemetry: incremented WFQ scheduler slots to 20
2021-08-25 17:13:16 +10:00
yaapu
7e3395eebd
AP_OSD: added a new backend for msp displayport aka canvas mode support
2021-08-25 17:12:15 +10:00
yaapu
188b7a50a9
AP_MSP: added a new backend for msp displayport aka canvas mode support
2021-08-25 17:12:15 +10:00
yaapu
05686f3c60
AP_MSP: fixed MSP RC out command
2021-08-25 17:12:15 +10:00
yaapu
c1e50dc676
AP_SerialManager: added a new MSP DisplayPort serial backend
2021-08-25 17:12:15 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d907328f80
AP_FETtecOneWire: README.md clarity improvements
2021-08-25 16:05:05 +10:00
Randy Mackay
04c8ad6150
RC_Channel: rename visodom_calibrate to visodom_align
...
This should be a non-functional change
2021-08-25 15:42:02 +10:00
Josh Henderson
b94fb40a33
SITL: add unit tests for SIM_MS5611
2021-08-25 12:37:43 +10:00
bugobliterator
a32a32ab43
HAL_ChibiOS: change name for USART2_CTS pin in STM32H757xx.py
2021-08-25 10:09:23 +10:00
bugobliterator
21ad3c7ac1
AP_HAL_ChibiOS: add HereID board
2021-08-25 10:09:23 +10:00
Gone4Dirt
c94b9e8a19
AP_RPM: Mark type = PWM as not used in docs
2021-08-25 09:36:58 +10:00
Gone4Dirt
b402a50bb2
SITL: Remove RPM params from examples that are set to defaults
2021-08-25 09:36:58 +10:00
Gone4Dirt
7be9773f95
SITL: Update RPM param in FlightAxis defaults
2021-08-25 09:36:58 +10:00
Gone4Dirt
df1280e999
AP_RPM: Whitespace changes
2021-08-25 09:36:58 +10:00
Gone4Dirt
5bb4729d61
AP_RPM: Restructure params to be per instance of _params
2021-08-25 09:36:58 +10:00
Iampete1
58e14b2dc3
AC_Loiter: update ANG_MAX param description
2021-08-24 22:14:08 +01:00
Andrew Tridgell
e9427f1dae
HAL_ChibiOS: removed remnants of CHIBIOS_ADC_MAVLINK_DEBUG
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5bacd35eaa
HAL_ChibiOS: review fixes
2021-08-25 07:11:31 +10:00
Andrew Tridgell
4cebcede31
HAL_ChibiOS: switched to fix allocation for BMDA streams on H7
...
this avoids issues with BDMA stream assignments due to bugs found
while testing boards with both I2C4 and SPI6
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5c3056e50d
GCS_MAVLink: added MCU_STATUS message
2021-08-25 07:11:31 +10:00
Andrew Tridgell
0f59e1ebb8
AP_Logger: log MCU temperature and voltage
2021-08-25 07:11:31 +10:00
Andrew Tridgell
57e87b9820
HAL_ChibiOS: measure MCU temperature and ref voltage on H7
...
this uses ADC3 to measure the internal MCU temperature and the reference
voltage. This uses a currently unused BDMA channel
2021-08-25 07:11:31 +10:00
Andrew Tridgell
c91410f4b7
AP_HAL: added MCU status support
2021-08-25 07:11:31 +10:00
Randy Mackay
5de30cc7cf
AP_Scripting: ahrs-source-gps-optflow script fixups from peer review
...
also dded assert on optical flow to ensure the script is used with a version of AP that includes the optical flow bindings
2021-08-24 16:49:04 +09:00
Randy Mackay
9313535a35
AP_OpticalFlow: SITL driver applies _FX/YSCALER params
2021-08-24 16:49:04 +09:00
Randy Mackay
2aa17916b1
AP_Scripting: add ahrs-source-gps-optflow
...
this supports automatic switching between GPS and opticalflow
2021-08-24 16:49:04 +09:00
Randy Mackay
df187d5d3f
AP_Scripting: add optical flow bindings
2021-08-24 16:49:04 +09:00
Randy Mackay
d1f2acd813
AP_NavEKF3: rename varInnovOptFlow to flowVarInnov
...
also renamed innovOptFlow to flowInnov
2021-08-24 16:49:04 +09:00
Randy Mackay
85ade10e85
AP_NavEKF3: ofDataNew made local
2021-08-24 16:49:04 +09:00
Randy Mackay
11847cfcf5
AP_NavEKF3: always calculate optical flow innovations and variances
2021-08-24 16:49:04 +09:00
Randy Mackay
914a8dca49
AP_NavEKF3: for loops use uint8_t instead of unsigned
2021-08-24 16:49:04 +09:00
Randy Mackay
5779ebd177
AP_NavEKF3: remove unused Tbn_flow
2021-08-24 16:49:04 +09:00
Randy Mackay
f9fd63e01e
AP_NavEKF3: remove unused optflow calcs
2021-08-24 16:49:04 +09:00
Hwurzburg
00a1cbffde
AP_CANManager: correct metadata for values
2021-08-24 10:52:33 +10:00
Peter Barker
f02ffac9a4
AP_SerialManager: reserve Id 41 for CoDev serially-attached ESCs
2021-08-24 10:24:02 +10:00
Peter Barker
e2722c8e12
AP_AHRS: move active_accel_instance into DCM private header section
2021-08-24 10:23:36 +10:00
Peter Barker
d6c7c59199
AP_AHRS: remove custom_rotation matrix to frontend
...
Only one of these per vehicle
2021-08-24 10:23:36 +10:00
Peter Barker
645a5302d0
AP_AHRS: move DCM parameters into DCM header
2021-08-24 10:23:36 +10:00
Peter Barker
74709c6292
AP_AHRS: move groundspeed vector up to AP_AHRS_DCM
...
The other estimators all have their own implementation of this
2021-08-24 10:23:36 +10:00
Peter Barker
8169910866
AP_AHRS: move frontend parameters up / DCM parameters down
2021-08-24 10:23:36 +10:00
Peter Barker
62f6a5b033
AP_Compass: fail calibration unless at least 1 compass to cal
2021-08-24 10:18:38 +10:00
Josh Henderson
3c9547caff
AP_Baro_SITL: use temp_board_offset and timeout
2021-08-24 09:55:01 +10:00
Josh Henderson
e8dcdd60c5
SITL: param use baro temp_board_offset instead of temp_flight
2021-08-24 09:55:01 +10:00
Iampete1
8c61d1a18d
AP_Radio: hide params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
9bcd706dae
AP_Proximity: hide params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
2bad7734db
AP_landing: hide deepstall params with enable flag
2021-08-24 09:38:46 +10:00
Iampete1
280171e96b
AP_Beacon: hide params with enable flag
2021-08-24 09:38:46 +10:00
Mohammad Hefny
2a14181e69
update to new files names
2021-08-24 07:45:41 +10:00
Mohammad Hefny
ac30fbd7b0
SITL: Webots2021b Compatible
2021-08-24 07:45:41 +10:00
Rishabh
ae98545202
AC_PrecLand: Add prec landing state machine
2021-08-23 15:00:56 +09:00
Rishabh
d4edd84573
AC_Precland: Allow landing retry and failsafe handling
2021-08-23 15:00:56 +09:00
Peter Barker
44803b92c7
SITL: correct SIM_FETtecOneWire consume function
...
when this was factored out the parameter wasn't taken into account.
2021-08-23 13:47:35 +10:00
Andrew Tridgell
531ca4289e
HAL_ChibiOS: switch to minimum scheduling delta of 10us
...
this avoids an issue with the ChibiOS 20.3 virtual timer
implementation that can result in a scheduling slip equal to the
system timer period.
Andy has been suggesting this change for a while. I resisted it as I
thought it would impact on soft-serial parsing, but it turns out it
doesn't.
Fixes issue #18383
2021-08-23 10:45:44 +10:00
Peter Barker
5613610641
AP_Arming: remove redundant checks_to_perform check
...
This is identical to the check just above it
2021-08-23 08:51:38 +09:00
Peter Barker
066ad0f8da
APM_Control: remove unused variables
2021-08-23 08:39:41 +09:00
Andrew Tridgell
4e98636a53
AP_Terrain: added a TERRAIN_MARGIN parameter
...
this sets the acceptance margin for GCS generated terrain data. You
can raise this to allow old data generated with the less accurate
longitude scaling to be used
2021-08-22 20:32:46 +10:00
Iampete1
df7321c0da
AC_PosControl: init_z_controller_stopping_point: remove duplicate set_integrator
2021-08-21 09:54:33 +01:00
Peter Barker
70aef84997
AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Peter Barker
815f7017d4
AP_BoardConfig: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Andrew Tridgell
fed927f1a4
AP_RCTelemetry: fixed CRSF build dependency issue
...
found on custom.ardupilot.org
2021-08-20 06:46:15 +10:00
Samuel Tabor
27f0320452
AP_Landing_Slope: Log height used for flare timing.
2021-08-19 17:59:33 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
7498d5c296
AP_FETtecOneWire: Fix compilation on some exotic compilers
2021-08-19 17:57:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
92a75661e0
AP_FETtecOneWire: Fix state of CRC error counters after _fast_throttle_cmd_count overflow
2021-08-19 17:57:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
2f4c79fd1e
AP_FETtecOneWire: only check for telemetry if it has been requested at some point
...
Only check for telemetry after sending a fast-throttle request for that particular ESC
Added more debug information from message handling state machine
2021-08-19 17:57:58 +10:00
Tom Pittenger
b9918cd0d5
AP_ADSB: added Ping200X driver /w UCP protocol
2021-08-19 17:49:27 +10:00
Tom Pittenger
896dd49c96
GCS_MAVLink: add MAV_CMD_ADSB_IDENT cmd
2021-08-19 17:49:27 +10:00
Tom Pittenger
8c9dcf4ad8
AP_Math: added CRC16_CCITT non-standard variant
2021-08-19 17:49:27 +10:00
Andy Piper
0279c86f7f
AP_HAL_ChibiOS: use hardware serial inversion pins on F4 boards that support it
...
change mamba F405 to active high as per betaflight
2021-08-19 17:05:42 +10:00
Andrew Tridgell
f822d8f5f6
AP_Scripting: example script for testing EKF3/DCM switching
2021-08-19 14:42:28 +10:00
Andrew Tridgell
973466856c
AC_WPNav: update variable name for consistency
2021-08-19 14:42:28 +10:00
Andrew Tridgell
285798446a
AC_AttitudeControl: apply EKF Z gain scaler
...
for flying with DCM
2021-08-19 14:42:28 +10:00
Andrew Tridgell
53e7436525
AP_AHRS: allow for fallback to DCM in quadplanes
...
this adds the necessary functions to allow for flying a quadplane on
DCM as an emergency fallback. It sets the NavGainScalar to 0.5 to
reduce the VTOL controller gains to allow planes to cope with the
higher lag of DCM
2021-08-19 14:42:28 +10:00
bugobliterator
d64621e349
HAL_ChibiOS: remove duplicate FLASH_RESERVE_START_KB from hwdef
2021-08-19 14:20:58 +10:00
bugobliterator
ddc50a8420
AP_GPS: add option to set a dedicated line for Moving Baseline Data
2021-08-19 14:20:58 +10:00
bugobliterator
e9faab288c
GCS_MAVLink: allow mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
a8ab20abd9
AP_HAL_ChibiOS: allow sending stats via mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
6b64cfd6c1
AP_FileSystem_Sys: allow sending stats via mavftp on AP_Periph
2021-08-19 14:20:58 +10:00