Commit Graph

82 Commits

Author SHA1 Message Date
Daniel Agar 658d734068 param add status 2019-01-18 11:50:37 -05:00
Daniel Agar 84724d5e1d param show default only active parameters
- add -a option to display all possible system parameters
2019-01-18 11:50:37 -05:00
Beat Küng 5b4a77a67b params: add possibility to access files if flash-based params are enabled
- the flash-backend is selected by specifying nullptr as file or -1 as fd
- the default file is nullptr, and thus the FLASH
- 'param select' has no effect, FLASH is always the default

Thus there should be no functional change to existing setups.
2018-12-23 15:49:37 -05:00
Beat Küng 15044909a4 param: add 'param touch <param_name>' command
so that params can be marked as used from scripts.
2018-09-25 07:53:29 +02:00
Beat Küng 9a259cd139 param: use PX4_INFO_RAW and add 'param show -q <param_name' command 2018-08-13 21:50:14 -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 37ff267b68 param.cpp: fix issues by clang tidy (nullptr & void) 2017-07-14 11:57:11 +02:00
Beat Küng d309617998 param.c: rename to cpp and add module documentation
use c++ so that raw string literals can be used
2017-07-14 11:57:11 +02:00
Beat Küng 7b7836de05 param command: update usage 2017-07-14 11:57:11 +02:00
Daniel Agar 94f5df8611 param and pwm ignore -Warray-bounds for clang 2017-06-02 19:35:18 -04:00
Beat Küng f256d03364 param command: remove param_save_default() calls
Not needed anymore due to autosave
2017-04-06 11:49:03 +02:00
Beat Küng a5cdff06d5 param: implement rate-limited autosave
- add a saving delay of 300ms
- save at most once every 2 seconds
2017-04-06 11:49:03 +02:00
Beat Küng b4290b6b52 params: make param_t uint16_t on NuttX
param_t is only used as an offset and we have <1000 params, so an uint16_t
is enough.
This saves roughly 1KB of RAM. We only do that on NuttX because normal
integers have better performance in general.
Previously on amd64, this was even 64bits because it was an uintptr_t.
2017-03-14 21:30:53 +01:00
Beat Küng 3cc1c9d0a9 param command: warnx -> PX4_{WARN,ERR} 2017-02-25 11:02:15 +01:00
Beat Küng a0f00f84f3 param show command: add -c to show only changed, do case insensitive comparison 2017-02-17 11:27:08 +01:00
Beat Küng 42967df63f param command: use param_* calls even if flash-based params are enabled
This will ensure proper locking.
2017-02-17 11:27:08 +01:00
Lorenz Meier cf5f5bfad9 Fix code style for param 2017-01-12 10:57:11 -08:00
Mark Charlebois b14959e165 Fixed param output for QuRT
QuRT doesn't support printf, so the messages don't appeat in mini-dm.

This problem is also present in many other parts of the PX4 code.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-01-12 10:57:11 -08:00
Stephan Brown 5a6084de07 param: Add a missing include. 2017-01-06 09:58:58 +01:00
Stephan Brown e57f6221b2 Rearrange parameter unit tests so they are in alphabetical order. 2017-01-06 09:58:58 +01:00
Stephan Brown 67a484ac34 Make parameter generation also depend on the scripts that run. Address some review comments. 2017-01-06 09:58:58 +01:00
Stephan Brown 92b2395ff6 param: Fix another off by 1 error and a formatting issue. 2017-01-06 09:58:58 +01:00
Stephan Brown bf57e86dc2 param: Fix an off by 1 issue and some style fixes. 2017-01-06 09:58:58 +01:00
Stephan Brown fe8deeeed9 param: Add a system command for finding parameters by name. 2017-01-06 09:58:58 +01: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
David Sidrane 5e8d6375c9 Back Port nuttx_v3 FLASH based parameter hooks 2016-07-13 20:42:05 +02:00
Julian Oes f24ca14122 param: whitespace 2016-06-07 22:10:56 +02:00
Julian Oes 0acf0b3c69 param: be less verbose on startup 2016-06-07 22:10:56 +02:00
Kabir Mohammed 69976caca9 param : fix shell handler instructions (#4716) 2016-06-02 06:37:19 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
jwilson 75fad09263 Fixed problem causing a failure to obtain the shared memory lock on the AppsProc. 2016-02-19 16:59:49 +01:00
jwilson 4adfea7fa9 Resolved shared memory parameter problems and removed additional debug code. 2016-02-19 16:59:49 +01:00
Julian Oes 3cda3610d0 param: workaround for QURT
There is no such thing as set_param_no_autosave on QURT, therefore just
save it anyway. On the Snapdragon the overhead should not be a problem.
2016-02-19 16:59:48 +01:00
Mark Charlebois a1a615b907 Added param shared memory support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Lorenz Meier 08ef2e8a1c Param command: Increase stack as needed 2016-01-22 11:58:18 +01:00
Lorenz Meier 15b72045ce Param command: Auto-save after set 2016-01-22 11:36:14 +01:00
Daniel Agar 2529f07d44 restore format check 2015-10-06 18:28:30 -04:00
Lorenz Meier 74a9850439 Param: Be less verbose 2015-09-20 16:40:33 +02:00
Lorenz Meier 7c3725772a Param: Be less verbose when nothing changes 2015-09-20 15:22:15 +02:00
Lorenz Meier 4fb6e135d6 param: report open failure 2015-09-12 16:57:50 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Daniel Agar 11027836c6 format src/systemcmds/param 2015-09-05 12:21:11 -04:00
Lorenz Meier 8dc3c0025a param command: Support greater comparison 2015-08-08 14:13:45 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier 475c28803e param command: Fix error handling if param is not found 2015-06-25 09:28:22 +02:00
Lorenz Meier 4c975a11e5 param command: Complete help text 2015-06-23 09:33:07 +02:00
Mark Charlebois 872a26e6da Fixed passed ot open() for O_CREAT
In nuttx the mode parameter to open is not required but in Linux,
and per the POSIX spec, mode is required if the O_CREAT flag is
passed.

The mode flags are different for NuttX and Linux so a new set of
PX4 defines was added:

PX4_O_MODE_777 - read, write, execute for user, group and other
PX4_O_MODE_666 - read, and write for user, group and other
PX4_O_MODE_600 - read, and write for user

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-14 11:26:40 +02:00
Mark Charlebois cb231e89f6 QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid().
The DSPAL layer provides access to usleep so an implementation is
no longer needed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
tumbili f4a25097c1 use open/close instead of px4_open/px4_close for parameter file 2015-06-01 23:01:48 +02:00