Commit Graph

36808 Commits

Author SHA1 Message Date
Peter Barker
b1ae1591fb AP_TemperatureSensor: add AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED 2024-08-20 09:34:21 +10:00
Andrew Tridgell
faf769d8cd AP_Param: throw error if we lose parameters
if we can't save a parameter due to the queue size not being large
enough then there is a coding error, likely the code trying to save
large numbers of parameters while armed
2024-08-20 09:30:22 +10:00
Iampete1
d0d5dfddda AP_ESC_Telem: getters: check index is in range first 2024-08-20 09:14:11 +10:00
Iampete1
f9f8c2aa29 AP_ESC_Telem: add telemdata.valid method to simplify code 2024-08-20 09:14:11 +10:00
Iampete1
64c2a1070f AP_ESC_Telem: SITL: fill in extended status values 2024-08-20 09:14:11 +10:00
Iampete1
be80f83679 AP_ESC_Telem: add getters for extended status values 2024-08-20 09:14:11 +10:00
timtuxworth
c2a5554e9f AP_Vehicle: Bindings for crosstrack in Lua 2024-08-20 09:10:42 +10:00
timtuxworth
8a93c6a264 AP_Scripting: Bindings for crosstrack in Lua 2024-08-20 09:10:42 +10:00
Iampete1
b811791863 Filter: examples: TransferFunctionCheck: add support for varable DT low pass 2024-08-20 09:09:41 +10:00
Iampete1
e2ce21a237 Filter: LowPassFilter: split into two classes for constant and variable dt 2024-08-20 09:09:41 +10:00
Iampete1
7d7333a91f Filter: example: TransferFunctionCheck: override constant dt filter 2024-08-20 09:09:41 +10:00
Iampete1
ee8a8f0254 SITL: SIM_Battery: provde dt in voltage filter apply function 2024-08-20 09:09:41 +10:00
Iampete1
89297737ea AP_InertialSensor: move to new constant dt low pass filter class 2024-08-20 09:09:41 +10:00
Iampete1
44918b0e75 AP_ICEngine: move to new constant dt low pass filter class 2024-08-20 09:09:41 +10:00
Iampete1
1d589c5244 AP_GyroFFT: move to new constant dt low pass filter class 2024-08-20 09:09:41 +10:00
Iampete1
5cc63d7e6f APM_Control: move to new constant dt low pass filter class 2024-08-20 09:09:41 +10:00
Loki077
0c29d4280c AP_Scripting: AP_ESC_Telem method update
-Updated AP_ESC_Telem methods to use ESC_TELEM_MAX_ESCS instead of NUM_SERVO_CHANNELS.
- the place where the function returns bool adding skip check.
2024-08-19 21:16:41 +10:00
Loki077
46c98d6c95 AP_Scripting: added lua binding get_last_update for efi and esc 2024-08-19 21:16:41 +10:00
Loki077
94059ed7bc AP_ICEngine: Add Option to Control the direction of Cranking.
Added the 5th bit to the ICE_OPTION parameter to enable CRANK_DIR_REVERSE control, specifically for managing Hirth engine direction using AP_ICEngine_TCA9554.
2024-08-19 20:21:57 +10:00
Lokesh-Ramina
54ec26a80a AP_EFI: Adding EFIS log for Hirth
- Added EFIS log for Hirth engine
- Added ThM to help understand the engine logs better
- Updated the field names to keep the total length 64-characters long.
- Added Bitfield for the EFIS log to log all errors.
2024-08-19 07:11:50 +10:00
Andrew Tridgell
1fe21b6120 QURT: allow for external compasses
this allows for additional compasses on I2C
2024-08-17 13:20:00 +10:00
Pierre Kancir
f1dd2bb2e8 AP_HAL_Linux: SITL: add missing header for timeval struct on alpine linux 2024-08-15 22:33:42 +10:00
Pierre Kancir
3e4241ee7f AP_HAL: add missing header for timeval struct on alpine linux 2024-08-15 22:33:42 +10:00
Pierre Kancir
102547968f SITL: add missing header for timeval struct on alpine linux 2024-08-15 22:33:42 +10:00
Peter Barker
ca9a504c4f AP_Camera: move defintiion of HAL_RUNCAM_ENABLED into AP_Camera_config.h 2024-08-15 18:15:05 +10:00
Gone4Dirt
1de229debc AP_MotorsHeli_RSC: Make variables in constructor const 2024-08-14 23:39:01 -04:00
Gone4Dirt
7271a469fd AP_MotorsHeli: Move heli logging down to motors 2024-08-14 23:39:01 -04: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
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
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
f6da3ce764 AC_AutoTune: add support for testing tune via 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