Commit Graph

50200 Commits

Author SHA1 Message Date
Andrew Tridgell 8e729841e8 Tools: added modalai_fc-v1 bootloader 2021-10-12 15:47:51 +11:00
Andrew Tridgell 4b4eaabe55 Tools: setup for building modalai_fc-v1 2021-10-12 15:47:51 +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 28c34bdce4 Tools: recognise more USB devices for uploader 2021-10-12 15:47:51 +11:00
Andrew Tridgell 00491275e0 waf: added image_maxsize to apj files
this allows the px4_uploader.py script to load apj files
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
Andrew Tridgell 130f26c49a Tools: added --no-extf option to uploader.py
needed for PX4 bootloader
2021-10-12 15:47:51 +11:00
Andrew Tridgell e0d23c6495 AP_Bootloader: sync with PX4 board types 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 e99a5c6ef4 Plane: Quadplane: reinstate THR PWM param discriptions for stable users 2021-10-11 22:19:17 -04:00
Iampete1 67abf23077 Tool: autotest: defaults: remove MOT_PWM_MIN and _MAX 2021-10-11 22:19:17 -04:00
Iampete1 82cd9e24c3 RC_Channel: add configured_in_storage metthod 2021-10-11 22:19:17 -04:00
Iampete1 59b40a3845 Tools: autotest: copter: remove check for PWM min/max zero 2021-10-11 22:19:17 -04:00
Iampete1 b7db7f8cac Sub: convert to PWM min and max in AP_Motors 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 12c1b3e8f5 Copter: add MOT_PWM param conversion 2021-10-11 22:19:17 -04:00
Iampete1 30c9cccf78 Plane: Quadplane remove THR_MIN_PWM and THR_MAX_PWM 2021-10-11 22:19:17 -04:00
Iampete1 d1d6342165 Plane: update_throttle_range dont set_throttle_range 2021-10-11 22:19:17 -04:00
Iampete1 44c5153df8 Sub: update_throttle_range don't set_throttle_range 2021-10-11 22:19:17 -04:00
Iampete1 f487118ee9 Copter: update_throttle_range don't set_throttle_range 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
Iampete1 a69f40b7fb Tools: autotest: update quadplane throttle min param name 2021-10-11 22:19:17 -04:00
Andrew Tridgell a43ea35098 Tools: rebuild IO firmware with PULLDOWN for RCIN 2021-10-12 11:52:36 +11: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
Peter Barker 495ec52a00 .github: produce elf_diff output for Plane 2021-10-12 10:58:16 +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
Josh Henderson 483d308781 Copter: GCSMavlink Guided inputs check force_set and reject 2021-10-11 19:52:15 -04: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
Dr.-Ing. Amilcar do Carmo Lucas 181a5900df Copter: Send ESC telemetry over mavlink while doing compassmot
compassmot can be used to bypass all PID control loops (this avoids forwarding IMU noise to the motors) while stress-testing the ESCs+motors.
So that temperatures can be monitored in real-time during those long tests, send ESC telemetry as well.
2021-10-11 19:03:01 -04: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
Tatsuya Yamaguchi 918218bdd4 Copter: fix compilation when ACRO, SPORT and DRIFT modes are disabled 2021-10-12 09:01:14 +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 0adc4562ad Sub: add exception for linux boards when setting BARO_EXT_BUS 2021-10-11 17:57:52 -03: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