BazookaJoe1900
02e861b16e
enable silent compare of parameter ( #12850 )
...
Remove false errors after comparing parameters that doesn't exists.
as described in #12832
2019-10-07 09:50:11 +02:00
Daniel Agar
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07:00
Beat Küng
b71bae414b
param: fix potential nullptr dereferencing on param import
...
NuttX 7.28 seemed to handle this gracefully, but officially passing NULL
results in undefined behavior, and with 7.29 leads to a hardfault.
This happens on configs with flash-based params, on the first unsuccessful
import attempt.
2019-07-19 09:55:08 +02:00
Beat Küng
5c715978e8
param compare/greater: do not print 'parameter not found' message
...
Reduces clutter in the boot output (now that we have it in the log).
On omnibus for example we see:
ERROR [param] Parameter SENS_EN_BATT not found
ERROR [param] Parameter SENS_EN_LL40LS not found
ERROR [param] Parameter SENS_EN_LL40LS not found
ERROR [param] Parameter SENS_EN_MB12XX not found
ERROR [param] Parameter SENS_EN_PGA460 not found
ERROR [param] Parameter SENS_EN_SF1XX not found
ERROR [param] Parameter SENS_EN_TRANGER not found
2019-06-06 09:16:49 -04:00
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