Skip to content

Commit e067253

Browse files
author
henrykotze
committed
Formatting updates
Signed-off-by: henrykotze <[email protected]>
1 parent a4c1a64 commit e067253

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

include/gz/sensors/AirFlowSensor.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ namespace gz
6969
public: gz::math::Vector3d Velocity() const;
7070

7171
/// \brief Update the velocity of the sensor
72+
/// \param[in] _vel The velocity of the sensor [m/s]
7273
public: void SetVelocity(const gz::math::Vector3d &_vel);
7374

74-
/// \brief Update the wind velocity in which the sensor is
75+
/// \brief Update the wind velocity
76+
/// \param[in] _vel The wind velocity [m/s]
7577
public: void SetWindVelocity(const gz::math::Vector3d &_vel);
7678

7779
using Sensor::Update;

src/AirFlowSensor.cc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,15 @@ class gz::sensors::AirFlowSensorPrivate
5050
/// \brief true if Load() has been called and was successful
5151
public: bool initialized = false;
5252

53-
/// \brief Pressure in pascals.
54-
public: double pressure = 0.0;
55-
56-
/// \brief Resolution of: [deg]
57-
public: double direction_resolution = 0.0;
58-
59-
/// \brief Pressure in pascals.
60-
public: double speed_resolution = 0.0;
61-
62-
/// \brief Velocity of the air coming from the sensor
53+
/// \brief Velocity of the sensor
6354
public: gz::math::Vector3d vel;
6455

6556
/// \brief Velocity of the wind
6657
public: gz::math::Vector3d wind_vel;
6758

6859
/// \brief Noise added to speed measurement
6960
public: std::map<SensorNoiseType, NoisePtr> speed_noises;
70-
61+
7162
/// \brief Noise added to directional measurement
7263
public: std::map<SensorNoiseType, NoisePtr> dir_noises;
7364
};

test/integration/air_flow.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sdf::ElementPtr AirFlowToSdf(const std::string &_name,
3535
std::ostringstream stream;
3636
stream
3737
<< "<?xml version='1.0'?>"
38-
<< "<sdf version='1.6'>"
38+
<< "<sdf version='1.10'>"
3939
<< " <model name='m1'>"
4040
<< " <link name='link1'>"
4141
<< " <sensor name='" << _name << "' type='air_flow'>"
@@ -67,7 +67,7 @@ sdf::ElementPtr AirFlowToSdfWithNoise(const std::string &_name,
6767
std::ostringstream stream;
6868
stream
6969
<< "<?xml version='1.0'?>"
70-
<< "<sdf version='1.6'>"
70+
<< "<sdf version='1.10'>"
7171
<< " <model name='m1'>"
7272
<< " <link name='link1'>"
7373
<< " <sensor name='" << _name << "' type='air_flow'>"

0 commit comments

Comments
 (0)