Skip to content

Commit efb1866

Browse files
committed
add patch
Signed-off-by: wep21 <[email protected]>
1 parent 4fba291 commit efb1866

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

patch/ros-jazzy-sbg-driver.patch

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
diff --git a/include/sbg_driver/sbg_vector3.h b/include/sbg_driver/sbg_vector3.h
2+
index 0bc5b80..0b1b02c 100644
3+
--- a/include/sbg_driver/sbg_vector3.h
4+
+++ b/include/sbg_driver/sbg_vector3.h
5+
@@ -115,7 +115,7 @@ public:
6+
* \param[in] p_raw_data Pointer to data array.
7+
* \param[in] array_size Array size (Should be defined as 3).
8+
*/
9+
- SbgVector3(const T* p_raw_data, size_t array_size)
10+
+ SbgVector3(const T* p_raw_data, [[maybe_unused]] size_t array_size)
11+
{
12+
assert(array_size == 3);
13+
14+
diff --git a/src/sbg_device.cpp b/src/sbg_device.cpp
15+
index 820322e..b802365 100644
16+
--- a/src/sbg_device.cpp
17+
+++ b/src/sbg_device.cpp
18+
@@ -5,6 +5,8 @@
19+
#include <iomanip>
20+
#include <fstream>
21+
#include <ctime>
22+
+#include <chrono>
23+
+#include <thread>
24+
25+
// SbgECom headers
26+
#include <version/sbgVersion.h>
27+
@@ -118,7 +120,7 @@ void SbgDevice::onLogReceived(SbgEComClass msg_class, SbgEComMsgId msg, const Sb
28+
log_replay_last_timestamp_ = timestamp;
29+
}
30+
31+
- usleep(time_to_sleep);
32+
+ std::this_thread::sleep_for(std::chrono::microseconds(time_to_sleep));
33+
}
34+
35+
//

0 commit comments

Comments
 (0)