Commit Graph

36903 Commits

Author SHA1 Message Date
Peter Barker
4e623bd384 APM_Control: avoid use of AP_Logger.h in library headers
this pulls in many more headers, we should avoid using it whereever we can
2024-09-04 09:51:49 +10:00
Peter Barker
6cfecaa86d AP_NavEKF3: use enum class for DAL MemoryType 2024-09-04 09:51:08 +10:00
Peter Barker
7d1e1ef924 AP_NavEKF2: use enum class for DAL MemoryType 2024-09-04 09:51:08 +10:00
Peter Barker
e3e350427e AP_DAL: use enum class for DAL MemoryType 2024-09-04 09:51:08 +10:00
Randy Mackay
b46d22f08b AP_Scripting: minor docs fix 2024-09-04 08:37:08 +09:00
Randy Mackay
1df029a679 AP_Scripting: minor spelling fix 2024-09-04 08:37:08 +09:00
Andrew Tridgell
34c1c70cc4 hwdef: rename BotBloxSwitch to BotBloxDroneNet 2024-09-04 09:03:56 +10:00
Peter Barker
7a930637e0 AP_RangeFinder: RDS02UF: avoid nuking partial messages after good parse
there may be a fragment of another packet in the buffer
2024-09-03 14:34:23 +10:00
David Buzz
61e83dcd0e AP_HAL_ESP32: improve the reported LOOP_RATE on esp32s3 to similar loop rate to classic esp32
getting a loop rate of around 130 on both now

source modules/esp_idf/export.sh

./waf configure --board=esp32s3empty --debug
./waf copter
cd build/esp32buzz/esp-idf_build/
ninja menuconfig

./waf configure --board=esp32buzz --debug
./waf copter
cd build/esp32buzz/esp-idf_build/
ninja menuconfig

and try to get both the resulting modified sdkconfig as smiilar as possible - this causes s3 to use qio, which is faster, and also puts the wifi stuff onto CORE1 on both configs.

s3:
loop_rate: actual: 148.097137Hz, expected: 400Hz
loop_rate: actual: 147.908691Hz, expected: 400Hz

classic:
loop_rate: actual: 188.718842Hz, expected: 400Hz
loop_rate: actual: 191.819748Hz, expected: 400Hz
2024-09-03 11:04:10 +10:00
Peter Barker
8856100e39 AP_Logger: restart logging after log transfer 2024-09-03 11:01:24 +10:00
Aaron Elijah
b63865cdc5 hwdef: force 100MBit fullduplex for BotBloxSwitch
auto-negotiation doesn't work

