mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:47:35 +08:00
remove extraneous newlines
Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
This commit is contained in:
committed by
Matthias Grob
parent
3e290695ef
commit
38f89a8b69
@@ -68,7 +68,6 @@ void PX4Rangefinder::set_orientation(const uint8_t device_orientation)
|
||||
_distance_sensor_pub.get().orientation = device_orientation;
|
||||
}
|
||||
|
||||
|
||||
void PX4Rangefinder::update(const hrt_abstime ×tamp_sample, const float distance, const int8_t quality, const float *q, uint8_t q_len)
|
||||
{
|
||||
distance_sensor_s &report = _distance_sensor_pub.get();
|
||||
@@ -86,9 +85,7 @@ void PX4Rangefinder::update(const hrt_abstime ×tamp_sample, const float dis
|
||||
// Update the quaternion in the sample update
|
||||
if (q != nullptr) {
|
||||
memcpy(report.q, q, sizeof(float) * q_len);
|
||||
|
||||
}
|
||||
|
||||
|
||||
_distance_sensor_pub.update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user