@ -17,7 +17,7 @@ uint8_t AP_OpticalFlow::_num_calls; // number of times we have been called by 1k
@@ -17,7 +17,7 @@ uint8_t AP_OpticalFlow::_num_calls; // number of times we have been called by 1k
// init - initCommAPI parameter controls whether I2C/SPI interface is initialised (set to false if other devices are on the I2C/SPI bus and have already initialised the interface)
virtualboolinit(boolinitCommAPI,AP_PeriodicProcess*scheduler);// parameter controls whether I2C/SPI interface is initialised (set to false if other devices are on the I2C/SPI bus and have already initialised the interface)
virtualboolinit(boolinitCommAPI,AP_PeriodicProcess*scheduler,AP_Semaphore*spi_semaphore=NULL,AP_Semaphore*spi3_semaphore=NULL);// parameter controls whether I2C/SPI interface is initialised (set to false if other devices are on the I2C/SPI bus and have already initialised the interface)
virtualbyteread_register(byteaddress);
virtualvoidwrite_register(byteaddress,bytevalue);
virtualvoidset_orientation(enumRotationrotation);// Rotation vector to transform sensor readings to the body frame.
boolinit(boolinitCommAPI,AP_PeriodicProcess*scheduler);// parameter controls whether I2C/SPI interface is initialised (set to false if other devices are on the I2C/SPI bus and have already initialised the interface)
boolinit(boolinitCommAPI,AP_PeriodicProcess*scheduler,AP_Semaphore*spi_semaphore=NULL,AP_Semaphore*spi3_semaphore=NULL);// parameter controls whether SPI interface is initialised (set to false if other devices are on the I2C/SPI bus and have already initialised the interface)
uint8_tread_register(uint8_taddress);
voidwrite_register(uint8_taddress,uint8_tvalue);
voidreset();// reset sensor by holding a pin high (or is it low?) for 10us.