41ddb67712
We pass "sizeof(i2c_integral_frame)" to hal.i2c->readRegisters(). Since we have a padding in i2c_integral_frame we actually read 3 bytes more than we should. Add PACKED to the struct so this is fixed. i2c_frame doesn't have a padding (or hole) so there isn't this problem, but since it's also used to calculate the frame size, use PACKED there too. |
||
---|---|---|
.. | ||
examples/AP_OpticalFlow_test | ||
AP_OpticalFlow_HIL.cpp | ||
AP_OpticalFlow_HIL.h | ||
AP_OpticalFlow_Linux.cpp | ||
AP_OpticalFlow_Linux.h | ||
AP_OpticalFlow_PX4.cpp | ||
AP_OpticalFlow_PX4.h | ||
AP_OpticalFlow.h | ||
keywords.txt | ||
OpticalFlow_backend.cpp | ||
OpticalFlow_backend.h | ||
OpticalFlow.cpp | ||
OpticalFlow.h |