Commit Graph

65546 Commits

Author SHA1 Message Date
Thomas Watson 4ffffa7af7 AP_TemperatureSensor: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson fbeab64be2 AP_RangeFinder: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson e82e6629d2 AP_RPM: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 2f1a8d1ef4 AP_RCProtocol: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 453b83c159 AP_Proximity: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 1c08119dd9 AP_OpticalFlow: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 01c6765b6f AP_Mount: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 360e54f871 AP_GPS: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 8328368164 AP_EFI: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson d86bab9c58 AP_Compass: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 9f7ed65bc0 AP_BattMonitor: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson def199e61f AP_Baro: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson cd1118acb4 AP_Airspeed: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 5874337df7 AP_DroneCAN: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 2dd98e60ea AP_Mount: Xacti: drop unused subscription status variable 2024-11-18 10:30:29 +11:00
Thomas Watson 378fc63d75 AP_DroneCAN: DNAServer: drop declaration of nonexistent func definition 2024-11-18 10:30:29 +11:00
Iampete1 e0a8b64e08 Plane: tailsitter: tidy tilt left and right handling 2024-11-18 09:09:55 +11:00
Eric Katzfey d126c11329 AP_HAL_QURT: Move DSP to Apps Proc link message sequence checking into UART driver so it can be per link. 2024-11-18 09:06:15 +11:00
Peter Barker ee09497b64 AP_HAL_ChibiOS: correct logging of MAV_POWER_STATUS_CHANGED
need to exclude the changed flag from the comparison!
2024-11-18 08:34:37 +11:00
Peter Barker 7ee9a337e1 Tools: waf: build rally and fencepoint protocols in on SITL
so we continue to autotest them
2024-11-18 08:34:08 +11:00
Peter Barker 355c499a24 GCS_MAVLink: stop compiling old rallypoint protocol in by default
We're gradually removing support for this protocol.

Still available on the custom build server
2024-11-18 08:34:08 +11:00
Peter Barker a65b9ad831 AC_Fence: stop compiling old fencepoint protocol in by default
We're gradually removing support for this protocol.

Still available on the custom build server
2024-11-18 08:34:08 +11:00
Ryan Friedman 98f3f59fb6 AP_ExternalControl: arm through external control
* Prepare for external control enabled flag gating ability to arm in DDS

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-17 21:05:59 +11:00
Ryan Friedman 489e8473a2 AP_DDS: arm through external control
* Prepare for external control enabled flag gating ability to arm in DDS

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-17 21:05:59 +11:00
bugobliterator 0953c9dda3 AP_HAL_ChibiOS: CubeRedPrimary: update config for icm45686 2024-11-17 20:39:34 +11:00
Eric Katzfey 7f4a20981a AP_Filesystem: Added conditional compiling to errno declarations. QURT HAL already has this in errno.h. 2024-11-17 20:38:25 +11:00
Prashant 62565e6034 Tools: added name to GIT_Success.txt 2024-11-17 17:15:15 +11:00
Thomas Watson 7ca558f625 AP_DroneCAN: use 32 bit timeout for write_aux_frame
Saves a handful of bytes. 71 minutes ought to be enough for anybody!
2024-11-17 10:38:12 +11:00
Thomas Watson 3dd8aa5304 AP_CANManager: use 32 bit timeout for write_aux_frame
Saves a handful of bytes. 71 minutes ought to be enough for anybody!
2024-11-17 10:38:12 +11:00
Thomas Watson a4f6853a7b AP_CANManager: use 32 bit timeout for write_frame
Saves a few bytes. 71 minutes ought to be enough for anybody!
2024-11-17 10:38:12 +11:00
Eric Katzfey 4d75b44775 AP_GPS: Remove unused private member to get rid of compiler warning in Qurt build 2024-11-16 19:20:11 +11:00
Peter Barker 4c72ca6ddc AP_TECS: make _EAS a local variable
not used outside this one function

Co-authored-by: Michelle Rossouw <michelleros128@gmail.com>
2024-11-16 08:50:56 +11:00
Tom Pittenger 2115ad9c97 AP_Rely: allow RELAYn_DEFAULT values for DroneCAN Periphs 2024-11-15 10:57:31 -08:00
Bob Long a69b777d17 Plane: add missing AccZ bit from GCS_PID_MASK doc 2024-11-15 11:40:07 +11:00
bugobliterator 44ef597647 .github: add CubeNode-ETH build to CI 2024-11-15 11:25:19 +11:00
bugobliterator 37cfe71257 AP_Periph: add missing mandatory virtual method define for GCS_MAVLink 2024-11-15 11:25:19 +11:00
Eric Katzfey 1e99226fd9 AP_HAL_QURT: Fix the SPI transfer special case where a send buffer is passed in even though it is a read transaction. 2024-11-15 10:34:48 +11:00
Andy Piper f07df393be AP_HAL_ChibiOS: support BMP280 on FoxeerF405v2 2024-11-14 20:10:22 +11:00
Peter Barker 3674eb0c49 autotest: tidy GpsForYaw using new infrastructure 2024-11-14 20:08:30 +11:00
Tiziano Fiorenzani 86f216703d AP_DDS: status topic to report RC failsafe with callback function 2024-11-14 16:47:41 +11:00
Randy Mackay c03960cba4 Copter: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 11:44:41 +09:00
Randy Mackay 1e26113610 Rover: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 11:44:38 +09:00
Randy Mackay 1fe0273adf Tracker: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 11:44:35 +09:00
Randy Mackay 4f406f31f2 Plane: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 10:40:56 +11:00
Ryan Friedman 81d1945347 AP_DDS: Recommend run_astyle.py
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-14 09:02:21 +11:00
Ryan Friedman 8354bedd51 Tools: Recommend what to do when astyle fails
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-14 09:02:21 +11:00
Andrew Tridgell b1acd6295b HAL_ChibiOS: cleanup cube IMUs and compasses
don't probe for old sensor set
2024-11-14 09:01:41 +11:00
Iampete1 f08a2120a8 MAVLink: add required messages to support addition of modes at runtime 2024-11-13 20:11:50 +11:00
Iampete1 b0f821a96f Sub: add support for `AVAILABLE_MODES` msg 2024-11-13 20:11:50 +11:00
Iampete1 deca687d30 Blimp: add support for `AVAILABLE_MODES` msg 2024-11-13 20:11:50 +11:00