David Sidrane
f50b238c78
lib/parameters:Use inttypes
2021-06-16 17:07:47 +02:00
Hamish Willee
665d2ea74e
markdownout for parameters - makes link internal
2021-06-09 11:09:48 +02:00
Silvan Fuhrer
2f73115b54
translate ASPD_STALL to FW_AIRSPD_STALL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Daniel Agar
e78a4287f9
parameters: attempt import multiple times
2021-05-02 13:48:16 -04:00
Daniel Agar
c266c3e43a
parameters: remove unnecessary param_get_system_default_value() locking
2021-04-26 09:49:15 +02:00
Beat Küng
1730cd1971
param: avoid warning for 'param show -c' or 'param show -a'
2021-04-23 16:44:55 -04:00
Jukka Laitinen
b99e597a73
flashparams: Fix a null-pointer dereference crash
...
Fix a potential crash caused by calling erase_sector with a null
sector_descriptor (current_sector == 0).
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-04-14 07:55:33 -07:00
Daniel Agar
f44f497e3f
parameters: better handle export failures and retry
2021-04-12 21:26:50 -04:00
Daniel Agar
edc445a1b2
parameters: tinybson fill total document length for bson compatibility
2021-04-12 21:26:50 -04:00
Hamish Willee
6fbb409e43
Param markdown - fix sensor param table
2021-04-07 08:46:11 +02:00
Beat Küng
416a663d11
params: add build dependency for *parameters.c
...
Makes sure changes to these files trigger metadata rebuild
2021-03-30 08:18:49 +02:00
Beat Küng
42a865f349
param json: ensure category is set to Standard if not set
...
For xml this was previously done on the QGC side.
2021-03-30 08:18:49 +02:00
Beat Küng
6a7688cbca
component_information: rework to reflect mavlink message changes
2021-03-30 08:18:49 +02:00
Beat Küng
2dace0c9ea
param: limit short description lenght to 150 for existing, 70 for yaml
2021-03-23 12:55:11 -04:00
Beat Küng
629f7ba15b
params: ensure short description is only a single line
...
So a UI can display it properly
2021-03-23 12:55:11 -04:00
Beat Küng
b512a3d8f7
param: add param_get_system_default_value
2021-03-12 13:44:10 +01:00
Daniel Agar
7d78cf8505
parameters: param_value_is_default() add note about params_changed bitset usage
2021-03-11 11:30:43 -05:00
Daniel Agar
a991e78e18
parameters: fix runtime default edge case
2021-03-11 11:30:43 -05:00
Daniel Agar
684424bf73
parameters: delete unused BSON_BINDATA handling
2021-03-09 19:29:42 -05:00
garfieldG
3cd9b3c2cf
Added support in Mavlink Ethernet channel parameters
...
Mavlink Ethernet channel settings such as udp port, remote port and broadcast mode now can be changed dynamically via parameters.
2021-02-25 08:52:38 -08:00
Daniel Agar
711a69854b
uthash: move remaining utarray usage to parameters and delete unused
...
- this is to discourage further use until utarray can be dropped entirely
2021-02-20 11:28:22 +01:00
Daniel Agar
ab0d0fd0be
uORB move to PX4 platform layer
2021-02-17 11:25:56 -05:00
Daniel Agar
ce64951578
parameter_update.msg: add basic status info
2021-02-12 08:27:47 -05:00
Daniel Agar
b8b13bb882
parameters runtime defaults
2021-02-12 08:27:47 -05:00
Daniel Agar
da1a38b44e
parameters: merge generated files ito single static constexpr header
...
- store parameter type and if volatile separately (saves kilobytes of flash)
- use Bitset for tracking active and changed parameters
- use atomic for autosave_enabled flag
- compile at ${MAX_CUSTOM_OPT_LEVEL} (-O2 on non flash constrained boards)
2021-02-12 08:27:47 -05:00
Beat Küng
5a1c60b5a1
component_information: switch from gzip to xz
...
Improves compression, e.g. current params file: 62KB to 51KB
There's also a PRESET_EXTREME option, which reduces by another 2KB.
We can revisit that once needed, as it increases mem usage as well.
2021-02-09 09:44:50 +01:00
Beat Küng
d0e35efe3a
parameters: remove uid from json output
...
Got removed from the spec
2021-02-09 09:44:50 +01:00
Beat Küng
4ca883f843
parameters: fix JSON output types
...
All types were previously output as strings
2021-02-09 09:44:50 +01:00
Beat Küng
1f8e7de824
mavlink: implement COMPONENT_INFORMATION
...
- implement COMP_METADATA_TYPE_VERSION & add component_version.json.gz to
ROMFS for all targets.
- implement COMP_METADATA_TYPE_PARAMETER (only enabled for SITL currently)
2021-02-09 09:44:50 +01:00
Daniel Agar
8f0918a16b
boards: remove unused linker __param section
2021-02-08 23:22:48 -05:00
Daniel Agar
d1a3590aac
PWM: transition PWM_{MIN,MAX,DISARMED,RATE} -> PWM_MAIN
2021-02-01 08:53:33 +01:00
Daniel Agar
1b9d68abd5
parameters: add new param_get_default_value()
2021-01-27 13:11:41 -05:00
bazooka joe
f45b67af59
re-add boolean attribute to the parameters xml
...
and small cleanup, make Volatile as bool in the internal variable
2021-01-26 08:24:59 +01:00
Hamish Willee
bd00aec936
Parameter markdown use page css for layout
2021-01-21 09:08:26 +01:00
Julien Lecoeur
343cf5603e
initial control allocation support
...
- control allocation module with multirotor, VTOL standard, and tiltrotor support
- angular_velocity_controller
- See https://github.com/PX4/PX4-Autopilot/pull/13351 for details
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Roman Bapst <bapstroman@gmail.com >
2021-01-18 11:25:37 -05:00
Matthias Grob
02c0f08060
flashfs: fix alignment ambiguity
...
Instead of ignoring the warnings.
Thanks to @Ole2mail and @yuhaim for the suggestions.
2021-01-18 14:19:29 +01:00
Daniel Agar
a152fb65cb
parameters: remove unnecessary duplicated shutdown lock in param_save_default()
...
- param_export already takes the shutdown lock
2020-12-16 10:50:05 -05:00
Daniel Agar
378c0b5093
parameters: find and get perf counters aren't threadsafe
2020-12-02 10:11:42 -05:00
Daniel Agar
e69aea0a9b
parameters: don't keep in memory if set to default
2020-12-02 10:11:42 -05:00
Nicolas Martin
1965cd38ba
arm auth: add parameters migration
...
should be reverted in v1.13
2020-11-10 09:03:59 +01:00
Nicolas Martin
948bed6b5c
fix ekf2 saved mag bias comments (mGauss -> Gauss)
2020-10-26 00:43:20 -04:00
Hamish Willee
d91d7e3282
parameter markdown table - remove styling
2020-10-22 08:05:41 +02:00
Daniel Agar
7255f5feac
parameters: add param_reset_no_notification()
...
- add reset() to Param<>
2020-10-15 08:32:05 +02:00
Beat Küng
3e9692c5bd
param_import: add mark_saved argument
...
Behavior of the 'param import' command:
- if no file provided, parameters are marked as saved (differs from before)
- if a file is provided: parameters are not marked as saved
2020-10-12 15:22:26 +02:00
Beat Küng
f6e8ddfaa0
param_export: add optional filter method
2020-10-12 15:22:26 +02:00
Jacob Dahl
a24488328f
Move GPS blending from ekf2 to sensors module
...
- new sensors work item that subscribes to N x sensor_gps and publishes vehicle_gps_position
- blending is now configurable with SENS_GPS_MASK and SENS_GPS_TAU
Co-authored-by: Jacob Crabill <jacob@volans-i.com >
Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com >
2020-09-25 23:28:31 -04:00
Beat Küng
d3362f38d1
parameters: add parameters.json.gz as output
2020-09-15 09:30:16 +02:00
Matthias Grob
ce9954a919
param: enable reseting specific parameters from shell
...
Renaming previous "param reset" to "param reset_all".
2020-09-08 12:03:41 +02:00
Daniel Agar
0e64baa93b
parameters: delete unused PARAM_TYPE_STRUCT
2020-08-25 09:59:29 -04:00
Hamish Willee
979243f38f
params: make parameter units more consistent ( #15502 )
2020-08-24 11:33:08 +02:00