i am conduct a simulation,my environment is below:
operation system:ubuntu 22.04
px4:1.14.0-rc1
and the version of gazebo and MicroXRCE is following the guide of installing,
then i want to change some default parameter in px4 by using the VEHICLE_CMD_DO_SET_PARAMETER in ros2,but when i invoked the code
Hi @qingchu123 , even though VehicleCommand::VEHICLE_CMD_DO_SET_PARAMETER exists, it is not truly implemented. If I remember correctly, parameter change can only be made using Mavlink message PARAM_SET
If by writing “using ROS2” you mean NOT mavros, than you can’t at the moment. If you are using mavros, then take a look at https://wiki.ros.org/mavros#mavparam
No, there’s no interface for that yet.
However, in general changing parameters from an offboard application isn’t the best solution, especially if you want to do it regularly.
Which parameter(s) do you want to change?