parameters: new parameter server backend

- parameter backend is now running in a wq and accessible over pub/sub
 - parameters library can call into backend directly (with locking), but operations will gradually start moving to pub/sub
 - majority of parameters migrated as is, only small changes to parameter autosave and parameter notification that are now performed from the WQ thread
This commit is contained in:
Daniel Agar
2022-12-20 09:51:48 -05:00
parent 278bce7446
commit 5247db7647
41 changed files with 2975 additions and 2431 deletions
@@ -118,7 +118,6 @@ public:
Param()
{
param_set_used(handle());
update();
}
@@ -164,7 +163,6 @@ public:
Param(float &external_val)
: _val(external_val)
{
param_set_used(handle());
update();
}
@@ -208,7 +206,6 @@ public:
Param()
{
param_set_used(handle());
update();
}
@@ -254,7 +251,6 @@ public:
Param(int32_t &external_val)
: _val(external_val)
{
param_set_used(handle());
update();
}
@@ -298,7 +294,6 @@ public:
Param()
{
param_set_used(handle());
update();
}
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2019-2021 PX4 Development Team. All rights reserved.
* Copyright (c) 2019-2022 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -76,6 +76,8 @@ static constexpr wq_config_t hp_default{"wq:hp_default", 1900, -18};
static constexpr wq_config_t uavcan{"wq:uavcan", 3624, -19};
static constexpr wq_config_t parameter_server{"wq:parameter_server", 4096, -20};
static constexpr wq_config_t ttyS0{"wq:ttyS0", 1632, -21};
static constexpr wq_config_t ttyS1{"wq:ttyS1", 1632, -22};
static constexpr wq_config_t ttyS2{"wq:ttyS2", 1632, -23};