mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 01:00:35 +08:00
param api: load param value correctly
This commit is contained in:
@@ -91,6 +91,8 @@ public:
|
||||
if (!ros::param::has(name)) {
|
||||
ros::param::set(name, value);
|
||||
}
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
~Parameter() {};
|
||||
@@ -123,6 +125,7 @@ public:
|
||||
ParameterBase<T>(name, value),
|
||||
_handle(param_find(name))
|
||||
{
|
||||
update();
|
||||
}
|
||||
|
||||
~Parameter() {};
|
||||
|
||||
Reference in New Issue
Block a user