Andrew Tridgell
9a68b78973
AP_DroneCAN: allow BRD_SAFETY_MASK to work on CAN ESCs and servos
...
this allows for testing of a fwd motor or control surfaces while not
allowing for VTOL ESCs to run. This makes CAN actuators behave the
same as direct PWM actuators
2023-07-04 10:40:45 +10:00
Peter Barker
c45c02ce82
AP_GPS: use AP_AHRS_ENABLED in place of HAL_BUILD_AP_PERIPH
...
the guard here is just against use of the singleton
2023-07-04 10:27:32 +10:00
Peter Barker
7a7e44ae3c
AP_EFI: move case labels inside ifdefs
2023-07-04 10:26:26 +10:00
Peter Barker
257c684edf
hwdef: update FlyingMoonF407 hwdef
...
changes from vendor
2023-07-04 10:25:19 +10:00
Henry Wurzburg
5df9b8abf1
AP_TECS: set FW landing speed if not set
2023-07-04 10:24:30 +10:00
Henry Wurzburg
c33ef034b4
AP_Landing: set FW landing speed if not set
2023-07-04 10:24:30 +10:00
Iampete1
87b2000d5c
AP_Scripting: Fixup examples for mavlink receive timestamp as uint32
2023-07-04 10:20:42 +10:00
Iampete1
ceca374f23
AP_Scripting: add MAVLink command long and ack examples
2023-07-04 10:20:42 +10:00
Iampete1
352f721626
GCS_MAVLink: allow scripting to block commands
2023-07-04 10:20:42 +10:00
Iampete1
1c5f3c708a
AP_Scripting: add new mavlink binding to block commands
2023-07-04 10:20:42 +10:00
Iampete1
5cefff6455
AP_Scripting: fix docs
2023-07-04 10:20:42 +10:00
Iampete1
529fb83ce3
AP_Scripting: change mavlink to :
access to match everything else, return timestamp as uint32
2023-07-04 10:20:42 +10:00
Peter Barker
edb7a76b87
hwdef: add FlyingMoonH743
2023-07-04 10:04:55 +10:00
Martin Luessi
232fdd51da
AP_HAL_ChibiOS: Added RADIX2HD
2023-07-04 09:36:10 +10:00
Peter Barker
5664c0a142
AP_GPS: check delay_ok in one place
2023-07-04 08:15:31 +10:00
muramura
9bcc26046c
AP_VisualOdom: Check for driver availability first
2023-07-03 19:22:52 +10:00
Peter Barker
c70778e4d4
AP_Mount: correct gimbal manager flags
2023-07-03 08:09:04 +09:00
Andrew Tridgell
ded8d2a4b4
AP_Scripting: added revert_param.lua applet
...
This script implements a easy parameter reversion system to help with
manual in-flight tuning. It allows you to do a wide range of manual
tuning while flying and if you get in trouble (eg. an oscillation)
then you can use a switch to instantly revert all the parameter
changes to the values from startup.
2023-07-03 07:09:07 +10:00
Henry Wurzburg
670873da75
AC_WPNav: add roi circle_option metadata
2023-07-02 13:15:20 +10:00
Randy Mackay
3388e6f25d
AP_Mount: remove xacti debug
2023-07-01 18:32:20 +10:00
Iampete1
2d42028db3
AP_BattMonitor: fix missing INA2xx param descriptions
2023-07-01 07:34:36 +10:00
Henry Wurzburg
f71826a992
AP_Logger:correct blk rate param metadata
2023-06-30 15:13:52 +01:00
Henry Wurzburg
78e44ebf3a
SRV_Channel: allow scaled passthru to go to trim on rc failsafe
2023-06-29 21:37:12 +10:00
Henry Wurzburg
5510dcc45d
RC_Channel: allow scaled passthru to go to trim on rc failsafe
2023-06-29 21:37:12 +10:00
jfbblue0922
f990bb7374
AP_HAL_ChibiOS: jfb100 gets shorter EXT_WDOG_INTERVAL_MS
2023-06-29 19:30:14 +09:00
Michael du Breuil
25a118cbda
AP_ADSB: Fix spam of lost transciever message at update() rate
2023-06-28 09:35:35 -07:00
Iampete1
df8aee1567
AP_Vehicle: Add FLTMODE_GCSBLOCK parameter and helper function
2023-06-28 12:56:25 +01:00
tiralonghipol
c4b7bc9d8c
AP_HAL_ChibiOS: add new board BlitzF745AIO
2023-06-28 17:23:19 +10:00
rishabsingh3003
4957785fef
AP_HAL_STIL: add simulated nooploop tofsense rangefinder
2023-06-28 17:16:22 +10:00
rishabsingh3003
89d4ba6a5d
AP_HAL: add simulated nooploop tofsense rangefinder
2023-06-28 17:16:22 +10:00
rishabsingh3003
6b8dfdfc10
SITL: Add simulated nooploop tofsense
2023-06-28 17:16:22 +10:00
rishabsingh3003
9e5b75be31
AP_RangeFinder: Add UART driver for NoopLoop rangefinder
2023-06-28 17:16:22 +10:00
Randy Mackay
3bada154e6
AP_DroneCAN: remove unused semaphore
2023-06-27 21:12:20 +10:00
Randy Mackay
b975310fda
AP_DroneCAN: add xacti gimbal support
2023-06-27 21:12:20 +10:00
Randy Mackay
bb8319e914
AP_Mount: frontend instantiates Xacti backend
2023-06-27 21:12:20 +10:00
Randy Mackay
a4f34811a0
AP_Mount: add Xacti DroneCAN backend
2023-06-27 21:12:20 +10:00
Randy Mackay
2a30bc7ce1
AP_Mount: add devid parameter and setter
2023-06-27 21:12:20 +10:00
Randy Mackay
e213e7e428
AP_RTC: add get_date_and_time_utc
2023-06-27 21:12:20 +10:00
Randy Mackay
cf77a564fd
AP_Mount: minor comment fix
2023-06-27 21:12:20 +10:00
Randy Mackay
c7b64dc448
AP_Mount: Siyi health check avoids race condition
2023-06-27 21:12:20 +10:00
Randy Mackay
5d97a4b3d6
AP_Mount: Siyi loses unused center method
2023-06-27 21:12:20 +10:00
Randy Mackay
98310d861e
AP_Airspeed: minor spelling fix
2023-06-27 21:12:20 +10:00
Iampete1
9b54dee7a6
AP_BattMonitor: DroneCAN: allow battery reset if not using CAN SoC
2023-06-27 11:38:15 +10:00
Iampete1
7e94eb39ff
AP_BoardConfig: fix conflicting param indexs
2023-06-27 11:27:08 +10:00
Peter Barker
b6b73d674f
AP_RTC: move implemenation of ap_mktime (NFC)
2023-06-27 11:25:11 +10:00
Peter Barker
e659667f03
AP_Common: move implemenation of ap_mktime (NFC)
2023-06-27 11:25:11 +10:00
Peter Barker
4124c6ed3f
AP_Common: move AP_RTC::mktime to be ap_mktime
...
in preparation for AP_RTC_ENABLED
2023-06-27 11:25:11 +10:00
Peter Barker
84e4a45dc3
AP_RTC: move AP_RTC::mktime to be ap_mktime
...
in preparation for AP_RTC_ENABLED
2023-06-27 11:25:11 +10:00
Peter Barker
c89ec67333
AP_GPS: move AP_RTC::mktime to be ap_mktime
...
in preparation for AP_RTC_ENABLED
2023-06-27 11:25:11 +10:00
Peter Barker
ac2fea9766
AP_Filesystem: move AP_RTC::mktime to be ap_mktime
...
in preparation for AP_RTC_ENABLED
2023-06-27 11:25:11 +10:00
Andy Piper
539277ba2f
AP_HAL_ChibiOS: Pixhawk6X bdshot version
2023-06-27 11:22:12 +10:00
Michael du Breuil
bbcc31ecec
AP_RCProtocol: Refactor SUMD to remove legacy cruft
...
Of particular note this removes the partial SUMH support. This has been
broken as far back as 2018, as we only called add_input() if we were in
the SUMD or SUMD failsafe cases, which meant SUMH didn't work. This
commits to that path, and removes all the 8 bit CRC, SUMH support.
This also refactors a number of things for readability (condensing white
space, simplifying guards around debug code). Many of the debugs could
probably be removed, but this simplifies it.
This was tested against the RCProtocol example test, and everything
there reports a pass.
2023-06-27 10:57:06 +10:00
Peter Barker
8b13413f43
AP_Scheduler: add and use AP_SCHEDULER_EXTENDED_TASKINFO_ENABLED
2023-06-27 10:43:39 +10:00
Peter Barker
6e39565ce8
AP_HAL_ChibiOS: add and use AP_SCHEDULER_EXTENDED_TASKINFO_ENABLED
2023-06-27 10:43:39 +10:00
Peter Barker
435214852e
AP_Scheduler: add and use AP_Scheduler_config.h
2023-06-27 10:43:39 +10:00
Andrew Tridgell
4219d498ec
hwdef: set NRST_MODE on HolybroG4_GPS to fix reboot issue
2023-06-27 10:32:43 +10:00
Andrew Tridgell
54e2e33ee1
HAL_ChibiOS: allow hwdef to specify a NRST_MODE override
...
this allows the boot behaviour of a board to be changes to avoid a
reset issue
2023-06-27 10:32:43 +10:00
Andrew Tridgell
848e1bfdf8
AP_GPS: ensure uart buffer sizes are OK for RTK
...
rover needs higher tx size, base needs higher rx size
2023-06-27 10:32:43 +10:00
Andrew Tridgell
64869b6e16
AP_GPS: fixed RTK injection with moving baseline
...
when 2nd DroneCAN GPS on the bus is the base in moving baseline we
need to be able to inject to it
2023-06-27 10:32:43 +10:00
Iampete1
d57ce2ad6f
AP_Motors: Add motor test checks method to refuse test
2023-06-27 10:24:15 +10:00
Iampete1
c5733e7634
AP_Motors: Heli: remove _output_test_seq as used in motor test
2023-06-27 10:24:15 +10:00
Andrew Tridgell
7fa0de37c3
GCS_MAVLink: added mutex deadlock test code
2023-06-27 10:11:46 +10:00
Andrew Tridgell
81e0685d33
HAL_ChibiOS: support recovery from a mutex deadlock
...
if we have a bug which causes a lock order deadlock locking up the
main thread then try a force release of the mutex to allow flight to
continue without a watchdog
2023-06-27 10:11:46 +10:00
Peter Barker
89dcafcc5c
SRV_Channel: add and use AP_SBUSOUTPUT_ENABLED
...
.... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards.
2023-06-27 10:10:41 +10:00
Peter Barker
f99f9741fb
AP_SBusOut: add and use AP_SBUSOUTPUT_ENABLED
...
.... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards.
2023-06-27 10:10:41 +10:00
Peter Barker
3869c4c0e9
AP_HAL_ChibiOS: add and use AP_SBUSOUTPUT_ENABLED
...
.... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards.
2023-06-27 10:10:41 +10:00
Peter Barker
5daa38ffba
AP_Vehicle: initialise generator before init_ardupilot
...
each of the vehicles does a load-defaults-from-files. Use that fact to ensure any generator backend parameter's defaults are loaded.
2023-06-27 09:54:29 +10:00
Peter Barker
20e10dc401
hwdef: update FlyingMoonF427
...
vendor update
2023-06-27 09:38:48 +10:00
Andy Piper
a7ad2dc940
AP_HAL_ChibiOS: use unsigned math as appropriate
2023-06-27 09:28:33 +10:00
Andy Piper
76b7566cd1
AP_HAL_ChibiOS: implement extended dshot telemetry (EDT)
2023-06-27 09:28:33 +10:00
Andy Piper
79bd29e9a7
SRV_Channel: add documentation for ESCs supporting extended dshot telemetry (EDT)
2023-06-27 09:28:33 +10:00
Andy Piper
62fc1b91c4
AP_HAL: add dshot commands and ESC types for extended dshot telemetry (EDT)
2023-06-27 09:28:33 +10:00
Iampete1
262b11f0c1
AP_Compass: stop auto replacing missing CAN by default, add option to re-enable
2023-06-27 09:24:41 +10:00
Iampete1
97541f82d0
AP_Motors: Heli RSC: remove incorrect set range call
2023-06-27 09:04:18 +10:00
Andrew Tridgell
d11d4fa0bf
AP_NavEKF3: fixed velocity reset on AID_NONE
...
The ResetVelocity() function is only supposed to reset XY states, not
Z state. Resetting the Z state for velocity results in a large
velocity glitch if a vehicle is descending or ascending when aiding
switches to AID_NONE
this fixes #19386
2023-06-26 18:09:31 +10:00
Andrew Tridgell
95a5a25909
AP_NavEKF2: fixed velocity reset on AID_NONE
...
The ResetVelocity() function is only supposed to reset XY states, not
Z state. Resetting the Z state for velocity results in a large
velocity glitch if a vehicle is descending or ascending when aiding
switches to AID_NONE
this fixes #19386
2023-06-26 18:09:31 +10:00
Andrew Tridgell
3bcceb9420
HAL_SITL: fixed multicast UDP on cygwin
...
this will allow the SITL button on cygwin to work with multicast,
allowing for complex vehicle interactions between machines
2023-06-26 15:49:02 +10:00
Andy Piper
0bad9451d5
AC_AutoTune: correct incorrect min raw rate valuee
2023-06-26 09:56:30 +10:00
Andrew Tridgell
7f177abae8
AP_Notify: fixed DroneCAN LEDs
2023-06-24 20:48:08 +10:00
Andrew Tridgell
93c1674e1f
AP_DroneCAN: set priority and timeout for RGB LEDs
2023-06-24 20:48:08 +10:00
Peter Barker
e5dda42056
AP_Logger: remove requirement to know storage type of fence item in headers
2023-06-24 14:21:01 +10:00
Peter Barker
023316b269
AP_Logger: use AP_AHRS_ENABLED define
2023-06-24 14:21:01 +10:00
Peter Barker
edb0a9b7fe
AP_Logger: simplify setting of HAL_LOGGER_FENCE_ENABLED
...
This is automatically unset in chibios_hwdef.py
2023-06-24 14:21:01 +10:00
Peter Barker
a2ecaf737d
GCS_MAVLink: correct define around use of ins singleton
2023-06-21 22:28:48 +10:00
Peter Barker
55227bc487
Tools: add and use AP_GPS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
ed96bb6dd4
GCS_MAVLink: rely on HAL_LOGGING_ENABLED for sending logs
2023-06-21 22:28:48 +10:00
Peter Barker
a6a691cce3
GCS_MAVLink: add and use AP_GPS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
6f292c02da
AP_GPS: add and use AP_GPS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
61affcf4e4
GCS_MAVLink: add and use AP_BARO_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
3657852e30
AP_HAL_ChibiOS: add and use AP_BARO_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
db345ac920
AP_Baro: add and use AP_BARO_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
fc55bf0bc4
GCS_MAVLink: add and use AP_COMPASS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
b3c5889d7d
AP_HAL_ChibiOS: add and use AP_COMPASS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
3f4995068c
AP_Compass: add and use AP_COMPASS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
42e42dc991
GCS_MAVLink: add and use AP_AHRS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
55eec0ff09
AP_NMEA_Output: add and use AP_AHRS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
e11384454f
AP_HAL_ChibiOS: add and use AP_AHRS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
be392b1c5b
AP_AHRS: add and use AP_AHRS_ENABLED
2023-06-21 22:28:48 +10:00
Peter Barker
07bf38d7f8
GCS_MAVLink: create and use AP_BATTERY_ENABLED
...
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
2023-06-21 22:28:48 +10:00
Peter Barker
5df6b835b0
AP_TemperatureSensor: create and use AP_BATTERY_ENABLED
...
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
2023-06-21 22:28:48 +10:00
Peter Barker
209cba7f89
AP_HAL_ChibiOS: create and use AP_BATTERY_ENABLED
...
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
2023-06-21 22:28:48 +10:00
Peter Barker
85aee2e44a
AP_BattMonitor: create and use AP_BATTERY_ENABLED
...
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
2023-06-21 22:28:48 +10:00
Peter Barker
e3c4d9fd23
GCS_MAVLink: allocate mavlink status and send buffers dynamically
...
This makes ArduPilot responsible for supplying buffers to the mavlink layer, rather than that layer allocating them based on MAVLINK_COMM_NUM_BUFFERS.
We will want to rename MAVLINK_COMM_NUM_BUFFERS to AP_GCS_MAX_BACKENDS at some stage.
2023-06-21 17:50:31 +10:00
Andrew Tridgell
fc904011fb
GCS_MAVLink: moved MAV_CMD_AIRFRAME_CONFIGURATION from copter
2023-06-21 17:38:28 +10:00
Peter Barker
4a2b0dabaf
AP_Arming: reword GPS pre-arm failure
...
M10S (no storage) throws this for a considerable period of time and the wording makes this process sound scary.
2023-06-21 14:11:14 +10:00
Andrew Tridgell
f138824449
HAL_ChibiOS: make clock asserts show the incorrect value
...
this makes it easier to debug clock checking issues
2023-06-20 18:56:13 +10:00
Andrew Tridgell
409d3fdc9d
hwdef: removed unused lines for luminousbee5
2023-06-20 18:56:13 +10:00
Andrew Tridgell
ddb991d9b5
HAL_ChibiOS: fixed 24mhz crystal on H7 with 480MHz clock
...
need to adjust the PLLQ as well as the PLLN
2023-06-20 18:56:13 +10:00
Andrew Tridgell
1055c5f1c6
waf: fixed dependency of ChibiOS build on compiler flags
...
this adds a chibios_flags.h which contains the flags we pass to the
ChibiOS make, which allows us to have a make level dependency on the
flags
this fixes (among other things) the build of copter followed by
bootloader for SPRacingH7
2023-06-20 18:08:31 +10:00
Peter Barker
916379b1b9
hwdef: remove bootloader flashing on ReaperF745 and FlywooF745
2023-06-20 15:34:19 +10:00
Peter Barker
400dd851a6
hwdef: remove fuelflow lines from ReaperF745 hwdef
...
these are already removed because it's a 1M board
2023-06-20 15:34:19 +10:00
Peter Barker
3de811ed0a
hwdef: sort save_some_flash.inc (NFC)
2023-06-20 15:34:19 +10:00
Peter Barker
45e336dfcf
hwdef: save_some_flash.inc on revo-mini-i2c-bdshot
2023-06-20 15:34:19 +10:00
Peter Barker
c18b65a68e
hwdef: no bootloader update on MambaF405v2
2023-06-20 15:34:19 +10:00
Peter Barker
60c785de3f
AP_Notify: correct gate on inclusion of profiled_spi enum entry
2023-06-20 15:13:39 +10:00
xianglunkai
1ab985fff8
AC_CustomControl_PID: set false to avoid hitting limits
2023-06-20 10:50:11 +10:00
xianglunkai
bd30f3ede9
libraries:AC_CustomControl: correct error due to changes in PID interface
2023-06-20 10:50:11 +10:00
Peter Barker
5800e9d785
AP_HAL_ChibiOS: heavy periphs get servos and relays
2023-06-20 09:36:39 +10:00
Peter Barker
9b2dba95d0
RC_Channel: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
86d09d9096
GCS_MAVLink: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
dbfa718020
AR_Motors: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
234bae6816
AP_Vehicle: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
27c3f8525d
AP_ServoRelayEvents: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
f96266b227
AP_Scripting: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
72a2962367
AP_Relay: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
2adb4fef5a
AP_Parachute: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
e423173848
AP_Mission: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
2932dea4ff
AP_HAL_ChibiOS: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
2975656be5
AP_Camera: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Peter Barker
15a004e55a
AP_Arming: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Mark Whitehorn
154ccf4e63
AP_Scripting: tricks-on-a-switch activation cleanup
2023-06-20 09:32:28 +10:00
Michael du Breuil
84104331ec
AP_ESC_Telem: Raise default timeout for the RPM spin check to 210ms
...
This copes better with 10Hz monitors, or losing a single packet
2023-06-20 09:30:03 +10:00
Henry Wurzburg
15ba495f78
AP_HAL_ChibiOS: add Holybro KakuteH7-Wing
2023-06-20 09:09:12 +10:00
murata
004054d1b1
AP_RCProtocol: Remove invalid Slot ID checks
2023-06-20 09:06:04 +10:00
muramura
bfa23aa7b0
AP_HAL_SITL: Resolve missing-declarations errors
2023-06-19 20:14:31 +10:00
Iampete1
2eaad47bf8
AP_Scripting: examples: plane-wind-fs: fixup for luacheck
2023-06-18 18:17:37 +10:00
Peter Barker
6faa77993a
AP_Filesystem: correct include problem
...
transitive include may fail depending on build options
2023-06-18 10:35:27 +10:00
Peter Barker
8532444bb5
AR_Motors: remove AP_ServoRelayEvents from AP_MotorsUGV interface
...
instead, take it from the singleton
2023-06-17 18:07:43 +10:00
Peter Barker
320bd43334
SITL: use SIM_config for ship and adsb simulations
2023-06-17 17:57:15 +10:00
Peter Barker
9ee6be8a55
AP_HAL_Linux: fix help ouput from Options to Examples
2023-06-17 17:51:34 +10:00
Peter Barker
5791aea3fc
SITL: correct compilation when AP_SIM_IS31FL3195_ENABLED off
...
object won't exist in that case
2023-06-17 15:14:45 +10:00
bugobliterator
e30cc65f14
GCS_MAVLink: move sysid_my_gcs to be public
2023-06-17 14:49:22 +10:00
bugobliterator
04b7c7e4ee
AP_HAL_ChibiOS: remove Chip ID as Basic ID mechanism
2023-06-17 14:49:22 +10:00
bugobliterator
24e5a30ad3
AP_OpenDroneID: remove Chip ID as Basic ID mechanism
2023-06-17 14:49:22 +10:00
bugobliterator
6b88ed007d
AP_HAL_ChibiOS: explain DID_OPTIONS config in CubeOrange-ODID/defaults.parm
2023-06-17 14:49:22 +10:00
bugobliterator
53f7315bb5
AP_OpenDroneID: add support for persistent storage of UAS ID
2023-06-17 14:49:22 +10:00
bugobliterator
ff3f07d46f
AP_HAL: add support for get_persistent_param_by_name
2023-06-17 14:49:22 +10:00
bugobliterator
65cbd87228
AP_HAL_ChibiOS: add support for get_persistent_param_by_name
2023-06-17 14:49:22 +10:00
bugobliterator
0850ea6b61
AP_HAL_ChibiOS: add support for storing OpenDroneID in bootloader sector
2023-06-17 14:49:22 +10:00
murata
5825ab4dc6
AP_WindVane: Enable SITL when it is selected
2023-06-17 14:48:49 +10:00
Neil Bertram
dcafaf3ab2
AP_HAL_Linux: Improve the self-documentation and configuration of serial ports for the Linux HAL
2023-06-17 14:46:27 +10:00
Mohammad Hefny
9314163bb0
AP_HAL_Linux: Fix RPI check using enumerations
2023-06-17 14:44:38 +10:00
Peter Barker
42e0d85ac9
hwdef: SkyViper doesn't have two batteries; remove code based on that
2023-06-17 11:27:46 +10:00
Andrew Tridgell
5afabf7bfb
HAL_CbibiOS: get crash dump info for main thread lockups
2023-06-17 11:24:56 +10:00
bnsgeyer
a18c818949
SITL: cleanup tradheli gas engine inputs
2023-06-16 23:18:23 +10:00
bnsgeyer
1bef3839e5
SITL: tradheli - add gas engine model for conventional heli
2023-06-16 23:18:23 +10:00
Ryan Friedman
f3a6c71c6b
AP_DDS: Update docs for supported topics
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-16 22:39:26 +10:00
Randy Mackay
c4c073e8b8
AP_Mount: Siyi displays camera fw ver
2023-06-16 14:30:46 +10:00
Randy Mackay
02fdb8272f
GCS_MAVLink: support camera info and settings
2023-06-16 14:30:46 +10:00
Randy Mackay
63b4b8b7d3
AP_Camera: support camera info and settings
2023-06-16 14:30:46 +10:00
Randy Mackay
2c37958c3f
AP_Mount: support send-camera-info and settings
2023-06-16 14:30:46 +10:00
bnsgeyer
251eb10cfa
AP_Motors: make defaults dependent on vehicle type
2023-06-14 22:26:40 -04:00
bnsgeyer
1e521d1a5d
AP_Motors: Move DDFP thrust linearization params into sub group
2023-06-14 22:26:40 -04:00
bnsgeyer
270c6a2028
AP_Motors: Tradheli-fix servo4 param calls and ensure no divide by zero
2023-06-14 22:26:40 -04:00
bnsgeyer
cc89c1ac1a
AP_MotorsHeli: add thrust linearization for DDFP tails
2023-06-14 22:26:40 -04:00
Peter Barker
ebdba6b477
AP_Notify: add driver for IS31FL3195 LED
2023-06-15 12:14:26 +10:00
Peter Barker
7952e99813
SITL: add IS31FL3195 simulator
2023-06-15 12:14:26 +10:00
Andrew Tridgell
8bec6c9ff4
AP_Scripting: added utility scripts for synchronised aerobatics
2023-06-14 19:02:23 +10:00
Andrew Tridgell
f76d6e00cf
AP_Scripting: document log_file_content
2023-06-14 19:02:23 +10:00
Andrew Tridgell
c6f466eba7
AP_Scripting: implement synchronised aerobatics
...
this allows two aircraft to synchronise their schedules via
NAMED_VALUE_FLOAT messages
2023-06-14 19:02:23 +10:00
Andrew Tridgell
6dd78005d6
AP_Scripting: added width and reduce options to 3D aerobatic viewer
2023-06-14 19:02:23 +10:00
Andrew Tridgell
51c4c047d6
AP_Scripting: added log_file_content method
...
this allows for aerobatics to log the schedule for easier log review
2023-06-14 19:02:23 +10:00
Peter Barker
9a24a3f61d
AP_HAL_ChibiOS: allow CrashCatcher to be disabled via hwdef
2023-06-14 18:39:11 +10:00
Pierre Kancir
7514507dca
AP_RPM: remove unused
2023-06-14 17:58:43 +10:00
Pierre Kancir
836042f454
AP_RPM: make Log_RPM() const
2023-06-14 17:58:43 +10:00
Pierre Kancir
0959f926f4
AP_RPM: More const and remove useless default assignement.
...
We don't need to set quality to 0 as it will be always setted after.
2023-06-14 17:58:43 +10:00
Pierre Kancir
5a9542be81
AP_RPM: make dt_avg a float value by using float division
...
Previously, it was using interger division and thus lost the fractional part
2023-06-14 17:58:43 +10:00
Randy Mackay
29292c2aaa
SITL: simulated SF45b fixes and enhancements
...
resolve crash if time_delta_ms is too long
correct sample_count calculation
sends one reading per 3deg (closer to real device)
distance max is 53m
returns -1m on failure
sweeps back and forth -190~190 deg
2023-06-14 17:49:30 +10:00
Peter Barker
bd6198ae1a
AP_OSD: correct checks for HAL_WITH_MSP_DISPLAYPORT
2023-06-14 17:44:13 +10:00
Peter Barker
b0c3aae8e2
AP_RangeFinder: use minimize.inc for HAL_MSP_ENABLED and dependencies
2023-06-14 17:44:13 +10:00
Peter Barker
b3dfeac812
AP_OpticalFlow: use minimize.inc for HAL_MSP_ENABLED and dependencies
2023-06-14 17:44:13 +10:00
Peter Barker
3750a632e3
AP_MSP: use minimize.inc for HAL_MSP_ENABLED and dependencies
2023-06-14 17:44:13 +10:00
Peter Barker
8e0a879122
AP_HAL_ChibiOS: use minimize.inc for HAL_MSP_ENABLED and dependencies
2023-06-14 17:44:13 +10:00
Peter Barker
1e81ef93a4
AP_IOMCU: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
Peter Barker
7ccf8e62ce
RC_Channel: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
Peter Barker
8dad537b6f
AP_RCTelemetry: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
Peter Barker
f75c905d25
AP_RCProtocol: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
Peter Barker
53b99dd17a
AP_OSD: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
Peter Barker
6255ecbfce
AP_Arming: remove intermediate option_is_enabled methods for RC_Channel
2023-06-14 17:39:43 +10:00
jfbblue0922
f1fadbf84f
AP_HAL_CHibiOS: JFB100 hwdef fix for ext watchdog
2023-06-14 17:13:10 +10:00
jfbblue0922
2f05624545
AP_HAL_ChibiOS: support external watchdog gpio
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
optional support to toggle GPIO pin at 10hz
2023-06-14 17:13:10 +10:00
Andrew Tridgell
0d4018107b
AP_GPS: fixed ublox M10S auto-config
...
this copes with the M10S rejecting multiple-key VALGET calls. We fall
back to fetching one at a time
2023-06-13 11:00:47 +10:00
Peter Barker
9eea693679
AP_Notify: tidy defines
2023-06-13 10:18:00 +10:00
Randy Mackay
65fd8a7120
AP_Mount: Siyi implements body-frame yaw limits
2023-06-13 10:08:02 +10:00
Randy Mackay
39eb46fd26
AP_Mount: backend set_angle_target enforces bf limits
2023-06-13 10:08:02 +10:00
Andrew Tridgell
514434193d
hwdef: save flash on several boards with DFU
...
omit bootloader on boards with DFU and low on flash
2023-06-12 12:42:45 +10:00
Andrew Tridgell
3c0a9af505
hwdef: added no_bootloader_DFU.inc
2023-06-12 12:42:45 +10:00
Peter Barker
d806dd8ef1
AP_Param: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Peter Barker
82c1af78d1
AP_EFI: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Peter Barker
6c9ea896c7
AP_Motors: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Peter Barker
615bf8e5ee
AC_AttitudeControl: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Peter Barker
d519ab604e
AP_Scripting: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Peter Barker
3aaeb0f29c
AP_HAL_ChibiOS: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Asif Khan
caf35b71a6
AP_Mount: fix SiYi gimbal upside-down facing not working
2023-06-09 09:38:43 +10:00
Peter Barker
15dc15df3f
AP_PiccoloCAN: remove double-definition of HAL_PICCOLOCAN_ENABLED
...
also trust minimize_features.inc to remove this feature where not desired
2023-06-09 08:00:46 +10:00
Oliver Walters
5e68e473c9
AP_PiccoloCAN: Add precompiler checks
...
- Only compile if HAL_PICCOLO_CAN_ENABLE flag is set
2023-06-09 08:00:46 +10:00
Oliver Walters
e6f1437ccf
AP_PiccoloCAN: Remove unnecessary files
2023-06-09 08:00:46 +10:00
Oliver
97e58d9df9
AP_PiccoloCAN: Remove old ESC structure
...
- No longer needed
- Now replaced with class-based implementation
2023-06-09 08:00:46 +10:00
Oliver
a246cf71f3
AP_PiccoloCAN: Split device functionality into separate files
2023-06-09 08:00:46 +10:00
Oliver
b3d82bdd57
AP_PiccoloCAN: Add protocol files for transmuter
...
(cherry picked from commit 25d118c468ab04c179152d43356074a68286514b)
2023-06-09 08:00:46 +10:00
Oliver Walters
687489f858
AP_EFI: Update EGT for Currawong ECU
...
- Currawong ECU does not report EGT
- Change to report this value as NAN
2023-06-09 07:58:07 +10:00
davidsastresas
e1e2d68815
GCS_Common: handle CMD_DO_SET_ROI_NONE for command int packets
2023-06-08 21:12:50 +10:00
Ryan Friedman
2b906bc714
AP_DDS: Fix typo with pts serial port when in UDP
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-08 20:20:21 +10:00
Paul Riseborough
4d03327470
AP_NavEKF3: Fix sign error in position fix delay compensation
2023-06-08 16:31:22 +10:00
Peter Barker
0ec35718d7
AP_HAL_ChibiOS: use HAL_PROXIMITY_ENABLED in place of HAL_PERIPH_ENABLE_PRX
...
boolean truth rather than defines, and simplifies code
2023-06-08 11:53:01 +10:00
Peter Barker
78c5fe097b
AP_Mount: correct compilation when HAL_MOUNT_SERVO_ENABLED is 0
...
... but still do the parameter conversion
2023-06-08 11:52:44 +10:00
bugobliterator
5a967fd597
AP_DroneCAN: add support for semaphore around allocate/free blocks in libcanard
2023-06-08 10:15:50 +10:00
Andrew Tridgell
f99fa6a703
AP_DroneCAN: use separate tx and rx semaphores
...
this prevents a deadlock on callback for DroneCAN receiver
2023-06-08 10:15:50 +10:00
Andrew Tridgell
3034aef570
AP_DroneCAN: add a delay after an event on process
...
ensure MCU gives up some time
2023-06-08 10:15:50 +10:00
Andrew Tridgell
dc8366c31e
AP_DroneCAN: fixed queue ordering bug in sending DroneCAN frames
...
this caused RTK RTCM data to be corrupted on send
2023-06-08 10:15:50 +10:00
Andrew Tridgell
0cfd9c2ed5
HAL_ChibiOS: don't consider a MAVCAN send failure as a send failure
...
this prevents duplicate sends if MAVCAN buffer is full
2023-06-08 10:15:50 +10:00
Andrew Tridgell
f0a0a4cfa9
AP_DroneCAN: move tx frame to loop context
...
prevent contents from previous frame being used
2023-06-08 10:15:50 +10:00
Andrew Tridgell
e1dd452b66
AP_DroneCAN: fixed C++ type narrowing warnings
2023-06-08 10:15:50 +10:00
bugobliterator
3dca277488
AP_DroneCAN: use canard cleanup
2023-06-08 10:15:50 +10:00
Andrew Tridgell
531b12e272
AP_GPS: fixed RTCM injection for DroneCAN GPS
...
need to check broadcast() return
2023-06-08 10:15:50 +10:00
Andrew Tridgell
49389ccce6
AP_DroneCAN: removed unused function declaration
2023-06-08 10:15:50 +10:00
Alexander Keller
6ba526fa25
AP_GPS:Comform to ardupilot undulation definition
2023-06-08 09:48:30 +10:00
Ryan Friedman
da2beb1ec1
AP_DDS: Improve subscriber safety
...
* Remove unused void* functions
* Switch subscriber handling based on ID
* Use enums instead of relying on manual alignment of indices in code
* Pass topic by reference using local stack
* Relates to #23964
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-08 09:47:50 +10:00
Peter Barker
312254f761
GCS_MAVLink: correct detection of feature AP_FILESYSTEM_FORMAT_ENABLED
2023-06-08 08:55:26 +10:00
Peter Barker
294b975335
AP_Filesystem: correct detection of feature AP_FILESYSTEM_FORMAT_ENABLED
2023-06-08 08:55:26 +10:00
Peter Barker
c463b0d154
AP_Math: add alternate implementation of parity for AP_Periph
...
the __builtin_parity methods hardfault on AP_Periph builds
2023-06-07 21:41:14 +10:00
Peter Barker
109e29f048
AP_RCProtocol: move use of __builtin_parity to crc
2023-06-07 21:41:14 +10:00
Peter Barker
43ecdc64b6
AP_Math: move use of __builtin_parity to crc
2023-06-07 21:41:14 +10:00
Peter Barker
f17dfbc584
AP_HAL_ChibiOS: correct heavy periph compilation
...
canmanager isn't enabled, so no piccolocan
2023-06-07 18:24:05 +10:00
Peter Barker
3517884002
RC_Channel: create define specifically for the developer feature for killing IMUs
2023-06-07 18:23:01 +10:00
Peter Barker
baf5d34256
AP_InertialSensor: create define specifically for the developer feature for killing IMUs
2023-06-07 18:23:01 +10:00
Peter Barker
82e15536d2
AP_HAL_ChibiOS: create define specifically for the developer feature for killing IMUs
2023-06-07 18:23:01 +10:00
Pierre Kancir
95c345e6fb
AP_JSButton: add unittest
2023-06-07 17:16:15 +10:00
Andrew Tridgell
533577924e
AP_Scripting: fixed temperatures for Halo6000 driver
...
temps are offset by 40 deg C
2023-06-07 07:27:46 +10:00
Tom Pittenger
d23d808f07
AP_ADSB: fix SageTech MXS climbRate sign
2023-06-06 20:09:28 +10:00
Peter Barker
5984857751
AP_ADSB: correct climbRate in SageTechMXS
...
down vs up issue
2023-06-06 20:09:28 +10:00
Peter Barker
030c34345d
AP_InertialNav: clarify get_vert_pos_rate AHRS method name to include 'D'
2023-06-06 20:09:28 +10:00
Peter Barker
904707de15
AP_AHRS: clarify get_vert_pos_rate AHRS method name to include 'D'
2023-06-06 20:09:28 +10:00
Peter Barker
15682fa6c9
AP_ADSB: clarify get_vert_pos_rate AHRS method name to include 'D'
2023-06-06 20:09:28 +10:00
Martin Luessi
b336526765
AP_HAL_ChibiOS: Move scheduler task table to RAM for H750
2023-06-06 19:19:10 +10:00
Martin Luessi
82280b6a8d
AP_HAL_ChibiOS: Rename STM32_FORCE_CLOCK_INIT to HAL_FORCE_CLOCK_INIT
2023-06-06 19:19:10 +10:00
Martin Luessi
350dfc235e
AP_HAL_ChibiOS: Add libgcc comment to H750 linker script
2023-06-06 19:19:10 +10:00
Martin Luessi
f55261c852
AP_HAL_ChibiOS: Use DTCM for vector table for external flash targets
2023-06-06 19:19:10 +10:00
Martin Luessi
ab03c49ea8
AP_HAL_ChibiOS: Move more time critical code to RAM for H750
2023-06-06 19:19:10 +10:00
Martin Luessi
00c8c24b1e
AP_HAL_ChibiOS: increase FLASH_RAM and rename FDCAN to CAN for H750
2023-06-06 19:19:10 +10:00
Martin Luessi
0c93800ec1
AP_HAL_ChibiOS: Copy vector table to RAM if external flash is primary
2023-06-06 19:19:10 +10:00
Martin Luessi
84ccd046c6
AP_HAL_ChibiOS: Change linker script so vector table can be copied to RAM for external flash targets
2023-06-06 19:19:10 +10:00
Martin Luessi
f5e6b055b6
AP_HAL_ChibiOS: Allow custom STM32_QSPISEL for H7
2023-06-06 19:19:10 +10:00
Martin Luessi
01f030da7c
AP_HAL_ChibiOS: Option to force clock init
2023-06-06 19:19:10 +10:00
Andrew Tridgell
1ab278d127
GCS_MAVLink: support EXTERNAL_POSITION_ESTIMATE command_int
2023-06-06 15:19:12 +10:00
Paul Riseborough
34a5657e3e
AP_AHRS: Add handlers for external lat lng position set
2023-06-06 15:19:12 +10:00
Paul Riseborough
3677cb025d
AP_NavEKF3: Add handlers for external lat lng position set
2023-06-06 15:19:12 +10:00
Paul Riseborough
48f0edaffc
AP_DAL: Add handlers for external lat lng position set
2023-06-06 15:19:12 +10:00
Andrew Tridgell
2703928fb2
AP_Filesystem: enable filesystem format on all boards
...
this works in ChibiOS 21.xx
2023-06-06 15:19:00 +10:00
Andrew Tridgell
6f469c48e7
HAL_ChibiOS: support f_mkfs on all boards
2023-06-06 15:19:00 +10:00
Ryan Friedman
8cf855970d
AP_DDS: Fix unitialized memory
...
* Found under valgrind
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-06 10:42:02 +10:00
Andy Piper
3de424e74f
AP_HAL_ChibiOS: Pixhawk1-bdshot
2023-06-06 10:24:11 +10:00
Peter Barker
1f565295a3
AP_RCTelemetry: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
179b79a00c
AP_PiccoloCAN: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
1509cfc2b4
AP_Notify: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
afccfee001
AP_NMEA_Output: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
cd472b8f52
AP_Mount: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
0ff0a30d03
AP_LTM_Telem: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
cf24382e58
AP_HAL_ChibiOS: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
3f70f2104a
AP_GPS: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
41f622f892
AP_Generator: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
Peter Barker
3bf1e61eb2
AP_Baro: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
mateksys
6187cd0350
hwdef: added MSP support in MatekL431-GPS
2023-06-06 07:30:25 +10:00
Ryan Friedman
33c1e23e55
AP_Param: Use math header function names for type punning
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
cf2b65877e
AP_Math: Move conversion utilites next to AP_Math
...
* This is next to the constraining functions
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
0faf1a2152
AP_HAL: Use new AP_Math utils
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
1cb8bf6308
AP_Common: Remove type punning utils to AP_Math
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
42abfa9e0e
AP_ExternalAHRS: Use sparse-endian be32to<ftype>_ptr
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
35c8951395
AP_HAL: Add methods for beNto<floatingType> conversions
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
e6f523dad1
AP_Param: Use explicit type instead of auto for crc
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
c382eb192a
AP_Param: Switch from type punning to defined behavior
...
* This was undefined behavior in the C++ standard
* Use the safer options in AP_Common
* Removes a compiler warning
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
d0b8e672c0
AP_ExternalAHRS: Switch from type punning to defined behavior
...
* This was undefined behavior in the C++ standard
* Use the safer options in AP_Common
* Removes a compiler warning
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
d40b02fbbd
AP_Common: Add type-punning alternative
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Andrew Tridgell
146cc3312c
HAL_ChibiOS: implement ff_memalloc, fixing mkdir() after format
...
this implements FATFS memory allocation in the HAL_ChibiOS malloc.c
which fixes mkdir() after a format of the microSD
The strategy is to deny large allocations and try for DMA allocations
if possible. This both fixes mkdir() and makes filesystem operations
faster as we have less copying of memory via the bouncebuffer
2023-06-03 17:07:04 +10:00
Andrew Tridgell
4946ce5431
HAL_ChibiOS: revert recent USB changes
...
these are causing some boards to crash on startup. Tested with a
QiotekZealotH743 which doesn't get out of setup_usb_strings()
once we have debugged this we can re-add the functionality
2023-06-03 16:50:30 +10:00
Peter Barker
f192d2644c
AP_AHRS: make ExternalAHRS an AP_AHRS_Backend
2023-06-01 12:45:56 +10:00
arshPratap
5168f39463
AP_DDS: Add Subscriber support with Joy
...
* Register subscriber and deserialize sensor_msgs/Joy
Co-authored-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Co-authored-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-01 11:37:59 +10:00
Peter Barker
02802c88ad
hwdef: minimize CRUbrain51
...
get it compiling again
2023-06-01 11:37:12 +10:00
Andy Piper
de6f2ef552
AP_HAL_ChibiOS: remove bdshot from speedybeef4 as it doesn't work and increases flash usage
2023-05-31 20:45:27 +01:00
bugobliterator
f7d3969116
AP_HAL_ChibiOS: enable write protection on USB msd
...
also fixes support for MSD on FS
2023-05-31 18:40:17 +10:00
bugobliterator
a9ef3b031e
AP_HAL_ChibiOS: add support for setting baudrate for ACM port in USB MSD
2023-05-31 18:40:17 +10:00
bugobliterator
fa631c11a1
AP_HAL_ChibiOS: fix script for HerePro
2023-05-31 18:40:17 +10:00
bugobliterator
a05d7ae645
AP_HAL_ChibiOS: do not init usb in sdcard_init
2023-05-31 18:40:17 +10:00
bugobliterator
5d5fdbb44d
AP_HAL_ChibiOS: update HerePro hwdef and move to HereProAP
2023-05-31 18:40:17 +10:00
bugobliterator
0c5d19ff44
AP_HAL_ChibiOS: initialise SDCard before starting USB
2023-05-31 18:40:17 +10:00
bugobliterator
ee45deeda8
AP_HAL_ChibiOS: silence unused functions under sdcard.cpp
2023-05-31 18:40:17 +10:00
bugobliterator
c6631bce57
AP_HAL_ChibiOS: add block filesystem access support when using MSD USB
2023-05-31 18:40:17 +10:00
bugobliterator
414606ba31
AP_Filesystem: add support for blocking filesystem access
2023-05-31 18:40:17 +10:00
bugobliterator
6d6c791fdf
AP_HAL_ChibiOS: add support for mass storage device
2023-05-31 18:40:17 +10:00
bugobliterator
cc302d8b8c
AP_HAL_ChibiOS: add support for OTG HS
2023-05-31 18:40:17 +10:00
bugobliterator
4b3ae60964
AP_OpenDroneID: send dronecan messages directly from update
2023-05-31 17:31:09 +10:00
bugobliterator
cbef055f6b
AP_DroneCAN: add msg period measurement to DroneCAN_sniffer
2023-05-31 17:31:09 +10:00
bugobliterator
efe5fb7e69
AP_DroneCAN: push ESC data out immediately and ensure high priority
2023-05-31 17:31:09 +10:00
Tom Pittenger
f38041567f
AP_DroneCAN: remove unused defines
2023-05-31 17:31:09 +10:00
bugobliterator
5066d48718
AP_Notify: directly send dronecan beep command from the driver
2023-05-31 17:31:09 +10:00
bugobliterator
a1ba65a654
AP_Notify: send dronecan led commands directly from driver
2023-05-31 17:31:09 +10:00
bugobliterator
5026b3d08c
AP_GPS: send RTCM Stream message to over dronecan directly
2023-05-31 17:31:09 +10:00
bugobliterator
a277547248
AP_DroneCAN: move dronecan led, buzzer and rtcm stream to their respective drivers
2023-05-31 17:31:09 +10:00
Ryan Friedman
35dda812ae
SITL: Value Semantics for TOW calc
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-31 15:01:31 +10:00
Randy Mackay
b757a7d21a
AP_Scripting: mount-poi applet sends camera feedback message
2023-05-31 10:06:37 +10:00
Tom Pittenger
521b0f9d85
AP_Temperature: slow down temp driver thread and cleanup
2023-05-30 13:19:51 -07:00
Peter Barker
4ee58c4496
GCS_MAVLink: remove more compass cal if it is not enabled
2023-05-30 23:05:29 +10:00
Andrew Tridgell
8cb638b7e1
AP_Scripting: added Halo6000 generator/EFI driver
...
used to monitor Foxtech Halo6000 generator for Thor210 hexacopter
2023-05-30 21:04:34 +10:00
Andrew Tridgell
3e601df229
AP_AHRS: don't reject airspeed using EKF if dead-reckoning
...
when dead-reckoning the EKF wind estimate can diverge from reality,
leading to us rejecting a valid airspeed sensor. We are best off
trusting airspeed if we are dead-reckoning
2023-05-30 17:06:13 +10:00
Maxim Buzdalov
c31db47bff
AP_HAL_Chibios: Update hwdef for FlywooF405S-AIO (alternative IMUs)
2023-05-30 10:50:06 +10:00
Randy Mackay
385e828fdd
AR_PosControl: add input_pos_vel_accel target
2023-05-30 10:17:13 +10:00
Nick Exton
ece0368c86
AP_OSD: Add missing labels for new serial protocols
2023-05-30 10:07:32 +10:00
Ryan Friedman
639ba63560
AP_GPS: Remove gsof zero initialization
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-30 09:45:29 +10:00
Andrew Tridgell
383994c466
AP_ICEngine: allow for ICE with no RPM support
2023-05-30 07:29:55 +10:00
Peter Barker
e415b5fda0
AP_GPS: add clarifying comment on _configure_config_set method
...
it's a bit confusingly named, because it doesn't actually "set" anything - it gets messages from the GPS which are then parsed and responded to based on the received values.
2023-05-29 09:56:20 +10:00
Peter Barker
92942137fa
GCS_MAVLink: remove use of AP_Mount.h from headers
2023-05-29 09:08:55 +10:00
Peter Barker
487ed8d888
AP_Mount: remove use of AP_Mount.h from headers
2023-05-29 09:08:55 +10:00
Peter Barker
c30cfb00b6
AP_Camera: remove use of AP_Mount.h from headers
2023-05-29 09:08:55 +10:00
Peter Barker
3d245c4e4c
AP_Mount: use switch statement on mount type when creating backends
2023-05-29 09:08:55 +10:00
Andrew Tridgell
7234ec2e52
HAL_ChibiOS: fixed USB pass-thru for 2nd USB endpoint
...
we need to align the endpoint ID in the structure
2023-05-29 08:55:38 +10:00
Asif Khan
d367483155
AP_Follow: support for Mount following the lead vehicle in follow mode
2023-05-26 11:10:35 -07:00
Tatsuya Yamaguchi
7ebc2256bc
AP_Scripting: add is_landing and is_taking_off binding
2023-05-26 10:59:09 -07:00
Tatsuya Yamaguchi
797cb9c8e2
AP_Vehicle: implement is_landing and is_taking_off for use by lua
2023-05-26 10:59:09 -07:00
Nicholas Kruzan
88fbd8dca7
AP_HAL: new board: esp32s3devkit
2023-05-26 10:54:01 -07:00
Nicholas Kruzan
79d103459a
AP_HAL_ESP32: new board: esp32s3devkit
2023-05-26 10:54:01 -07:00
Nicholas Kruzan
5d7eb8a709
AP_HAL: new mcu: esp32s3
2023-05-26 10:54:01 -07:00
Nicholas Kruzan
575422fdf5
AP_HAL_ESP32: new mcu: esp32s3
2023-05-26 10:54:01 -07:00
Nicholas Kruzan
9744b2d483
AP_HAL_ESP32: move esp32 specific idf build stuff to subfolder
...
AP_HAL_ESP32: move esp32 specific idf build stuff to subfolder
2023-05-26 10:54:01 -07:00
Davide_Lentini
e808ffb22d
AP_HAL_ChibiOS: Update luminousbee5 hwdefs, Add new bootloaders
...
This modification allows to have imu 42605 and 42688 defined in the same hwdef
Tools: luminousbee5 add new bootloaders
AP_HAL_ChibiOS: luminousbee5 , change PC7 from FLOAT to PULLDOWN
AP_HAL_ChibiOS: luminousbee5 , change version 5.32/5.4
Tools: Update luminousbee5 hwdefs, Add new bootloaders
AP_HAL_ChibiOS: luminousbee5 hwdefs Rev 2 , luminousbee5 default.parm
Tools: Update luminousbee5 hwdefs, Add new bootloaders
This modification allows to have imu 42605 and 42688 defined in the same hwdef
Tools: luminousbee5 add new bootloaders
AP_HAL_ChibiOS: luminousbee5 , change PC7 from FLOAT to PULLDOWN
AP_HAL_ChibiOS: luminousbee5 , change version 5.32/5.4
Tools: Update luminousbee5 hwdefs, Add new bootloaders
AP_HAL_ChibiOS: luminousbee5 hwdefs Rev 2 , luminousbee5 default.parm
AP_HAL_ChibiOS: Removed BETA in comment
2023-05-26 10:52:22 -07:00
Andrew Tridgell
135bfac378
AP_BoardConfig: fixed documentation of safety options
...
on and off were reversed
2023-05-26 17:45:32 +10:00
Peter Barker
d4dbf82c33
AP_RCProtocol: let compiler elide unused method
...
... rather than removing it based on target.
I need this symbol for other targets
2023-05-26 14:26:27 +10:00
Peter Barker
4bcd4decb1
AP_HAL_ChibiOS: add and use AP_RCPROTOCOL_ENABLE_SET_RC_PROTOCOLS
2023-05-26 14:26:27 +10:00
Michael du Breuil
32fd21592a
AP_Math: Add fletcher16 CRC
2023-05-25 17:35:27 -07:00
Peter Barker
dccac6dfd0
SITL: add documentation for SIM_GPS_TYPE and SIM_GPS2_TYPE
2023-05-25 17:59:12 +10:00
Ryan Friedman
a53cac8241
AP_DDS: Add UDP instructions to README
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-25 11:26:37 +10:00
Peter Barker
3acc917ea7
AP_Mount: use enum class for mount type
2023-05-25 09:54:43 +10:00
Randy Mackay
0581a8b082
RC_Channel: option param desc gets winch control
2023-05-25 09:46:23 +10:00
Peter Barker
a5c248d7a4
AP_Filesystem: enable posix compat functions if romfs compiled in
...
vast numbers of these otherwise:
/home/pbarker/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: lib/libArduCopter_libs.a(liolib.c.0.o): in function `read_all':
liolib.c:(.text.read_all+0x20): undefined reference to `apfs_fread'
/home/pbarker/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: lib/libArduCopter_libs.a(liolib.c.0.o): in function `read_line':
liolib.c:(.text.read_line+0x24): undefined reference to `apfs_getc'
/home/pbarker/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: lib/libArduCopter_libs.a(liolib.c.0.o): in function `io_fclose':
liolib.c:(.text.io_fclose+0xe): undefined reference to `apfs_fclose'
/home/pbarker/gcc/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: lib/libArduCopter_libs.a(liolib.c.0.o): in function `io_open':
2023-05-25 07:33:26 +10:00
bugobliterator
06b5400d0b
AP_Scripting: use get_uint32 instead of luaL_checkinteger
2023-05-24 19:03:28 +10:00
bugobliterator
f9edc1c37b
AP_Scripting: set timestamp for received messages
2023-05-24 19:03:28 +10:00
bugobliterator
28d49834c0
AP_Scripting: do semaphore lock when sending mavlink message from lua
2023-05-24 19:03:28 +10:00
bugobliterator
949f0e36d0
AP_Scripting: change receive_msgid to register_rx_msgid
2023-05-24 19:03:28 +10:00
bugobliterator
d056a33dca
AP_Scripting: use _chan to mark the methods that are mavlink channel based
2023-05-24 19:03:28 +10:00
bugobliterator
dfe87732b5
AP_Scripting: add docs for mavlink scripting
2023-05-24 19:03:28 +10:00
bugobliterator
138464cab8
AP_Scripting: remove example/mavlink.lua and fix lua test
2023-05-24 19:03:28 +10:00
bugobliterator
e79af89df3
AP_Scripting: add mavlink test
2023-05-24 19:03:28 +10:00
bugobliterator
9ce37e5f98
GCS_MAVLink: scripting sends mavlink messages directly
2023-05-24 19:03:28 +10:00
bugobliterator
076d00fd1e
AP_Scripting: add mavlink support to scripting
2023-05-24 19:03:28 +10:00
Michael du Breuil
a934c90e69
GCS_MAVLink: Route MAVLink data to/from scripting
2023-05-24 19:03:28 +10:00
Michael du Breuil
598919d8ad
AP_Scripting: Support sending MAVLink buffers from scripts
2023-05-24 19:03:28 +10:00
bugobliterator
160629eb18
AP_HAL_ChibiOS: add links to detailed documentation at docs.cubepilot.org
2023-05-24 18:15:16 +10:00
bugobliterator
faca23fe74
AP_HAL_ChibiOS: update CubeOrange pinout image
2023-05-24 18:15:16 +10:00
Andrew Tridgell
7a2e2f4927
hwdef: update CubeBlack/Orange/OrangePlus pinouts
...
the motivation for this was to add the SWD pinouts, but I took the
opportunity to get the orange and orangeplus information more up to
date as well
2023-05-24 18:15:16 +10:00
Pierre Kancir
cdfbadbfb6
AP_Math: add test_rotations for custom rotations testing
2023-05-24 17:56:58 +10:00
Hayden
fa800e23e2
AP_Compass: Move health to cpp and add range check
...
Moved the health check to the cpp file and added checking of max instances
2023-05-24 12:39:47 +10:00
Hayden
30d575df12
AP_Baro: Move health to cpp and add range check
...
Moved the health checks to the cpp file and added range checking
2023-05-24 12:39:47 +10:00
Hayden
11dd9e8095
AP_IOMCU: Add #pragma once
...
Added #pragma once to AP_IOMCU as this caused compile issues when adding bindings to the LUA scripting
2023-05-24 12:39:47 +10:00
Hayden
09fd157b9b
AP_Scripting: Add health checks
...
Added health checks for the Baro, InertialSensor, IOMCU, and Compass
2023-05-24 12:39:47 +10:00
Asif Khan
9ef3241949
GCS_MAVLink: add GIMBAL_MANAGER_SET_PITCHYAW message support
2023-05-24 12:36:37 +10:00
Asif Khan
28748dc2c0
AP_Mount: add GIMBAL_MANAGER_SET_PITCHYAW message support
2023-05-24 12:36:37 +10:00
Paul Riseborough
c91909032f
AP_NavEKF3: Increase delta velocity bias state process noise
...
Required due to state variance collapse on ground with some systems using RTK GPS.
2023-05-24 10:31:26 +10:00
Paul Riseborough
1053daaf90
AP_NavEKF3: Strengthen recovery from bad delta velocity bias learning
2023-05-24 10:31:26 +10:00
Paul Riseborough
b1111e79fe
AP_NavEKF3: Increase default value of EK3_ABIAS_P_NSE
...
This is required because some hardware setups with RTK GPS have experienced a collapse of the delta velocity state variances.
2023-05-24 10:31:26 +10:00
Paul Riseborough
ef76890f9b
AP_NavEKF3: Retune and fix delta velocity bias state variance protection
2023-05-24 10:31:26 +10:00
Andrew Tridgell
419a75f0b7
AP_DroneCAN: support hobbywing DroneCAN ESCs
...
these use different messages from other DroneCAN ESCs
2023-05-23 20:26:11 +10:00
Andrew Tridgell
c7f97751cf
AP_RCProtocol: return true on initial protocol detection
...
we need to tell the IO firmware that a byte was consumed when we first
detect a protocol as otherwise the next bad byte on DSM will lock us
on the DSM port
2023-05-23 12:11:04 +10:00
Andrew Tridgell
a25ffa266f
AP_IOMCU: fixed issue with not regaining RC input
...
this fixes an issue where when you lose R/C input on IOMCU that you
may not regain it when R/C comes back.
The issue stems from us still processing the DSM uart when we are
using the SD3 "SBUS" uart for RC input, and still doing the switch of
the SD3 config every 2 seconds.
When we are not searching for a new protocol we should not be changing
UART config
2023-05-23 12:11:04 +10:00
Iampete1
f77635a5a6
Filter: Examples: Add Transfer function check and MATLAB
2023-05-23 10:31:13 +10:00
Iampete1
4406570391
Filter: NotchFilter: private varables to protected
2023-05-23 10:31:13 +10:00
Tatsuya Yamaguchi
3fc8f27899
AP_Logger: make SCR name field instance
2023-05-23 10:27:21 +10:00
Iampete1
4fcd767f9e
AP_Motors: example: add ability to dump all matrix motor layouts in JSON format
2023-05-23 10:18:17 +10:00
bugobliterator
b5617a9ff8
Revert "AP_HAL_ChibiOS: disable watchdog in hwdef.h not in-line in code"
...
This reverts commit ccfad8ceea
.
2023-05-23 09:00:11 +10:00
Peter Barker
34a55166f8
SITL: correct compilation for SimOnHardware
2023-05-22 22:55:54 +10:00
Peter Barker
5333f404d3
AP_Common: pre-declare print_vprintf
...
these seem to override a soft symbol somewhere, so can't be static or be removed or the tests fail
2023-05-20 17:28:08 +10:00
Peter Barker
2e1f8d8b8b
AP_BattMonitor: fix missing method declaration compile failure
2023-05-20 17:28:08 +10:00
Peter Barker
bce2625918
SITL: fix missing method declaration compile failure
...
RyanF found this when eliminating other problems
2023-05-20 17:28:08 +10:00
Ryan Friedman
f092c22915
AP_GPS: Enforce max of 10 GSOF outputs per the manual
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-20 14:23:17 +10:00
Ryan Friedman
77e169b226
AP_GPS: Update GSOF docs with newer data
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-20 14:22:15 +10:00
Andrew Tridgell
2a3faf5dff
AP_BattMonitor: allow max amps to be configured on INA2XX
...
this allows for higer current ranges with lower resolution
2023-05-20 09:54:29 +10:00
AerofoxTech
91f3e3a9a7
hwdef: add Aerofox GNSS F9P module
2023-05-20 08:57:25 +10:00
Peter Barker
d6f7fddcaf
AP_Notify: bump up max number of simulated notify devices
2023-05-19 18:43:49 +10:00
Ryan Friedman
a05af3f3c3
AP_GPS: More const for gsofmsgreq
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-19 18:43:31 +10:00
Peter Barker
07160e2985
AP_Mount: move get_bf_yaw to be a method on the object it takes
2023-05-18 15:07:17 +10:00
Andrew Tridgell
7dc9f418a5
AP_Arming: added BLACKBOX arming method
2023-05-18 12:59:09 +10:00
Henry Wurzburg
68ff5a2b48
SITL: add metadata to simulated compass
2023-05-18 11:18:23 +10:00
lipper-chengdu
b351644583
AP_RCProtocol: Fix the issue of ST24 receiver not working
2023-05-18 08:24:22 +10:00
Andy Piper
d7bcfd757b
AP_HAL_ChibiOS: correct locking on LED thread
2023-05-18 07:53:33 +10:00
Peter Barker
3d05d8c0dd
AP_Notify: use chibios_hwdef to define NOTIFY_LED_OVERRIDE_DEFAULT
2023-05-18 07:53:22 +10:00
Peter Barker
0c7a16b03d
AP_HAL_ChibiOS: use chibios_hwdef to define NOTIFY_LED_OVERRIDE_DEFAULT
2023-05-18 07:53:22 +10:00
Peter Barker
77200da280
AP_Vehicle: move call of notify.update up to AP_Vehicle
2023-05-17 18:41:15 +10:00
Peter Barker
586851e40f
hwdef: create and use convenient is_periph_firmware method
2023-05-17 18:39:51 +10:00
Peter Barker
a16c9cf64e
AP_GPS: log fragments used/fragments discarded for RTCM injection data
2023-05-17 18:37:43 +10:00
Peter Barker
d59c9cc633
AP_RCProtocol: add separate define for AP_RCPROTOCOL_SUMD_ENABLED
2023-05-17 18:27:19 +10:00
Peter Barker
c9b39c6d32
AP_RCProtocol: add separate define for AP_RCPROTOCOL_IBUS_ENABLED
2023-05-17 18:27:19 +10:00
Peter Barker
1b040fa0c3
AP_RCProtocol: add separate define for AP_RCPROTOCOL_PPMSUM_ENABLED
2023-05-17 18:27:19 +10:00
Peter Barker
1225d4c88f
AP_RCProtocol: add separate define for AP_RCPROTOCOL_ST24_ENABLED
2023-05-17 18:27:19 +10:00
Ryan Friedman
5c815e2c32
AP_GPS: Reduce extra GSOF namespacing since it's all in class scope
...
* Also remove in s on enums to follow Peter's conventions
* Fixed incorrect style on class and enum names
2023-05-17 18:12:44 +10:00
Ryan Friedman
2f5f77712f
AP_GPS: Use enum classes in GSOF
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-17 18:12:44 +10:00
Randy Mackay
c41d5f4ff6
AP_SerialManager: improve OPTIONS desc for Swap bit
2023-05-17 17:34:10 +10:00
Randy Mackay
e672a75776
AP_SerialManager: generalise SToRM32 serial protocol desc and enum
2023-05-17 17:34:10 +10:00
bugobliterator
1c274c93a5
AP_DroneCAN: update helpers user to add CANARD_MALLOC and CANARD_FREE
2023-05-17 13:27:34 +10:00
davidsastresas
e4428f538d
GCS_MAVLink: support gimbal_manager_status and do_gimbal_manager_configure
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-17 12:38:49 +10:00
davidsastresas
cbec7ee47b
AP_Mount: support gimbal_manager_status and do_gimbal_manager_configure
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-17 12:38:49 +10:00
Randy Mackay
341910bce4
AP_Mount: fix send_gimbal_manager_information instance
2023-05-17 12:38:49 +10:00
Peter Barker
ae349b6d40
Filter: correct description of filter tracking mode
2023-05-17 12:24:01 +10:00
acxz
ade161f0a8
AP_HAL_SITL: remove std:: scope from uint16_t
2023-05-17 11:15:43 +10:00
acxz
7aa8347374
AP_HAL_Linux: remove std:: scope from uint16_t
2023-05-17 11:15:43 +10:00
Peter Barker
9bcac597b6
AP_HAL: remove posix test from uart example
2023-05-17 09:40:39 +10:00
Peter Barker
d46d2189ec
GCS_MAVLink: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
e8ed94344b
AP_Terrain: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
fd10c5e9e1
AP_Param: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
e7e0da9a59
AP_OSD: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
5f2bb83401
AP_Notify: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
6dbf1f2d66
AP_Logger: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
ee8a762e1d
AP_HAL: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
86db236647
AP_HAL_ESP32: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
30131a2f36
AP_HAL_ChibiOS: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
1c54d18672
AP_Filesystem: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Peter Barker
189712830c
AP_BoardConfig: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Andy Piper
38adb308a9
AC_AutoTune: load test gains for correct axis when testing yaw D
2023-05-17 07:21:53 +10:00
Henry Wurzburg
0a060aa520
SITL: Move SITL on hdwr scripts to Tools and simplify
2023-05-16 21:11:36 +10:00
Henry Wurzburg
3a49804703
AP_AHRS: fix compile for 1MB bds using SITL on hdwr
2023-05-16 21:11:36 +10:00
Peter Barker
772eda555b
AP_Scripting: correct dependencies on bindings
2023-05-16 10:31:01 +10:00
Peter Barker
29d6c51f43
SITL: stop using mavlink channels for packing messages
...
precedent was set in the mavlink rangefinder; we don't need to re-use SITL buffers for this
2023-05-16 10:17:56 +10:00
Peter Barker
8cfd9f8ef1
AP_SerialManager: consolidate AP_Periph serialmanager defaults
2023-05-16 10:16:10 +10:00
Peter Barker
6aeeb3d51d
AP_HAL_ChibiOS: consolidate AP_Periph serialmanager defaults
2023-05-16 10:16:10 +10:00
Randy Mackay
e998f93965
AP_Proximity: RPLidarA2 gets S1 support
2023-05-16 10:15:23 +10:00
Randy Mackay
1394a430b0
AP_Proximity: RPLidarA2 minor whitespace fix
2023-05-16 10:15:23 +10:00
Randy Mackay
67accd8920
AP_Proximity: RPLidarA2 loses redundant set of state
2023-05-16 10:15:23 +10:00
Peter Barker
36b494a057
AP_Proximity: increase RPLidar read buffer size
...
128 bytes at 50Hz is not enough to read all data from device
2023-05-16 10:15:23 +10:00
Peter Barker
206f663e38
AP_Proximity: tweak RPLidar debug
2023-05-16 10:15:23 +10:00
Peter Barker
77f7533f02
AP_Proximity: emit RPLidar detection information
2023-05-16 10:15:23 +10:00
Peter Barker
cb7f29cc6b
AP_Proximity: correct RPLidarreset path
2023-05-16 10:15:23 +10:00
Peter Barker
8938508147
AP_Proximity: move connect-in-SITL instructions to header
2023-05-16 10:15:23 +10:00
Peter Barker
ae7fb93e4c
AP_HAL_SITL: add simulated RPLidarA1
2023-05-16 10:15:23 +10:00
Peter Barker
2257d4686f
SITL: add simulated RPLidarA1
2023-05-16 10:15:23 +10:00
Peter Barker
3355520026
AP_Proximity: add support for RPLidarA1
2023-05-16 10:15:23 +10:00
Peter Barker
ae6b1ffc8f
SITL: factor RPLidar simulation to allow for subclassing
2023-05-16 10:15:23 +10:00
Peter Barker
5ba3260870
SITL: rename SIM_PS_RPLidarA2 to SIM_PS_RPLidar
2023-05-16 10:15:23 +10:00
Peter Barker
811dcebe4f
AP_Proximity: RPLidarA2: interpret DEVICE_INFO response to determine model
2023-05-16 10:15:23 +10:00
Peter Barker
4ffdc7239c
AP_Proximity: rewrite RPLidarA2 to use more efficient read() method
2023-05-16 10:15:23 +10:00
Peter Barker
742416c2aa
SITL: RPLidar: add support for GET_DEVICE_INFO command
2023-05-16 10:15:23 +10:00
Peter Barker
537fc19bb5
AP_HAL_ChibiOS: do not build ChibiOS with debug symbols unless debug build
...
debug symbols subtly change the compiler output which can lead to problems with repeatable builds
2023-05-16 09:55:47 +10:00
Hayden
10038a64be
AP_BoardConfig: Added ignore board validation
...
Added the ability to ignore board validation. This has been added to the 7th bit in BRD_OPTIONS
2023-05-16 09:18:54 +10:00
Peter Barker
530e665c4d
AP_SerialManager: add missing include for GCS
2023-05-16 09:16:37 +10:00
Peter Barker
ef657438fc
AP_SerialManager: add and use AP_RCPROTOCOL_ENABLED
2023-05-16 09:16:37 +10:00
Peter Barker
2c00813aab
AP_RCProtocol: add and use AP_RCPROTOCOL_ENABLED
2023-05-16 09:16:37 +10:00
Peter Barker
49879ab28c
AP_HAL_ESP32: add and use AP_RCPROTOCOL_ENABLED
2023-05-16 09:16:37 +10:00
Peter Barker
2d7123fcff
AP_HAL_ChibiOS: add and use AP_RCPROTOCOL_ENABLED
2023-05-16 09:16:37 +10:00
Peter Barker
b7f3d25bed
SITL: add simulator for LM2755 RGBLED
2023-05-15 22:02:07 +10:00
Peter Barker
f67f025c92
AP_AHRS: pre-declare Location object
...
we don't need to know the storage, and if you cut enough stuff out then we don't end up transitively including the required header for this.
2023-05-15 16:34:23 +10:00
Ryan Friedman
29a6ae4ea1
AP_GPS: Add missing const to the rest of the headers
...
* Related to #23743 , but I missed this since I didn't realize the buffer was not modified in-place
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-15 12:25:34 +10:00
Nicholas Kruzan
761184d645
AP_HAL_ESP32: add board esp32nick
2023-05-15 12:22:17 +10:00
Nicholas Kruzan
2171fff91b
AP_HAL: esp32 - add board esp32nick
2023-05-15 12:22:17 +10:00
Nicholas Kruzan
8967ed0ad1
AP_HAL_ESP32: idf-v4.4 updates
...
update wifi drivers
nick: fix build warning
In file included from ../../libraries/AP_HAL_ESP32/WiFiUdpDriver.cpp:26:
../../modules/esp_idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
AP_HAL_ESP32: idf-v4.4 updates
AP_HAL_ESP32: sdkconfig updates
2023-05-15 10:27:25 +10:00
Peter Barker
26dd210be6
AP_Filesystem: remove unused header
2023-05-15 10:17:47 +10:00
Peter Barker
1aa5a8f789
AC_Avoidance: make _output_level AP_Enum
...
Also remove namespacing from OA_DbOutputLevel
2023-05-15 09:25:57 +10:00
bugobliterator
75ef9a27cb
AP_HAL_ChibiOS: fix battery monitor params for CubeRed
2023-05-15 07:14:57 +10:00
Peter Barker
aac43a2302
SITL: guard against LP5562 not being included
...
... not included on SIMOnHardware, for example
2023-05-14 18:25:36 +10:00
Rhys Mainwaring
fd775bf08d
AP_DDS: update README
...
- Update list of available topics.
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
56ed76f479
AP_DDS: add publisher for rosgraph_msgs/msg/Clock
...
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
371c19bb32
AP_DDS: rename topic name for builtin_interfaces/msg/Time
...
- Rename to ap/time as ap/clock should be for rosgraph_msgs/msg/Clock
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
c60796a0df
AP_DDS: add IDL for rosgraph_msgs/msg/Clock
...
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Peter Barker
1452dc0c54
AP_RPM: prefer AP_Generator_config.h
...
.... otherwise include chain on bootloaders can try to include mavlink
2023-05-14 06:17:33 +10:00
Ferruccio Vicari
d5918c5205
AP_OSD: support for main rotor rpm
...
displays main rotor rpm in OSD
2023-05-14 06:17:33 +10:00
Peter Barker
67537b1806
SITL: add simulator for RDS02UF rangefinder
2023-05-13 20:05:18 +10:00
Peter Barker
4ed4c2d554
AP_HAL_SITL: add simulator for RDS02UF rangefinder
2023-05-13 20:05:18 +10:00
Peter Barker
6943ea59b1
AP_HAL: add simulator for RDS02UF rangefinder
2023-05-13 20:05:18 +10:00
Andrew Tridgell
7e84028a91
HAL_ChibiOS: fixed sdcard lockup with SPI sdcard
...
this affects boards that share sdcard on the same bus as another SPI
device. In this case it was a QiotekZealotH743 where logging stopped
this issue is that the SPI hooks for MMC SPI did not do a DMA channel
lock before the SPI device lock. So when the RAMTRON driver on the
QiotekZealotH743 which is on the same SPI2 bus as the sdcard did an
operation we had a lock order violation
2023-05-13 18:18:14 +10:00
Ryan Friedman
925e9d8cbc
AP_HAL: Add reference to sparse endian manpage
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-13 11:32:38 +10:00
Ryan Friedman
b8f59b0df5
AP_GPS: Remove unused member variable in gsof driver
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-12 19:19:43 +10:00
Ryan Friedman
4b2687352c
AP_GPS: Add const and WARN_IF_UNUSED to AP_GPS_GSOF
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-11 10:41:17 -07:00
Henry Wurzburg
b4f9992ab7
AP_SerialManager: normalize SerialManagers ports defaults to allow inclusion in hwdefs
2023-05-11 18:45:53 +10:00
Henry Wurzburg
2ddaa65b23
AP_HAL: normalize SerialManagers ports defaults to allow inclusion in hwdefs
2023-05-11 18:45:53 +10:00
Henry Wurzburg
71992d4604
AP_HAL_ESP32: normalize SerialManagers ports defaults to allow inclusion in hwdefs
2023-05-11 18:45:53 +10:00
Henry Wurzburg
d0ac8f3016
AP_HAL_ChibiOS: normalize SerialManagers ports defaults to allow inclusion in hwdefs
2023-05-11 18:45:53 +10:00
Peter Barker
8ac9a7561c
AP_Notify: add driver for LP5562 LED
2023-05-11 11:08:50 +10:00
Peter Barker
19d2659179
SITL: add simulator for LP5562 RGBLED
2023-05-11 11:08:50 +10:00
Andrew Tridgell
b019978e22
hwdef: use zero address for INA2XX to allow for different sensors
2023-05-10 18:15:52 +10:00
Andrew Tridgell
e2041e10b5
AP_BattMonitor: auto-probe INA2XX address if address is zero
...
this makes life easier for users who don't know which device they have
2023-05-10 18:15:52 +10:00
Andrew Tridgell
5227b99a39
AP_BattMonitor: support INA228 and INA238 battery monitor
...
I2C monitors with similar functionality to INA226
2023-05-10 18:15:52 +10:00
Andrew Tridgell
2b45b235ad
AP_ICEngine: fixed a bug engine control when running
...
if you have a mission item for engine control with delayed start at
height and the engine is already running them it would put the ICE
subsystem into a state where it would no longer start the engine
It was actually 2 bugs:
- an engine control to do a height delayed start should be ignored if
the engine is already running. This prevents an engine control to
start the engine from stopping the engine
- a start_chan high should always try to start the engine
immediately, even if in the wait state
2023-05-10 18:01:21 +10:00
Randy Mackay
d6eb11d27e
AP_HAL_ChibiOS: JFB100 LED definition fix
2023-05-10 17:24:02 +10:00
Randy Mackay
217ba502ac
AP_InertialSensor: SCHA63T comment fix
2023-05-10 17:24:02 +10:00
Randy Mackay
9c44d79241
AP_HAL_ChibiOS: JFB100 board def fixup
2023-05-10 17:24:02 +10:00
Randy Mackay
9d9de678a5
AP_InertialSensor: SCHA63T loses unused ret bool
2023-05-10 17:24:02 +10:00
jfbblue0922
79f5cdaf04
AP_HAL_ChibiOS: add JFB100 board definition
2023-05-10 17:24:02 +10:00
Randy Mackay
7c2a173f30
AP_InertialSensor: formatting fixes
2023-05-10 17:24:02 +10:00
jfbblue0922
458fbb7f90
AP_InertialSensor: add SCHA63T IMU support
2023-05-10 17:24:02 +10:00
jfbblue0922
7d924f10e2
AP_Math: add crc8_sae
2023-05-10 17:24:02 +10:00
Peter Barker
db6deee9e1
hwdef: chibios_hwdef.py becomes a library
2023-05-10 17:14:43 +10:00
Andrew Tridgell
84b52374f6
RC_Channel: fixed build on cygwin with conflicting POINT
2023-05-10 17:10:20 +10:00
Andrew Tridgell
7175318fbb
AP_Camera: fixed build on cygwin with conflicting POINT
2023-05-10 17:10:20 +10:00
Andy Piper
99e6958e36
AP_HAL_ChibiOS: FoxeerH743 GA release
2023-05-10 17:07:45 +10:00
Pierre Kancir
442d4ba4e0
SITL: fix memory leak on multi fcu json sim
2023-05-09 20:39:04 +10:00
Jonathan Challinger
28598e82c0
AP_HAL_SITL: fix sitl_periph_gps build
2023-05-09 11:42:09 +10:00
Jonathan Challinger
4ef070956d
AP_HAL_SITL: ADC resolution configurable by define, default to 16 bit
2023-05-09 11:42:09 +10:00
Andrew Tridgell
20cbd8dd0b
AP_Vehicle: change no airspeed sensor message
...
it should be INFO not WARNING as not having an airspeed sensor isn't
an issue if it is disabled
2023-05-09 11:26:33 +10:00
pedro-fuoco
c044ba67cc
AP_DDS: Support single precision hw
2023-05-09 11:06:59 +10:00
Peter Barker
3e1388b7e6
AP_OpticalFlow: add and use AP_OpticalFlow_config.h
2023-05-09 10:56:13 +10:00
Peter Barker
da36de3b80
AP_MSP: add and use AP_MSP_config.h
2023-05-09 10:56:13 +10:00
Peter Barker
008eec5838
AP_Airspeed: correct includes
...
we use the msp sensors structure
2023-05-09 10:56:13 +10:00
Henry Wurzburg
5e54d26ac5
AP_OSD: fix format of RF panel and check for out of range
2023-05-09 10:49:43 +10:00
Iampete1
bea98fa909
AP_Motors: test: fix for heli
2023-05-09 10:38:33 +10:00
Andrew Tridgell
db60b2586e
AP_Logger: expand servo status logging
2023-05-09 09:40:53 +10:00
Andrew Tridgell
7963ee8a13
AP_PiccoloCAN: expand servo status logging
2023-05-09 09:40:53 +10:00
Andrew Tridgell
29715e2a74
AP_DroneCAN: support Himark servo protocol
2023-05-09 09:40:53 +10:00
Gone4Dirt
78eb4a840d
AP_MotorsHeli: Whitespace
2023-05-08 19:05:17 -04:00
Gone4Dirt
191ce55e1d
AP_MotorsHeli: Remove pure virtuals and unnecessary overrides
2023-05-08 19:05:17 -04:00
Gone4Dirt
4b2c1368bd
AP_MotorsHeli: move rotor_speed_above_critical to RSC so that it is actually used
2023-05-08 19:05:17 -04:00
Randy Mackay
d3f2309eac
AP_Scripting: viewpro driver uses camera state with Vector2f
2023-05-08 21:26:35 +10:00
Randy Mackay
2be750eaf8
AP_Scripting: camera state bindings use Vector2f
2023-05-08 21:26:35 +10:00
Randy Mackay
267cbf9a37
AP_Camera: camera state uses Vector2f
2023-05-08 21:26:35 +10:00
Randy Mackay
ae09dc7d43
AP_Camera: remove unused tracking_p2 from camera state
2023-05-08 21:26:35 +10:00
Randy Mackay
7db3f27357
AP_Scripting: viewpro driver implements image tracking
2023-05-08 21:26:35 +10:00
Randy Mackay
24445a0c20
RC_Channel: aux function for camera image tracking
2023-05-08 21:26:35 +10:00
Randy Mackay
98636287fc
AP_Scripting: camera state gets tracking
2023-05-08 21:26:35 +10:00
Randy Mackay
a6cc9f042a
AP_Camera: support image tracking
2023-05-08 21:26:35 +10:00
Randy Mackay
858a1e8b40
GCS_MAVLink: pass image tracking messages to AP_Camera
2023-05-08 21:26:35 +10:00
Randy Mackay
b2c31f8ad4
AP_Camera: remove unused auto_focus from camera state
2023-05-08 21:26:35 +10:00
Randy Mackay
8131b5bc3b
AP_Camera: add comments clarifying mavlink methods purpose
2023-05-08 21:26:35 +10:00
Iampete1
990db62235
AP_Scripting: generator: don't expose creation functions to all read only userdata
2023-05-08 19:43:24 +10:00
Iampete1
7a129e73cb
AP_Scripting: bindings: remaining EFI_State to read and write
2023-05-08 19:43:24 +10:00
Iampete1
8fa2472148
AP_Scripting: userdata: allow read of enums and userdata
2023-05-08 19:43:24 +10:00
Andrew Tridgell
52cb59e61d
AP_NavEKF3: handle core setup failure
...
ensure num_cores is left as zero so that calls such as Log_Write don't
de-reference nullptr
2023-05-08 16:28:08 +10:00
Andrew Tridgell
5a5c9d10a9
AP_NavEKF2: handle core setup failure
...
ensure num_cores is left as zero so that calls such as Log_Write don't
de-reference nullptr
2023-05-08 16:28:08 +10:00
Asif Khan
27d96eb64e
AP_Mount: Support for pointing mount to circle center
2023-05-08 10:48:20 +10:00
Peter Barker
871797d436
hwdef: correct double-definitions of DEFAULT_NTF_LED_TYPES
...
these hwdefs include other hwdefs which define the samething.
Remove where identical to file beingincluded, undef otherwise
2023-05-07 20:13:44 +10:00
Peter Barker
85012b003e
hwdef: correct compilation for KakuteF4Mini
...
we include KakuteF4 which also sets this define, so you end up with a redefinition error
2023-05-06 21:59:58 +10:00
Iampete1
81f3d3edda
AP_Motors: Heli: get_output_mask return only motors
2023-05-05 22:20:16 -04:00
Andrew Tridgell
ce703cbed7
HAL_ChibiOS: fixed asserts in AnalogIn driver
...
when building with --enable-asserts on boards with ADC1 and ADC3
(eg. Holybro H7 based boards) we were triggering asserts on bad ADC
index. In order to preserve the asserts (which are good for catching
errors) we need to ifdef the relevant calls
2023-05-06 07:24:58 +10:00
pedro-fuoco
57c2753bdd
AP_DDS: Add GeoPose support
...
* Add GeoPoint.idl
* Add GeoPose.idl
* Add GeoPoseStamped.idl
* Update geopose topic name to follow #23603
* Add GeoPose topic support
Co-authored-by: Pedro Fuoco <pedrofuoco6@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-05 12:02:31 +10:00
Henry Wurzburg
fc42f8f9be
AP_HAL_ChibiOS: move NTF_LED_TYPES from defaults to hwdef
2023-05-04 07:45:12 +10:00
Henry Wurzburg
d8247d35f5
AP_Notify: change BUILD_DEFAULT_LED_TYPE to new pattern
2023-05-04 07:45:12 +10:00
Henry Wurzburg
1f4f3bf32a
AP_HAL_ESP32: change BUILD_DEFAULT_LED_TYPE to new pattern
2023-05-04 07:45:12 +10:00
Henry Wurzburg
8293c1f8c9
AP_HAL_ChibiOS: change BUILD_DEFAULT_LED_TYPE to new pattern
2023-05-04 07:45:12 +10:00
Peter Barker
73b0ce6db8
AP_RCProtocol: define accepted RC backends for IOMCU in its hwdef files
2023-05-03 19:06:33 +10:00
Peter Barker
43f9f08b8f
AP_HAL_ChibiOS: define accepted RC backends for IOMCU in its hwdef files
2023-05-03 19:06:33 +10:00
Peter Barker
a4ee729035
hwdef: airbotf4: minimize this board
...
not currently building.
The FLASH_RESERVE_START_KB at 64 means we're short on space on this board
2023-05-03 18:35:26 +10:00
Andrew Tridgell
601036c07b
AP_Scripting: added example that slew a servo with controls
...
useful for measuring servo capabilities by looking at achieved
deflection vs frequency
2023-05-03 15:23:01 +10:00
arshPratap
fbc7a6dd9b
AP_DDS: support UDP transport
...
and switch serial transport to use custom transport
2023-05-03 15:22:42 +10:00
arshPratap
aa25461bbe
AP_Vehicle: split off start() method in DDS
...
this allows for an DDS_ENABLED parameter
2023-05-03 15:22:42 +10:00
Stephen Dade
e01b359462
AP_Scripting: Check for battery in MAVLinkHL and Rockblock
2023-05-03 09:59:53 +10:00
Andy Piper
95437d248f
AP_HAL_ChibiOS: advanced timers are now determined automatically on L4+
2023-05-03 07:39:39 +10:00
David Buzz
c68b2bc2be
AP_HAL: make all esp32 boards use 16 channels, not 32.
2023-05-02 14:38:03 +10:00
David Buzz
1b3534e996
AP_HAL_ESP32: make all boards use 16 channels, not 32.
2023-05-02 14:38:03 +10:00
David Buzz
dc28cdecd2
AP_HAL_ESP32: bump up ftp and log_io thread size
2023-05-02 14:38:03 +10:00
David Buzz
9a63fc2d30
AP_HAL_ESP32: 4.2 updated sdkconfig
2023-05-02 14:38:03 +10:00
David Buzz
819af19007
AP_HAL_ESP32: porting in from ESP32-S3 buzz prios, stack sizes, wifi driver
...
improvements
ESP32: udp thread was thrashing the cpu too much, tcp thread was delaying too much, uart shouldn't have big delay, tweak wifi priorities
2023-05-02 14:38:03 +10:00
David Buzz
acd1f48ed3
AP_HAL: doesn't need these subsystems
...
ESP32: disabled can on esp32 for now
ESP32: disable airspeed sensors on esp32buzz
ESP32: disable a bunch of compasss types and subsystems so it doesn't try to probe for all
of the compases on boot, as its super slow.
turned off a bunch of Plane stuff that an esp32 user isn't likely to need
compass
scr
comp
a
c
2023-05-02 14:38:03 +10:00
David Buzz
8da8163967
AP_HAL_ESP32: doesn't need these subsystems
...
ESP32: disabled can on esp32 for now
ESP32: disable airspeed sensors on esp32buzz
ESP32: disable a bunch of compasss types and subsystems so it doesn't try to probe for all
of the compases on boot, as its super slow.
turned off a bunch of Plane stuff that an esp32 user isn't likely to need
compass
scr
comp
a
c
2023-05-02 14:38:03 +10:00
David Buzz
81df897d88
AP_InternalError: imu resets aren't fatal on esp32
2023-05-02 14:38:03 +10:00
David Buzz
a896ab9e71
AP_InertialSensor: quieten imu's on esp32
...
less noisy
ins debug
imu
2023-05-02 14:38:03 +10:00
David Buzz
46bc6d5122
AP_HAL_ESP32: quieten imu's on esp32
...
less noisy
ins debug
imu
2023-05-02 14:38:03 +10:00
David Buzz
e2edfae79b
AP_HAL: add a new board for tomte76
...
mpu9255 board, bmp280 baro, micro sd card and NEO M8 clone
a
2023-05-02 14:38:03 +10:00
David Buzz
a31f01d505
AP_HAL_ESP32: add a new board for tomte76
...
mpu9255 board, bmp280 baro, micro sd card and NEO M8 clone
a
2023-05-02 14:38:03 +10:00
Daniel Tombeil
8b029777e2
AP_HAL_ESP32: Adding receive_time_constraint_us() to UARTDriver to address GPS init
...
and health issues
- more work on receive_time_constraint_us()
2023-05-02 14:38:03 +10:00
Michael du Breuil
3de912f2b8
AP_ESC_Telem: Add support for a max rpm check on the motors running check
2023-05-02 10:23:55 +10:00
Peter Barker
f1be6df93e
AP_IOMCU: honour AP_RCPROTOCOL_X_ENABLED
2023-05-02 10:19:50 +10:00
Peter Barker
18e55b9d6e
AP_RCProtocol: add and use AP_RCPROTOCOL_SBUS_ENABLED
2023-05-02 10:19:50 +10:00
Henry Wurzburg
e5336a8e9e
AP_HAL_ChibiOS:correct KakauteH7 IMU label
2023-05-02 10:02:35 +10:00
davidsastresas
de9024b633
AP_Mount: Siyi supports absolute zoom control
...
Co-authored-by: davidsastresas <davidsastresas@gmail.com>
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-02 10:00:38 +10:00
Iampete1
e613a2d812
Filter: examples: add SlewLimiter example to test functionality
2023-05-02 09:36:03 +10:00
Iampete1
ff4b63f9dc
AP_Math: Chirp: add complete method to see if chirp is finished
2023-05-02 09:36:03 +10:00
Iampete1
8a4b30ec3f
Filter: SlewLimiter: always caculate slew limit
2023-05-02 09:36:03 +10:00
Andrew Tridgell
4a8eda0589
AP_HAL: default CAN_Px_DRIVER to 0 on SITL
...
having this default to 1 slows down SITL startup for a lot of people
due to the CAN wait for sensor delays. It is easy to enable it when
CAN is needed in SITL
2023-05-01 14:10:59 +10:00
James O'Shannessy
0dedc4bf74
AP_BattMonitor: Fixes the setting of a default parameter for battery instance #2 set in hwdef
2023-04-28 16:13:33 +10:00
bugobliterator
684f96021d
AP_Scripting: add tests for require
2023-04-28 12:36:08 +10:00
bugobliterator
306b14d8dc
AP_Scripting: add require with sandbox inheritence
2023-04-28 12:36:08 +10:00
bugobliterator
350f718745
AP_HAL: don't include Semaphore headers while building C source
2023-04-28 12:36:08 +10:00
Andy Piper
d69b8c2693
AP_HAL_ChibiOS: fix usage of ADC2 and ADC3 in STM32H730
2023-04-28 08:31:15 +10:00
Andy Piper
e6c1897dd3
AP_HAL_ChibiOS: provide complete ADC2/ADC3 maps for STM32H750 and STM32H743
...
Fix dummy pin generation
2023-04-28 08:31:15 +10:00
Andy Piper
26c59349d5
AP_HAL_ChibiOS: use HAL_XIP_ENABLED to denote running in external flash
2023-04-28 08:31:15 +10:00
Andy Piper
ff1661a8de
AP_HAL_ChibiOS: use STM32_FLASH_NBANKS for flash actions
2023-04-28 08:31:15 +10:00
Andy Piper
5b43926d0a
AP_HAL_ChibiOS: for H730/H750 running in XIP mode do not reset clocks
...
create mcuconf file for STM32H730 (type2)
allow OTG2 to be used as OTG1 on MCUs that need it
remove redundant OTG enablement
2023-04-28 08:31:15 +10:00
Andy Piper
b75ff2e2ae
AP_HAL_ChibiOS: allow only ADC2 to be used
2023-04-28 08:31:15 +10:00
Andy Piper
798fc05ba8
AP_HAL_ChibiOS: clean up linker map on H730 and H750
...
use regular ChibiOS RAM areas for RAM functions
exclude board.o from RAM functions and add some comments
use separate linker script for H750
use correct RAM area for process stack on H750/H743
update EXCLUDE items to put __early_init in flash on H730 and H750
optimize H730 ramfunc usage
2023-04-28 08:31:15 +10:00
Andy Piper
8b8f5eadd6
AP_HAL_ChibiOS: detect QSPI and OSPI separately for setting NO_RESET
2023-04-28 08:31:15 +10:00
Andy Piper
fee853dc7d
AP_HAL_ChibiOS: correct OSPI clock in WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
7516f04106
AP_HAL_ChibiOS: create two configurable non-cacheable memory areas for DMA
2023-04-28 08:31:15 +10:00
Andy Piper
1607e66977
AP_HAL_ChibiOS: prototype CubeMX configuration for H730
2023-04-28 08:31:15 +10:00
Andy Piper
93e1859ba6
AP_HAL_ChibiOS: support is_busy() on WSPI device
2023-04-28 08:31:15 +10:00
Andy Piper
ac8a94e655
AP_HAL: support is_busy() on WSPI device
2023-04-28 08:31:15 +10:00
Andy Piper
c7c8e1a8a9
AP_FlashIface: support OctoSPI flash correctly
2023-04-28 08:31:15 +10:00
Andy Piper
19bda7818c
AP_HAL: configure HAL_USE_QUADSPI and HAL_USE_OCTOSPI
2023-04-28 08:31:15 +10:00
Andy Piper
edfb133375
AP_FlashIface: add support for OCTOSPI 8-line commands
2023-04-28 08:31:15 +10:00
Andy Piper
8ef92805e1
AP_HAL_ChibiOS: support for OCTOSPI
2023-04-28 08:31:15 +10:00
Andy Piper
c4d30879d2
AP_HAL_ChibiOS: hwdef for SPRacing H7RF
2023-04-28 08:31:15 +10:00
Andy Piper
61e70a5fb1
AP_HAL_ChibiOS: add support in hwdef for OCTOSPI
2023-04-28 08:31:15 +10:00
Andy Piper
b5d7d06886
AP_HAL_Linux: QSPI -> WSPI
2023-04-28 08:31:15 +10:00
Andy Piper
11fba13dc8
AP_FlashIface: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
c0b008902f
AP_HAL_SITL: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
eadee1ab8d
AP_HAL_Empty: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
f8dd6a1b2a
AP_HAL_ChibiOS: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
a73945c1b3
AP_HAL: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
cc086ab8d4
AP_HAL_ChibiOS: support for STM32H730xx MCUs
...
correct calculation of advanced timers
add support for linker script configuration in mcu config script
use linker script configuration for H750 and H730
add single OTG_HS support on H730 via OTG2
make sure complimentary channels get advanced timers
complemntary timers do not require advanced mode
allow custom clockspeeds of 550Mhz
correct debug pins on H730
support custom clockrate of 520Mhz on H730
correct H730 USB end point pins
restructure linker script for STM32H730
allow chibios_hwdef.py to set advanced timer on L431
don't define RAMFUNC on STM32H730
clock tree for STM32H730
create non-cacheable memory area for SDMMC DMA
don't look for RAM_MAP in bootloader with external flash
2023-04-28 08:31:15 +10:00
Rhys Mainwaring
a654027a45
AP_DDS: update topic names
...
- Change to lower case and prefix with /ap
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-04-28 07:37:04 +10:00
pedro-fuoco
819431050a
AP__DDS: update velocity topic name to follow #23603
2023-04-28 07:36:00 +10:00
pedro-fuoco
2298048079
AP_DDS: Add local velocity publisher
2023-04-28 07:36:00 +10:00
Peter Barker
c50b996015
AP_RCTelemetry: add and use AP_RCPROTOCOL_CRSF_ENABLED
2023-04-27 18:31:30 +10:00
Peter Barker
6535bfa546
AP_RCProtocol: add and use AP_RCPROTOCOL_CRSF_ENABLED
2023-04-27 18:31:30 +10:00
Peter Barker
dd549ee625
AP_RCProtocol: use defaults to turn off CRSF telem on IO firmware
2023-04-27 18:31:30 +10:00
Peter Barker
1f3aecf41b
AP_HAL_ChibiOS: use defaults to turn off CRSF telem on IO firmware
2023-04-27 18:31:30 +10:00
Peter Barker
e89ccf1fa7
AP_RCProtocol: remove intermediate srxl2 callback-chain functions
2023-04-27 08:21:32 +10:00
Randy Mackay
294eb1db5b
AP_Scripting: viewpro driver uses focus type and value
2023-04-26 22:55:47 +10:00
Randy Mackay
edc2ea7bf6
AP_Scripting: camera state uses focus_type and focus_value
2023-04-26 22:55:47 +10:00
Randy Mackay
d187368b33
RC_Channel: camera focus controls use set_focus
2023-04-26 22:55:47 +10:00
Randy Mackay
020a505d78
AP_Mount: set_focus replaces set_manual/auto_focus
2023-04-26 22:55:47 +10:00
Randy Mackay
2ff89498c5
AP_Camera: set_focus replaces set_manual/auto_focus
2023-04-26 22:55:47 +10:00
Peter Barker
926c7d64b1
AP_HAL_ChibiOS: add and use AP_BOOTLOADER_FLASHING_ENABLED
2023-04-26 22:55:36 +10:00
Peter Barker
b3b46f7be6
AP_RCProtocol: add add use AP_RCPROTOCOL_SRXL2_ENABLED
2023-04-26 22:54:33 +10:00
Peter Barker
feaed97601
GCS_MAVLink: deprecate handling of MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
...
AUTOPILOT_VERSION - the message this returns - can be requested with MAV_CMD_REQUEST_MESSAGE
2023-04-26 20:34:42 +10:00
Peter Barker
d0b96d4cd9
GCS_MAVLink: deprecate handling of AUTOPILOT_VERSION_REQUEST
...
This can be done equivalently with MAV_CMD_REQUEST_MESSAGE
2023-04-26 20:34:42 +10:00
bugobliterator
ac8a447bbf
AP_HAL_ChibiOS: add asserts to AnalogIn
2023-04-26 18:04:00 +10:00
bugobliterator
240556acc5
AP_HAL_ChibiOS: ignore the settings for ANALOG_INPUT_NONE
2023-04-26 18:04:00 +10:00
bugobliterator
09c6500ac7
bootloaders: add CubeRed bootloaders
2023-04-26 18:04:00 +10:00
bugobliterator
91c0bda4da
AP_HAL_ChibiOS: add hwdef for CubeRedSecondary
2023-04-26 18:04:00 +10:00
bugobliterator
9e6c9022a3
AP_HAL_ChibiOS: add support for forwarding USB COM2 to Secondary controller
2023-04-26 18:04:00 +10:00
bugobliterator
2ac7dcc764
AP_HAL_ChibiOS: use HAL_SERIAL0_BAUD_DEFAULT when setting up serial(0)
2023-04-26 18:04:00 +10:00
bugobliterator
cc02ad9224
AP_HAL: add HAL_FORWARD_OTG2_SERIAL define
2023-04-26 18:04:00 +10:00
bugobliterator
918a7355c5
AP_HAL_ChibiOS: add CubeRedPrimary hwdef
2023-04-26 18:04:00 +10:00
bugobliterator
9663b3d409
AP_HAL: add __EXTFLASHFUNC__ define
2023-04-26 18:04:00 +10:00
bugobliterator
0343b789e6
AP_HAL_ChibiOS: add support for mixed internal and external flash
2023-04-26 18:04:00 +10:00
bugobliterator
626fd9e77f
AP_HAL_ChibiOS: add support for marking ADC pins with identifier
2023-04-26 18:04:00 +10:00
bugobliterator
726dcda24f
AP_HAL_ChibiOS: add support for using ADC2 and ADC3 on H7
2023-04-26 18:04:00 +10:00
Andy Piper
6248a657c8
AP_Motors: allow use of raw voltage for battery compensation driven by MOT_OPTIONS
2023-04-26 17:04:45 +10:00
Peter Barker
b471f9bfac
AP_ExternalAHRS: create and use backend defines for AP_ExternalAHRS
2023-04-26 14:09:25 +10:00
bugobliterator
0c728972ff
AP_DroneCAN: move to using CanardTxTransfer for sending data
2023-04-26 14:08:45 +10:00
Ryan Friedman
47e3d1af02
AP_Airspeed: Improve ARSPD_WIND_MAX behavior by handling 3D speed
...
* The previous method negated earth-frame vertical velocity
* In a steep dive on a plane, the 2D ground speed assumption of speed breaks down
* Use 3D speed always
* If only a 2D fix is avialable, then vertical velocity should be 0
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-26 14:08:01 +10:00
Ryan Friedman
d6569d6f79
AP_GPS: Use SI unit abbreviation
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-26 14:08:01 +10:00
Randy Mackay
bdb3618de7
GCS_MAVLink: support requests for gimbal-manager-information
2023-04-25 15:07:35 +10:00
Randy Mackay
ddbc52d2db
AP_Mount: support gimbal-manager-information requests
2023-04-25 15:07:35 +10:00
Andrew Tridgell
e4ce423c46
hwdef: DMA is off on I2C on F7 and H7 by default
...
no need to have it in hwdef.dat
2023-04-25 14:19:09 +10:00
Andrew Tridgell
64cd58c21a
ChibiOS: disable DMA on I2C on F7 and H7 by default
...
this was already done on many (most?) boards, and greatly reduces DMA
sharing which improves performance of UARTs. This changes the default
to no DMA on I2C
2023-04-25 14:19:09 +10:00
pedro-fuoco
171e09d28c
AP_DDS: Add local pose publisher
2023-04-25 14:18:54 +10:00
Andrew Tridgell
5024261e2e
HAL_ChibiOS: fixed hwdef DMA resolver dependency on python2/python3
...
we need to use sorted keys in dictionaries to ensure we end up with
the same DMA mapping when using py2 and py3
fixes #15534
2023-04-25 11:30:56 +10:00
Henry Wurzburg
d6e696e085
AP_Notify: fix incorrect buzzer pin type to stop always instantiating
2023-04-25 10:29:10 +10:00
muramura
b05cffeaae
AC_WPNav: Initialize near use
2023-04-25 10:13:55 +10:00
Pradeep
e7c78f8cd4
AP_EFI : Hirth type id is reserved
...
Hirth type-id = 8
WIP
2023-04-24 19:23:19 +10:00
Asif Khan
47ad614e8e
AP_Mount: Add MNTx_SYSID_DFLT param to easily target another vehicle
2023-04-24 13:34:20 +10:00
Asif Khan
3d11ec7b5c
AP_Mount: Add SysID-Target entry to MNTx_DEFLT_MODE param description
2023-04-24 13:34:20 +10:00
Randy Mackay
8d8d11a139
AC_WPNav: wpnav speed param check fixed
2023-04-24 13:29:05 +10:00
Peter Barker
dfcadfc618
AP_Notify: add and use AP_NOTIFY_TONEALARM_ENABLED
2023-04-23 16:24:02 +10:00
Peter Barker
6933000395
AP_HAL_ChibiOS: add and use AP_NOTIFY_TONEALARM_ENABLED
2023-04-23 16:24:02 +10:00
Henry Wurzburg
11def9b958
AP_Notify: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL
2023-04-23 11:19:50 +10:00
Henry Wurzburg
efd0937568
AP_HAL_ChibiOS: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL
2023-04-23 11:19:50 +10:00
Peter Barker
dafc24b7a1
AP_HAL_ChibiOS: tidy external baro probing
2023-04-23 08:28:55 +10:00
Peter Barker
100b8d3915
AP_Baro: tidy external baro probing
2023-04-23 08:28:55 +10:00
Peter Barker
d3ce0356b8
hwdef: remove uart7 from thepeach-r1 bootloader to get it compiling
...
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
e37b3f9fcd
hwdef: remove uart7 from thepeach-k1 bootloader to get it compiling
...
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
587f64b784
hwdef: remove uart7 from PixSurveyA1-IND bootloader to get it compiling
...
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
e3ee5ca822
hwdef: remove uart7 from PixPilot-v3 bootloader to get it compiling
...
out of space otherwise
2023-04-22 13:58:02 +10:00
Henry Wurzburg
3362f752cb
AP_Notify: remove unused HAL_BUZZER_OFF defines
2023-04-22 13:51:09 +10:00
Henry Wurzburg
be94015dba
AP_HAL_ChibiOS: remove unused HAL_BUZZER_OFF defines
2023-04-22 13:51:09 +10:00
Ryan Friedman
bb6c872138
AP_DDS: Publish NavSatFix as soon as its available
...
* Removes the hard coded timing, now it's driven by the GPS update times
* Changed the function signature to return true if the data topic has been changed
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 11:04:49 +10:00
Ryan Friedman
edde5d2e48
AP_DDS: Add developer recommended steps for pre-commit
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 11:03:04 +10:00
Ryan Friedman
7ff2a9eec3
AP_DDS: Use mirror of DDS Gen
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 08:28:58 +10:00
Michael du Breuil
a9d696752d
GCS_MAVLink: Factor accel cal work out to INS library
2023-04-21 21:33:16 +10:00
Michael du Breuil
b76d6d827f
AP_InertialSensor: Factor accel cal in from GCS_MAVLink
2023-04-21 21:33:16 +10:00
Peter Barker
15ec9f6f82
GCS_MAVLink: allow Copter to emit MISSION_STATE_PAUSED when paused in auto
2023-04-21 09:49:55 +10:00
Peter Barker
510ed4cf2f
GCS_MAVLink: add support for more MISSION_CURRENT fields
...
- a state so someone can see if the mission is complete
- total number of waypoints
2023-04-21 09:49:55 +10:00
Peter Barker
75a0c592ab
AP_RCProtocol: move code from SRXL2.cpp into Backend.cpp
...
NFC, just moving from one cpp to another
2023-04-21 09:15:01 +10:00
Peter Barker
ff441de8ec
AP_RCProtocol: move configure_vtx method to AP_RCProtocol_Backend
...
this is called as a static method from DSM to SRXL2 which isn't good.
2023-04-21 09:15:01 +10:00
Peter Barker
1d8a5ac92d
AP_HAL_ChibiOS: correct CubOrange-periph-heavy compilation
...
canmanager isn't enabled, so no piccolocan
2023-04-20 21:51:40 +10:00
muramura
edabfb8a2e
AP_Arming: Remove unnecessary empty sentences
2023-04-20 09:24:46 +10:00
Peter Barker
ce00251333
AP_CANManager: correct gate on definition of AP_CANManager class
2023-04-20 08:53:46 +10:00
Peter Barker
d0c80f5877
AP_Vehicle: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
79f08394b3
SRV_Channel: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
b167e19bb6
AP_Scripting: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
7461dffb89
AP_RangeFinder: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
34a02fcda9
AP_PiccoloCAN: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
04feb98091
AP_KDECAN: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
b6cb47d3cd
AP_EFI: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
80752af077
AP_DroneCAN: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
fea2c8d923
AP_CANManager: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Peter Barker
c88b7586da
AP_Arming: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Andy Piper
cf20a70c58
AP_HAL_ChibiOS: move LED processing to a separate thread
...
LED processing on a separate thread allows much longer LED lengths to be handled without
compromising dshot timing or timeouts. The thread is also run at a lower priority to
reflect its lack of flight criticality
2023-04-19 16:45:21 +01:00
Andy Piper
875481b823
AP_HAL: add helper functions for LEDs
...
add PRIORITY_LED for led output thread
2023-04-19 16:45:21 +01:00
Peter Barker
c3c758a2e4
hwdef: DrokekP3Pro loses usart3
2023-04-19 19:05:14 +10:00
Rhys Mainwaring
954af207c2
Tools: add COLCON_IGNORE to modules and libraries
...
- Prevent colcon from searching in modules and libraries for CMakeLists.txt.
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-04-19 18:34:15 +10:00
Peter Barker
81f3c6a4c4
AP_Arming: correct prearm check for mission storage file
2023-04-19 18:05:20 +10:00
bugobliterator
ef8ebd85dd
AP_BoardConfig: resetting the BRD_HEAT_TARG to 45 is not needed anymore
...
As iomcu fw has right default polarity now.
2023-04-19 17:59:08 +10:00
Andy Piper
7db0c387cc
AP_HAL_ChibiOS: update MambaF405v2 for ICM42688, bdshot and DMA on UART1
2023-04-19 17:47:51 +10:00
Andy Piper
87a3c34c70
AP_HAL_ChibiOS: add BMI270 and ICM42688 to FlywooF745
2023-04-19 17:42:26 +10:00
Andy Piper
794335bb26
AP_HAL_ChibiOS: remove erroneous FlywooF745v2
2023-04-19 17:42:26 +10:00
Randy Mackay
288de08374
RC_Channel: integrate ZoomType def move out of AP_Camera
2023-04-19 17:31:46 +10:00
Randy Mackay
14ef3870bc
AP_Mount: integrate ZoomType def move out of AP_Camera
2023-04-19 17:31:46 +10:00
Randy Mackay
a1ae189b17
AP_Camera: move ZoomType def to separate .h
2023-04-19 17:31:46 +10:00
Randy Mackay
a8c593d44c
AP_Mount: Siyi driver comment re zoom decrement
2023-04-19 17:31:46 +10:00
Randy Mackay
9c72cf2a1e
AP_Camera: move some includes to backend
...
also remove some redundant includes
2023-04-19 17:31:46 +10:00
Randy Mackay
82d03e45e0
AP_Scripting: integrate camera_state_t scope change
2023-04-19 17:31:46 +10:00
Randy Mackay
a9cc32d304
AP_Camera: reduce camera_state_t scope
2023-04-19 17:31:46 +10:00
Randy Mackay
ea1836304a
AP_Scripting: ViewPro driver supports zoom pct
2023-04-19 17:31:46 +10:00
Randy Mackay
4090c50e8f
AP_Scripting: camera set_zoom binding replaces set_zoom_step
2023-04-19 17:31:46 +10:00
Randy Mackay
ddaff85166
AP_Mission: set_zoom replaces set_zoom_step
2023-04-19 17:31:46 +10:00
Randy Mackay
9100123efe
RC_Channel: set_zoom replaces set_zoom_step
2023-04-19 17:31:46 +10:00
Randy Mackay
5b7f9c874d
AP_Mount: set_zoom replaces set_zoom_step
2023-04-19 17:31:46 +10:00
Randy Mackay
6603a6c8c5
AP_Camera: set_zoom replaces set_zoom_step
2023-04-19 17:31:46 +10:00
bugobliterator
b1c4cf9923
AP_DroneCAN: fix DroneCAN run for SITL
2023-04-19 17:26:57 +10:00
Andrew Tridgell
42192b2800
AP_DroneCAN: cope with 16 bit limit on event timeout
...
use a smaller process() time while waiting for node startup
2023-04-19 17:26:57 +10:00
Andrew Tridgell
761297a068
AP_HAL_SITL: change to 16 bit timeout in event interface
...
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
d5effcdf92
AP_HAL_Linux: change to 16 bit timeout in event interface
...
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
d1e50cb0c8
AP_HAL: change to 16 bit timeout in event interface
...
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
86b6f3a2c6
AP_HAL_ChibiOS: change to 16 bit timeout in event interface
...
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Peter Barker
7088286ebf
AP_Compass: use new vector methods to make for more compact code
...
The check for zero-length magnetic field on the primary is redundant given the one on the loop
2023-04-19 14:25:06 +10:00
Peter Barker
f1eec8482b
AC_AttitudeControl: use quat.to_euler(Vector3f&)
2023-04-19 14:24:45 +10:00
Peter Barker
ce8afaf57b
AP_NavEKF3: use quat.to_euler(Vector3f&)
2023-04-19 14:24:45 +10:00
Peter Barker
a3c5926040
AP_Mount: use quat.to_euler(Vector3f&)
2023-04-19 14:24:45 +10:00
Peter Barker
0b2e1e7989
AP_Math: allow conversion of a quaternion into an rpy Vector3f
...
There are several places in the code that can use this
2023-04-19 14:24:45 +10:00
Iampete1
4186edad3f
AP_DroneCAN: move to hal.util->snprintf to keep g++ 7.5.0 happy
2023-04-18 17:44:29 +01:00
Andrew Tridgell
14d2318859
AP_BoardConfig: on debug builds enable the debug pins by default
...
this saves a step in debugging
2023-04-18 14:35:21 +10:00
Peter Barker
5121b33c03
hwdef: remove more features from SkyViper
2023-04-18 11:45:39 +10:00
Peter Barker
271571e29c
AP_GPS_NMEA: fix stringop truncation failure on g++ 9
2023-04-18 11:44:57 +10:00
Peter Barker
8c203d29d0
SRV_Channel: remove CANTester
2023-04-18 11:43:58 +10:00
Peter Barker
a657c6ea75
GCS_MAVLink: remove CANTester
2023-04-18 11:43:58 +10:00
Peter Barker
b055b67a7f
AP_CANManager: remove CANTester
2023-04-18 11:43:58 +10:00
Peter Barker
a4721b4ff8
AP_Arming: remove CANTester
2023-04-18 11:43:58 +10:00
Henry Wurzburg
73011c81fd
AP_HAL_ChibiOS: correct MatekH743 storage size
2023-04-18 11:25:25 +10:00
Robert Taylor
ebef532258
AP_Scripting: Add EFI state get example
2023-04-18 10:31:01 +10:00
Robert Taylor
59cb583d63
AP_Scripting: Add efi get_state function
2023-04-18 10:31:01 +10:00
Robert Taylor
7b64d09dc4
AP_Scripting: Make EFI bindings readable
2023-04-18 10:31:01 +10:00
Peter Barker
068443718e
GCS_MAVLink: deprecate use of MISSION_SET_CURRENT message
...
The mavlink command MAV_CMD_DO_SET_MISSION_CURRENT has been in place since January 2019 and is superior to this.
2023-04-18 10:24:26 +10:00
Iampete1
3a36337775
AP_Motors: Thrust Linearization: disable density comp in example as baro is not declared
2023-04-18 09:32:22 +10:00
Iampete1
ab4777de14
AP_Motors: move thrust linerization to its own class
2023-04-18 09:32:22 +10:00
Peter Barker
5d68f44694
AP_NavEKF3: move beacon variables into structure
...
AP_NavEKF3: change beacon variable names
2023-04-18 09:28:02 +10:00
Peter Barker
f6fa509443
AP_Camera: add timestamp on parameter conversion function
...
...so we can remove this stuff more easily over time
2023-04-17 22:05:08 +01:00
Peter Barker
395961883f
AP_Logger: avoid many method calls logging RCOU
2023-04-17 21:28:49 +10:00
Peter Barker
1fb879322c
hwdef: correct compilation of OMNIBUSF7V2
...
redefition erro
2023-04-17 21:26:41 +10:00
Tom Pittenger
7bde074791
AP_KDECAN: remove prearm and allow better mapping
2023-04-17 11:52:52 +10:00
Tom Pittenger
de86102751
AP_KDECAN: don't handle ESCs changing their address
2023-04-17 11:52:52 +10:00
Tom Pittenger
2bbd7d8d91
AP_CANManager: set _driver_type_cache for *all* ifaces
2023-04-17 11:52:52 +10:00
Tom Pittenger
e21063522d
AP_KDECAN: apply NFC suggestions from Peter Barker
2023-04-17 11:52:52 +10:00
Tom Pittenger
a443fd97a6
GCS_MAVLink: remove preflight_can
...
It was only using CANTester to test KDECAN enumeration which was removed
2023-04-17 11:52:52 +10:00
Tom Pittenger
5ca3aa6346
AP_CANManager: remove KDECAN from CANTester
2023-04-17 11:52:52 +10:00
Tom Pittenger
eed3cf3255
AP_CANManager: promote KDECAN to a first-class library
2023-04-17 11:52:52 +10:00
Tom Pittenger
c585b0286d
AP_KDECAN: total re-write using CANSensor and remove Enum
2023-04-17 11:52:52 +10:00
Tom Pittenger
84b7444047
AP_CANSensor: add get_driver_type() accessor
2023-04-17 11:52:52 +10:00
Tom Pittenger
9cf5759435
AP_HAL_ChibiOS: enable KDECAN on CubeOrange-periph
2023-04-17 11:52:52 +10:00
Tom Pittenger
20d89c510b
AP_HAL_ChibiOS: AP_KDECAN_ENABLE 0 by default
2023-04-17 11:52:52 +10:00
Tom Pittenger
c2e1eeac98
SRV_Channel: move AP_KDECAN to a first-class library
2023-04-17 11:52:52 +10:00
Tom Pittenger
5ef4c8dd09
GCS_MAVLink: move AP_KDECAN to a first-class library
2023-04-17 11:52:52 +10:00
Tom Pittenger
2fcae3c520
AP_Arming: remove AP_KDECAN prearm checks
2023-04-17 11:52:52 +10:00
Tom Pittenger
af2fc47b4d
AP_Vehicle: move AP_KDECAN to AP_Vehicle
...
ssss
2023-04-17 11:52:52 +10:00
Paul Riseborough
5ab17496f6
AP_NavEKF3: Improve protection against GPS glitches during yaw alignment
2023-04-17 08:48:03 +10:00
Paul Riseborough
7063b385cf
AP_NavEKF3: Reduce use of GSF yaw for planes with no compass
2023-04-17 08:48:03 +10:00
Peter Barker
37f638c5f7
AP_Proximity: include AP_Proximity_Backend.h in AP_Proximity.cpp
...
fixes a compilation problem if all of the backends are compiled out!
2023-04-16 12:29:42 +10:00
Peter Barker
3b2e92c4d6
AP_Mount: use only radians within servo backend
2023-04-15 23:14:48 +10:00
Peter Barker
db15803017
GCS_MAVLink: send deprecated message received warning at INFO not WARN
2023-04-15 23:14:33 +10:00
Ryan Friedman
4ba1c56368
AP_Airspeed: Add missing D in ARSP
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-15 23:14:12 +10:00
Peter Barker
b10c576134
AP_VisualOdom: allow VisualOdom backends to be compiled in individually
2023-04-15 22:19:21 +10:00
Peter Barker
3c86167544
hwdef: only allow specific VisualOdom devices (right now, MAVLink)
2023-04-15 22:19:21 +10:00
pedro-fuoco
72a693e68e
AP_DDS: Switch BatteryState topic to sensor data QOS
...
Resolves #23365 for the BatteryState topic
2023-04-15 09:40:33 +10:00
pedro-fuoco
e1b06a1b99
AP_DDS: Integrate AP_BattMonitor to work with AP_DDS
...
* Edit BatteryState.idl
* Add BatteryState to AP_DDS_Topic_table.h
* Add BatteryState to the DDS Client
* Add voltage
* Add temperature
* Add current
* Add charge
* Add capacity with NAN value
* Add design_capacity
* Add percentage
* Add power_supply_status
* Add power_supply_health
* Add power_supply_technology with 0 value
* Add present
* Cell_voltage and Serial_number need to be implemented in the future
* Did not add cell_temperature as AP_BattMonitor doesn't support it
* Did not add location as this is a generic implementation
* Parameterize battery instance number
2023-04-15 09:40:33 +10:00
Peter Barker
25ec1730b4
AP_EFI: poll MS at 10Hz not 5Hz
2023-04-15 09:39:39 +10:00
Peter Barker
fb1b2e870e
AP_EFI: MS: avoid requesting data too often
...
Similar to 4585c9fdc1
2023-04-15 09:39:39 +10:00
Peter Barker
bddf0ae5a2
AP_Volz_Protocol: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
b1066bb9e7
AP_VisualOdom: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
3999d454e1
AP_Torqeedo: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
033c708b2a
AP_TemperatureSensor: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
b19f2acb35
AP_RobotisServo: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
a499fcc71c
AP_Proximity: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
69d7843f22
AP_Mount: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
6e1cd839d8
AP_InertialSensor: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
14c839780a
AP_FETtecOneWire: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
de7d5c6899
AP_ExternalAHRS: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
4c5220eb9e
AP_EFI: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
e363d6dfa5
AP_BattMonitor: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
7bbeab7aaa
AP_ADSB: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker
9cc8622ccc
AP_Radio: correct build of AP_Radio_bk2425
...
new ChibiOS, new API
2023-04-14 20:10:11 +10:00
Ryan Friedman
9e9d487442
AP_DDS: Consume covariance implementation in AP_DDS
...
* Use float precision as long as possible
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-14 12:06:42 +10:00
Ryan Friedman
1e9403dca6
AP_GPS: Add covariance output to AP_GPS matching ROS NavSatFix
...
* Zero every iteration in case GPS quality degrades or fix is lost
* Use float precision for now
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-14 12:06:42 +10:00
Ryan Friedman
06d9a08d16
AP_DDS: Remove unused commented code
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-14 12:05:14 +10:00
arshPratap
63ed2c646e
AP_DDS: Preserve folder structure and includes for IDL files
...
* Remove ALL local changes in IDL (it mirrors upstream)
* Convert to pathlib for more robust manipulation
* Added EOF newlines for all the other missing IDL files
Co-authored-by: Arsh Pratap <arshpratapofficial@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-14 12:05:14 +10:00
Andy Piper
fc6cb74ac7
AP_HAL_ChibiOS: SDIO PWRSAV needs to be enabled on F4/F7
2023-04-14 08:05:19 +10:00
Peter Barker
50dbf4219b
AP_Vehicle: AP_Arming ensures mission items present when in auto mode
...
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2023-04-14 07:49:54 +10:00
Peter Barker
e0d1a5c8d2
AP_Arming: AP_Arming ensures mission items present when in auto mode
...
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2023-04-14 07:49:54 +10:00
Peter Barker
9e0c83503e
hwdef: minimize_features.inc: nominate all included battery backends
...
this will stop the number growing on our smallest boards
2023-04-14 07:49:16 +10:00
Andrew Tridgell
3f33457404
HAL_ChibiOS: fixed L4 mcu type detection
2023-04-14 07:48:56 +10:00
tsubashmail@gmail.com
ae9e15ade5
HAL_ChibiOS: port for STM32L4+ processor
...
Added support for stm32l4+ processor
- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
2023-04-14 07:48:56 +10:00
tsubashmail@gmail.com
880e6366bd
AP_FlashStorage: port for STM32L4+ processor
...
Added support for stm32l4+ processor
- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
2023-04-14 07:48:56 +10:00
Andrew Tridgell
48acb1a2f7
AP_Logger: added LOG_DARM_RATEMAX
...
this sets the logging rate max when disarmed. In combination with
LOG_DISARMED=3 it gives a very nice setup to get always on logging
with very little addition to the log sizes. It is particularly useful
in combination with LOG_REPLAY=1
2023-04-14 07:48:24 +10:00
Andrew Tridgell
63e45a3910
AP_Logger: added LOG_DISARMED=3
...
when LOG_DISARMED is set to 3 then we log while disarmed but if we
reboot without ever arming the log is discarded. This allows for using
LOG_DISARMED without filling the microSD.
2023-04-14 07:48:24 +10:00
Andrew Tridgell
3b4f5d77af
AP_Logger: use AP_Enum for log_disarmed
2023-04-14 07:48:24 +10:00
Andrew Tridgell
4899ec9457
AP_Param: added set() to AP_Enum
2023-04-14 07:48:24 +10:00
Randy Mackay
470b9638ea
AP_Mount: remove unused get_camera_state
2023-04-14 07:47:47 +10:00
Randy Mackay
b9e06438f1
AP_Scripting: ViewPro driver bug fix
2023-04-14 07:47:47 +10:00
Peter Barker
6eda22e7de
AP_Logger: do not rotate logs when disarming if we are replay-logging
2023-04-14 07:47:33 +10:00
Andrew Tridgell
6fbd8df95b
AP_DroneCAN: fixed Volz feedback build
2023-04-13 10:36:47 -07:00
Peter Barker
795bb19cb9
AP_BattMonitor: move defines around battery types for consistency
2023-04-13 15:24:45 +10:00
Peter Barker
af5f702c36
GCS_MAVLink: add and use defines for all Proximity backends
2023-04-13 07:07:18 +10:00
Peter Barker
c110ac489c
AP_Proximity: add and use defines for all Proximity backends
2023-04-13 07:07:18 +10:00
Peter Barker
92dea59620
hwdef: SkyViper doesn't need most proximity sensors
2023-04-13 07:07:18 +10:00
Peter Barker
3eae62c69a
AP_RangeFinder: add and use AP_RangeFinder_config.h
2023-04-13 07:07:18 +10:00
Ryan Friedman
80ed6125aa
AP_DDS: Add support for static transforms
...
* This encodes the position of the GPS receivers relative to the aircraft origin
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-13 07:05:24 +10:00
Randy Mackay
1a9189d602
AP_Scripting: add binding for camera semaphore
2023-04-13 07:04:46 +10:00