Commit Graph

32795 Commits

Author SHA1 Message Date
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