Ardupilot2/libraries/AP_OpticalFlow
Lucas De Marchi 41ddb67712 AP_OpticalFlow: pack struct passed to I2C layer
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.
2015-11-05 16:11:56 +09:00
..
examples/AP_OpticalFlow_test AP_OpticalFlow: fix build of example for PX4 2015-10-21 09:16:12 +11:00
AP_OpticalFlow_HIL.cpp AP_OpticalFlow: standardize inclusion of libaries headers 2015-08-11 16:38:21 +10:00
AP_OpticalFlow_HIL.h AP_OpticalFlow: split library into frontend/backend 2015-01-03 14:16:33 +11:00
AP_OpticalFlow_Linux.cpp Replace use of UARTDriver::printf_P() with UARTDriver::printf() 2015-10-30 14:35:25 +09:00
AP_OpticalFlow_Linux.h AP_OpticalFlow: pack struct passed to I2C layer 2015-11-05 16:11:56 +09:00
AP_OpticalFlow_PX4.cpp AP_OpticalFlow: standardize inclusion of libaries headers 2015-08-11 16:38:21 +10:00
AP_OpticalFlow_PX4.h AP_OpticalFlow: split library into frontend/backend 2015-01-03 14:16:33 +11:00
AP_OpticalFlow.h AP_OpticalFlow: split library into frontend/backend 2015-01-03 14:16:33 +11:00
keywords.txt OptFlow: fixup line endings 2014-04-15 15:57:33 +09:00
OpticalFlow_backend.cpp AP_OpticalFlow: split library into frontend/backend 2015-01-03 14:16:33 +11:00
OpticalFlow_backend.h AP_OpticalFlow: Add parameter to compensate for flow sensor yaw angle 2015-04-10 11:07:31 +09:00
OpticalFlow.cpp Minimize AP_Progmem.h includes 2015-10-30 14:35:32 +09:00
OpticalFlow.h AP_OpticalFlow: standardize inclusion of libaries headers 2015-08-11 16:38:21 +10:00