mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 00:51:35 +08:00
Fix gz airspeed sensor
This commit is contained in:
@@ -424,7 +424,7 @@ void GZBridge::barometerCallback(const gz::msgs::FluidPressure &air_pressure)
|
||||
pthread_mutex_unlock(&_node_mutex);
|
||||
}
|
||||
|
||||
void GZBridge::airspeedCallback(const gz::msgs::AirSpeed &air_speed)
|
||||
void GZBridge::airspeedCallback(const gz::msgs::AirSpeedSensor &air_speed)
|
||||
{
|
||||
if (hrt_absolute_time() == 0) {
|
||||
return;
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
#include <gz/msgs/model.pb.h>
|
||||
#include <gz/msgs/odometry_with_covariance.pb.h>
|
||||
#include <gz/msgs/laserscan.pb.h>
|
||||
#include <gz/msgs9/gz/msgs/air_speed_sensor.pb.h>
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
@@ -102,7 +103,7 @@ private:
|
||||
|
||||
void clockCallback(const gz::msgs::Clock &clock);
|
||||
|
||||
void airspeedCallback(const gz::msgs::AirSpeed &air_speed);
|
||||
void airspeedCallback(const gz::msgs::AirSpeedSensor &air_speed);
|
||||
void barometerCallback(const gz::msgs::FluidPressure &air_pressure);
|
||||
void imuCallback(const gz::msgs::IMU &imu);
|
||||
void poseInfoCallback(const gz::msgs::Pose_V &pose);
|
||||
|
||||
Reference in New Issue
Block a user