Commit Graph

64459 Commits

Author SHA1 Message Date
bugobliterator 0790eb5833 bootloaders: update Cube* and Here* bootloaders 2024-08-15 11:41:21 +10:00
bugobliterator d8df0b716d AP_Bootloader: check ecc error flags only in Flash Status registers 2024-08-15 11:41:21 +10:00
Peter Barker 60c2e4278c AP_Compass: avoid use of MAV_RESULT if mavlink bindings not used 2024-08-14 19:40:31 +10:00
Peter Barker 571f18bb69 AP_Terrain: gate mavlink includes on HAL_GCS_ENABLED
avoids trying to include headers which have not been generated"
2024-08-14 19:39:16 +10:00
Peter Barker ba305025c4 AP_Notify: use default value for DEFAULT_NTF_LED_TYPES for NavIO2
this is the default default value for this define
2024-08-14 19:38:48 +10:00
Peter Barker b47bcc4429 AP_Notify: use default DEFAULT_NTF_LED_TYPES on unrecognised Linux boards
now have two ifndef blocks, one of which defaults things on recognized linux boards, the other generically.

Preparation for removing the defaultin for Linux boards in this file
2024-08-14 19:38:48 +10:00
Peter Barker 7c2ee8d53c AP_Notify: use DEFAULT_NTF_LED_TYPES for chibios boards
default is the same  as what ChibiOS sets
2024-08-14 19:38:48 +10:00
root c854830702 AP_VideoTX:add additional freq bands(RushFPV 3.3GHz) 2024-08-13 21:32:56 +10:00
James O'Shannessy 0ec7505e64 scripts: Enable InertialLabs as a build option 2024-08-13 21:32:11 +10:00
James O'Shannessy 39f7d7a3ad AP_ExternalAHRS: Allow InertialLabs to be used as build option properly
build_options cannot autodetect InertialLabs since the feature is extracted as AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED (without the underscore).
This allows you to define in/out InertialLabs properly.
2024-08-13 21:32:11 +10:00
Andrew Tridgell d225683d69 AP_GPS: fixed unconfigured uBlox pre-arm
when GPS_GNSS_MODE is zero (the default) we could get stuck trying to
configure the GNSS for F9P
2024-08-13 10:49:09 +10:00
Peter Barker 8c6a427107 AP_Vehicle: correct compilation when network port registering disabled
the ports member doesn't exist in this case
2024-08-13 10:46:45 +10:00
Peter Barker f32f3beceb AP_Networking: correct compilation when network port registering disabled
ports doesn't exist if this condition is false
2024-08-13 10:46:45 +10:00
Peter Barker 1dc87a0903 AP_OpticalFlow: simplify condition used for building onboard optical flow in
we're not being consistent in the use of defines to protect this feature; fix that
2024-08-13 10:45:31 +10:00
Andy Piper edbe339f48 AP_Logger: correctly read file header for block logger 2024-08-13 10:44:35 +10:00
Peter Barker 3194fa1385 AP_Scripting: correct compilation when AP_SCRIPTING_SERIALDEVICE_ENABLED false 2024-08-13 10:43:29 +10:00
Peter Barker 6c788c6ae0 AP_Math: correct warning on fabsF
2024-08-08T01:51:53.6780446Z ../../libraries/AP_Math/vector3.cpp:432:9: warning: absolute value function 'fabsf' given an argument of type 'const double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
2024-08-08T01:51:53.6781336Z     if (fabsF(cosv) >= 1) {
2024-08-08T01:51:53.6781583Z         ^
2024-08-08T01:51:53.6781930Z ../../libraries/AP_Math/ftype.h:50:18: note: expanded from macro 'fabsF'
2024-08-08T01:51:53.6782342Z #define fabsF(x) fabsf(x)
2024-08-08T01:51:53.6782572Z                  ^
2024-08-08T01:51:53.6789178Z ../../libraries/AP_Math/vector3.cpp:633:16: note: in instantiation of member function 'Vector3<double>::angle' requested here
2024-08-08T01:51:53.6789800Z template class Vector3<double>;
2024-08-13 10:42:23 +10:00
Andy Piper 08bf7c6163 AP_HAL_ChibiOS: Flywoo H743 Pro 2024-08-13 10:20:15 +10:00
Andy Piper 40e7118020 AP_Bootloader: Flywoo H743 Pro 2024-08-13 10:20:15 +10:00
Andy Piper 8e45fb1450 bootloaders: Flywoo H743 Pro 2024-08-13 10:20:15 +10:00
Thomas Watson e12f345bae AP_DroneCAN: DNA_Server: make lower level database tasks private
All the higher level database operations need to be locked for the whole
duration of the operation, so nobody should be using the lower-level
tasks or raw read/write functions. We can also remove the locks from
them.

The database can now safely be used by multiple servers.
2024-08-13 09:58:44 +10:00
Thomas Watson 4097e9fa42 AP_DroneCAN: DNA_Server: move allocation operation to db
Must be locked for the whole operation due to the find free/add
read-modify-write.

Preserves the previous behavior of sending back an ID of 0 in case of
allocation failure, for better or worse.
2024-08-13 09:58:44 +10:00
Thomas Watson f406c62449 AP_DroneCAN: DNA_Server: move node info update operation to db
Must be locked for the whole operation due to the occupied check and
addition read-modify-write.
2024-08-13 09:58:44 +10:00
Thomas Watson e79437d04a AP_DroneCAN: DNA_Server: move init operation into db
Must be locked for the whole operation due to the get/add
read-modify-write.
2024-08-13 09:58:44 +10:00
Thomas Watson 01e285c681 AP_DroneCAN: DNA_Server: move database tasks to db class
The server should not have raw read/write access to the database so the
database needs to take over the tasks.
2024-08-13 09:58:44 +10:00
Thomas Watson a9774d2334 AP_DroneCAN: DNA_Server: move storage read/write to its own class
There is (currently) only one storage area that is used by all servers,
so it needs to be managed by its own class shared among them.

The occupied mask is also moved as it reflects the storage contents and
so can't be stored by each server.
2024-08-13 09:58:44 +10:00
Iampete1 698f8fb40e Plane: Qautotune: use new disarmed call and add new aux function 2024-08-13 08:57:44 +09:00
Iampete1 f6da3ce764 AC_AutoTune: add support for testing tune via aux function 2024-08-13 08:57:44 +09:00
Iampete1 c0d2c15ac8 Copter: autotune: allow access to autotune object and call through for disarm and aux function 2024-08-13 08:57:44 +09:00
Iampete1 94d3e2673a AC_AutoTune: Multi and Heli: only load tuned gains if a axis has completed successfully 2024-08-13 08:57:44 +09:00
Iampete1 9da6f321a0 RC_Channel: add autotune switch 2024-08-13 08:57:44 +09:00
magate d5bd30bce0 Plane: do not set desired vel/accel on takeoff
This effectively bypasses the input shaping.

Currently this creates a step change in the position controller.
2024-08-13 09:21:27 +10:00
Peter Barker c3b6127b1b AP_ExternalAHRS: correct VectorNAV handling of error term 2024-08-13 08:38:21 +10:00
Peter Barker f389549d5d AP_InertialSensor: correct warnings on static_assert requiring a message 2024-08-13 08:38:00 +10:00
Peter Barker ce03fd3ed9 AC_AutoTune: remove unused variable from heli autotune 2024-08-12 13:30:26 -04:00
Peter Barker 748fe538ea AP_Winch: correct compilation when backends compiled out 2024-08-12 18:28:27 +10:00
Peter Barker 27a7a21805 AP_Compass: correct compilation when logging disabled 2024-08-12 18:28:07 +10:00
Peter Barker 610ba486ad AP_MSP: cut more code out based on defines 2024-08-12 18:07:21 +10:00
Peter Barker 5c3aa91721 AP_RCTelemetry: add missing gate for AP_VIDEOTX_ENABLED
possible nullptr issue?
2024-08-12 17:52:04 +10:00
Peter Barker 92dd71203e AP_VideoTX: correct include to use config.h
need to avoid random headers in these config files!
2024-08-12 17:52:04 +10:00
Peter Barker 53e9fe0805 AP_Mount: correct compilation with HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED off 2024-08-12 17:50:59 +10:00
Tom Pittenger a014bcb5bd AP_RPM: Allow more instances 2024-08-10 22:37:03 +10:00
mikefenghao ff30224079 AP_HAL_ChibiOS:added new hardware PixPilot-V6PRO 2024-08-10 11:06:33 +10:00
mikefenghao 0f28341a03 bootloaders:add PixPilot-V6PRO bootloaders 2024-08-10 11:06:33 +10:00
Peter Barker 1e4caaec78 autotest: allow max distance on ship test
vehicle moves...
2024-08-10 10:54:20 +10:00
Peter Barker 3963f1b114 autotest: allow reboot_sitl to specify max startup loc dist
useful if your vehicle is on a ship
2024-08-10 10:54:20 +10:00
Peter Barker 5e929e1b39 autotest: poll_message limits polled message to system it was requested from 2024-08-10 10:54:20 +10:00
Peter Barker f3271ce0a6 autotest: add a load_params_file method to take params from test dir 2024-08-10 10:54:20 +10:00
Peter Barker 22360b43a8 autotest: zero throttle when force-rebooting
otherwise we may end up trying to calibrate ESCs...
2024-08-10 10:54:20 +10:00
Peter Barker 33bae74d07 autotest: rename load-parameters method to be more accurate 2024-08-10 10:54:20 +10:00