also disable TX/RX swap as not needed on final board
2024-09-03 10:41:58 +10:00
Peter Barker
771696e7d5 AP_Soaring: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
e19ae3ec01 AP_Module: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
42282dab65 AP_L1_Control: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
90749b6f40 AP_InertialNav: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
99dc2d1b39 AP_DDS: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
42b8ee78cf AP_Compass: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
9eec4fdff2 AP_ADSB: remove use of AP_AHRS from most headers
don't need to know the details, just that it is a class
2024-09-03 10:35:54 +10:00
Peter Barker
e8f361458e AP_NavEKF3: rename gpsVelInnovTime_ms to gpsRetrieveTime_ms
in preparation for using this for other things
2024-09-03 10:34:02 +10:00
Peter Barker
2a6b45f4d9 AP_NavEKF3: tidy formatting of is_deadreckoning 2024-09-03 10:34:02 +10:00
Peter Barker
4782ace3b9 AP_NavEKF3: rename lastPosPassTime_ms to lastGpsPosPassTime_ms 2024-09-03 10:34:02 +10:00
Peter Barker
a51614f360 AP_NavEKF3: use reference for dal in frontend
in place of method calls
2024-09-03 10:16:59 +10:00
Randy Mackay
ba9bb22c3c AP_Scripting: add camera-change-settings applet 2024-09-03 09:04:39 +09:00
Randy Mackay
79983944c6 AP_Scripting: change_camera_setting binding 2024-09-03 09:04:39 +09:00
Randy Mackay
1f14c2ca6b AP_Mount: Siyi implements change_setting 2024-09-03 09:04:39 +09:00
Randy Mackay
78d88d11a3 AP_Camera: add change settings 2024-09-03 09:04:39 +09:00
Willian Galvani
11e05b1436 AP_HAL: add BMP390 option for navigator 2024-09-02 11:37:40 -03:00
Ryan Friedman
02d01ce392 AP_DDS: Remove duplicate instructions
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-02 12:24:31 +10:00
cuav-chen2
18cb1f3899 HAL_ChibiOS: change battery scale for CUAV-7-Nano flight controller 2024-09-02 12:23:08 +10:00
Thomas Watson
89c9e59c55 AP_DroneCAN: DNA_Server: polish db methods
No compiler output change.
2024-09-02 11:53:24 +10:00
Peter Barker
a0c57291d7 AP_InertialSensor: correct compilation when logging disabled 2024-09-02 11:53:12 +10:00
Peter Barker
864a7a2a4b AP_GPS: define GPS_BLENDED_INSTANCE any time AP_GPS_BLENDED_ENABLED
otherwise someone can explicity ebable it but not have a blended instance ID
2024-09-02 11:53:12 +10:00
Peter Barker
e9baf3d15a AP_DAL: add and use pr/EK3_FEATURE_OPTFLOW_FUSION 2024-09-02 11:53:12 +10:00
Peter Barker
02c6784c11 AP_NavEKF3: add and use pr/EK3_FEATURE_OPTFLOW_FUSION 2024-09-02 11:53:12 +10:00
Peter Barker
c5b9d1dcbb AP_AHRS: add and use pr/EK3_FEATURE_OPTFLOW_FUSION 2024-09-02 11:53:12 +10:00
David Buzz
04292a280c AP_HAL_ESP32: scheduler timing information was lying to us
This reverts commit 010cfa2f4c.

AP_HAL_ESP32: scheduler timing information was lying to us, this puts it back so both 'esp32buzz' and 'esp32s3empty' loop rates are "better than before.  Still terrible, but an improvement

revert of part of pr #27181
2024-09-02 09:21:45 +10:00
Thomas Watson
e99b0fd7b9 AP_HAL: increase overtime margin on ESP32 2024-09-02 09:21:08 +10:00
Thomas Watson
6c2daabd21 AP_Scheduler: make overtime margin definable
Also warn about overtime on ESP32 which is most likely to hit it.
2024-09-02 09:21:08 +10:00
Ferruccio Vicari
5b2dcc3a0c AP_Motors: fix DDVP tail servo initialization 2024-09-01 18:03:20 -04:00
Clyde McQueen
cc06f7099c AC_WPNav: lower WPNAV_SPEED min to 10 cm/s 2024-08-30 07:55:50 +09:00
Maxim Buzdalov
15d6e664d8 AP_Notify: Fix compilation error in GPIO_LED_1.cpp 2024-08-29 09:37:50 +10:00
bugobliterator
957e92aca1 AP_HAL_ChibiOS: use CubePilot-CANMod's Serial Order 2024-08-28 18:20:29 +10:00
Henry Wurzburg
e6351b6a41 AP_Notify:correct and expand 1 led flash sequences 2024-08-28 18:19:26 +10:00
Henry Wurzburg
4a72373624 AP_GPS:fix metadata typo 2024-08-28 15:31:08 +10:00
Henry Wurzburg
1631e85fe8 AP_GPS:add note to old param names to avoid confusion 2024-08-27 12:00:14 +10:00
Iampete1
3c6e5691e4 Filter: LowPassFilter: use calc_lowpass_alpha_dt helper 2024-08-27 11:21:22 +10:00
Iampete1
5453f3a0cc AP_DroneCAN: register handle_actuator_status_Volz callback and fix logging 2024-08-27 11:18:18 +10:00
Peter Barker
46db6c12c1 SITL: correct use of simulated GPS data
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>

uses the elements out of the simulated GPS data "d", rather than going to the parameters in teh simulated GPS "backends".
2024-08-27 11:14:09 +10:00
Peter Barker
3c0c2bfa67 AP_Math: add a test for rand_float 2024-08-27 11:09:13 +10:00
Peter Barker
84bcea73e1 AP_Math: correct range of returned value for rand_float on real hardware 2024-08-27 11:09:13 +10:00