Commit Graph

40 Commits

Author SHA1 Message Date
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 79d4c09d59 uORB::Publication simplify and cleanup
- base class is now template
 - drop linked list
 - virtualization no longer required
2019-06-12 08:48:19 -04:00
Beat Küng 08b8ee4831 replace fprintf(stderr with PX4_{INFO/WARN} 2019-06-04 11:57:54 +02:00
Daniel Agar 2c63e335e9 uORB::Subscription subscribe directly to uORB device node object 2019-06-03 17:06:21 -04:00
Daniel Agar 02d4405a62 c++11 default destructors 2018-06-30 19:55:08 -04:00
Daniel Agar d73d20bcce systemlib delete unused systemlib.h 2018-06-12 09:06:30 +02: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 e3d653d9a7 md25: remove used source files BlockSysIdent.{cpp,hpp} 2018-03-22 08:19:08 +01:00
Daniel Agar 53595bac0e board support add px4_i2c_bus_external/px4_spi_bus_external 2017-11-20 23:44:31 +01:00
Daniel Agar 846435cd97 BlockParam<int> -> BlockParam<int32_t> for qurt 2017-06-12 12:18:53 -04:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Julian Oes bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier 3ded4efb5a MD25: Fix code style 2015-09-05 22:07:15 +02:00
Mark Charlebois c5237f7f6f Removed extra abstracton layer in systemlib
The calls to task_spawn_cmd, kill_all, and systemreset  were wrappers
around the px4_{task_spawn_cmd|kill_all|systemreset} implementations.

Removed the wrappers and changed all calls to the px4_ equivalents.

NuttX specific code was moved into px4_tasks.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:43:11 -07:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Daniel Agar 2e824bbeea fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
2015-04-18 12:02:58 +02:00
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00
Lorenz Meier 7f0e675228 Pass over drivers to reduce build size 2014-07-23 08:24:56 +02:00
James Goppert 1b7472ef4c Fix for md25 and uORB update. 2014-03-20 12:12:42 -04:00
James Goppert fd6590cfa7 Moved UOrbPubliction/Subscription to uORB::Publication/Subscription 2014-03-20 12:12:42 -04:00
James Goppert dc542b2a48 Segway stabilized. 2013-07-28 22:27:05 -04:00
James Goppert 1980d9dd63 Working on segway controller, restructure of fixedwing. 2013-07-28 01:35:43 -04:00
James Goppert 95aa82f586 Fixed arg number. 2013-07-28 00:05:56 -04:00
James Goppert 308f1dbfa4 Added amplitude frequency to md25sine command. 2013-07-28 00:05:56 -04:00
James Goppert 4cfcea1767 Working on debug output. 2013-07-28 00:05:56 -04:00
James Goppert 77c084a4cf Fixed typo with strncpy. 2013-07-28 00:05:56 -04:00
James Goppert 76d086e077 Working with debug messages. 2013-07-28 00:05:56 -04:00
James Goppert 78ef6f5265 Changed final time. 2013-07-28 00:05:56 -04:00
James Goppert f2a0cce958 Fixed timing issues. 2013-07-28 00:05:56 -04:00
James Goppert e7cc6e71ad Added pub update. 2013-07-28 00:05:56 -04:00
James Goppert 42f09c4b54 Working on sysid. Added debug values. 2013-07-28 00:05:56 -04:00
James Goppert 7643106208 Added log print ability to md25 driver. 2013-07-28 00:05:56 -04:00
James Goppert f3bfbd87b1 Added sine test. 2013-07-28 00:05:56 -04:00
px4dev 23a6234235 Rename our 'task_spawn' to 'task_spawn_cmd' since NuttX now has its own version of task_spawn that's different. 2013-06-01 23:31:53 +02:00
Lorenz Meier 304ce63f00 Hotfix: Wrong capitalization on header file name 2013-05-09 19:03:40 +02:00
Lorenz Meier 3152dae3dc Merged with master 2013-05-09 15:52:36 +02:00