mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
ros: update local_position publication
Ensure all data is set.
This commit is contained in:
committed by
ChristophTobler
parent
64551607bc
commit
388eb6ee4c
@@ -94,6 +94,8 @@ void PositionEstimator::ModelStatesCallback(const gazebo_msgs::ModelStatesConstP
|
||||
msg_v_l_pos.ref_lon = 8.538777;
|
||||
msg_v_l_pos.ref_alt = 1200.0f;
|
||||
|
||||
msg_v_l_pos.vxy_max = 0.0f;
|
||||
msg_v_l_pos.limit_hagl = false;
|
||||
|
||||
msg_v_l_pos.timestamp = px4::get_time_micros();
|
||||
_vehicle_position_pub.publish(msg_v_l_pos);
|
||||
|
||||
Reference in New Issue
Block a user