Camera.getSensorsData
returns invalid data in SensorsData
#634
Labels
Camera.getSensorsData
returns invalid data in SensorsData
#634
Preliminary Checks
Description
I tested SDK tutorial 7, and I get invalid data from the sensors.
On this line:
zed-sdk/tutorials/tutorial 7 - sensor data/cpp/main.cpp
Line 123 in b30caa9
sensors_data
looks like this:Barometer timestamp looks OK (current timestamp starts with
0x17D46
), other timestamps and numbers looks invalid. Booleans are also incorrect (> 1).Sensors are working OK in ZED Sensor Viewer.
Steps to Reproduce
Expected Result
Correct data and timestamps returned by
getSensorsData
Actual Result
Incorrect data and timestamps returned by
getSensorsData
ZED Camera model
ZED2i
Environment
Anything else?
Might be related to #567
I suspect offsets or struct padding inside SensorsData in Camera.hpp are incorrect or
getSensorsData
writes to invalid offsets. If whole struct is dumped, I can see 3 valid timestamps inside:The text was updated successfully, but these errors were encountered: