Open petertheprocess opened 4 years ago
Good point, can you please provide a github pull-request?
i don't think it is a good idea to revise the frame constants in 'PositionTarget.msg'. Because these frame constants are also used in some mavros plugin cpp files such as 'setpoint_raw.cpp', which means you should revise all the mavros plugins that involves the 'PositionTarget.msg' in the meantime. so it is not necessary. For beginners, this is confusing. However the README.md file in mavros has explained this very carefully.
I do not think that it's good change because it's copy of MAV_FRAME (old one...). And also mavros is beyond 1.0.0, so i would rather keep API stable. It's ok to add new items, add comments, that won't make it incompatible with existing user's code.
It took me some hours until I find this post and to see that the README explain that.
http://docs.ros.org/en/api/mavros_msgs/html/msg/PositionTarget.html https://github.com/mavlink/mavros/issues/1084#issuecomment-428177363 Just like the @FaboNo said
https://github.com/mavlink/mavros/blob/c9adcfbe5ae76b0f1f05c6745c038c1cd79afed9/mavros_msgs/msg/PositionTarget.msg#L8-L12