diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-30 12:24:33 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-30 12:24:33 +0100 |
commit | 6a122ab643e8a541329803117fc481c04aed902b (patch) | |
tree | abf144da250ddd0389c0c031a0cf6bd68c69c2b3 /src/platforms/ros | |
parent | 76d2417cc53c493a90689582ebae9057a3987641 (diff) | |
download | px4-firmware-6a122ab643e8a541329803117fc481c04aed902b.tar.gz px4-firmware-6a122ab643e8a541329803117fc481c04aed902b.tar.bz2 px4-firmware-6a122ab643e8a541329803117fc481c04aed902b.zip |
ros att estimator dummy node: publish timestamp
Diffstat (limited to 'src/platforms/ros')
-rw-r--r-- | src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp b/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp index f744aa11c..1d36e3d99 100644 --- a/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp +++ b/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp @@ -136,6 +136,7 @@ void AttitudeEstimator::ImuCallback(const sensor_msgs::ImuConstPtr &msg) msg_v_att.pitchspeed = -(float)msg->angular_velocity.y; msg_v_att.yawspeed = -(float)msg->angular_velocity.z; + msg_v_att.timestamp = px4::get_time_micros(); _vehicle_attitude_pub.publish(msg_v_att); } |