Jacob Dahl
764e621b63
templates: fix ModuleBase template ( #26617 )
2026-03-02 13:21:23 -09:00
Jacob Dahl
ce3e62841f
module_base: remove CRTP template pattern to reduce flash bloat ( #26476 )
...
* module_base: claude rewrite to remove CRTP bloat
* module_base: apply to all drivers/modules
* format
* fix build errors
* fix missing syntax
* remove reference to module.h in files that need module_base.h
* remove old ModuleBase<T>
* add module_base.cpp to px4_protected_layers.cmake
* fix IridiumSBD can_stop()
* fix IridiumSBD.cpp
* clang-tidy: downcast static cast
* get_instance() template accessor, revert clang-tidy global
* rename module_base.h to module.h
* revert changes in zenoh/Kconfig.topics
2026-02-19 15:17:17 +13:00
Matthias Grob
f2bca92221
Fix duplicate newlines at the end of files
2024-07-19 14:33:36 +02:00
alessandro
bd17653383
Fix template_module header
...
- SubscriptionInterval.hpp includes Subscription.hpp, but not vice versa
- The time literal 1_s is defined in the namespace time_literals
2021-07-21 09:44:09 -04:00
Daniel Agar
ab0d0fd0be
uORB move to PX4 platform layer
2021-02-17 11:25:56 -05:00
Daniel Agar
967d35a6b6
rate limit most parameter_update subscriptions
...
- parameter updates can be quite expensive because they trigger nearly all modules to reload all of their parameters immediately
- limit modules from updating faster than once per second
2021-01-10 21:09:15 -05:00
CarlOlsson
2128679ab3
rename templates/module to templates/template_module
2020-09-11 09:21:33 +02:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
c8e59c4e39
parameter_update use uORB::Subscription consistently
2019-09-29 10:49:03 -04:00
Daniel Agar
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07:00
Daniel Agar
8a0beb83db
templates/module move print_usage() to bottom of file
2019-06-08 03:23:50 -07:00
bresch
2255ab21be
Parameter update - Rename variables in templates
...
using parameter_update.py script
2019-04-03 15:38:50 +02:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Beat Küng
e46e6f99f3
module template: move documentation to a new category 'template' ( #9324 )
2018-04-18 08:53:52 -04:00
Beat Küng
523bb11577
module template: update to use the new Param classes
2018-03-13 17:35:15 +01:00
Beat Küng
738f1ccdb6
module template: need to check if it's running for custom commands
2018-01-27 00:43:04 +01:00
Beat Küng
25483faf88
modules: add a new module that serves as template for background tasks
2018-01-27 00:43:04 +01:00