Randy Mackay
8caa5159f8
OptFlow: shrink lib by removing unused functions
...
Saves 46bytes of RAM and 1k of flash
2014-01-09 12:31:48 +09:00
Andrew Tridgell
f53afaa5ac
AP_OpticalFlow: use new scheduler API
2013-09-28 21:24:03 +10:00
Randy Mackay
012d7b0c0a
OptFlow: initialisation fix
...
Thanks to DongFang (aka Soren) for finding the issue and the solution
2013-07-11 14:14:37 +09:00
Randy Mackay
4ce4b7aef9
OptFlow: minor commenting and format changes
2013-05-28 22:56:11 +09:00
Pat Hickey
8503f3e2ae
Optflow: uses new Semaphore
2013-01-03 13:48:07 -08:00
Pat Hickey
c393374d4c
AP_OpticalFlow: ported to AP_HAL
...
* 78 wide
* remove SPI.h, SPI3.h, and FastSerial.h dependencies (though not objects)
* gotta totally refactor HAL SPI driver to fix the rest
2012-12-20 14:51:30 +11:00
rmackay9
57439b662c
AP_OpticalFlow: change Serial.print to Serial.print_P to save 27 bytes
2012-10-22 16:37:24 +09:00
rmackay9
a1b4531545
AP_OpticalFlow: added ability to pass in semaphores for main spi bus to stop conflicts with dataflash on APM1
2012-10-18 17:02:45 +09:00
Pat Hickey
26ba391cd4
AP_OpticalFlow_ADNS3080: has private AP_Semaphore* _semaphore
...
Semaphore can be null, handled correctly if it is. Rather than check for
which SPI bus the sensor is using, just check whether semaphore is not null
before using it. More general and flexible.
2012-10-09 11:35:59 -07:00
rmackay9
4d3d13582b
AP_OpticalFlow_ADNS3080: detect if optical flow sensor is on standard or secondary SPI bus
2012-09-24 18:39:12 +09:00
uncrustify
0db2404709
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.h
2012-08-21 19:04:09 -07:00
rmackay9
7bda35dc28
AP_OpticalFlow - moved most pin definitions into .cpp file
2012-04-21 20:09:15 +09:00
Andrew Tridgell
6021daf423
OpticalFlow: adapt optical flow library to new rotation system
2012-03-11 15:37:07 +11:00
Andrew Tridgell
2ab3d2c080
OpticalFlow: fixed line endings
...
this library was a mixture of dos and unix line endings, which makes
for very messy editing
2012-03-11 15:37:07 +11:00
Randy Mackay
99506accf4
Optical Flow - added overflow check
2012-01-25 21:45:52 +09:00
Randy Mackay
bcd63a9807
OpticalFlow - bug fix - highest resolution was incorrectly set as 1200 instead of 1600
2012-01-14 12:34:29 +09:00
Randy Mackay
bbe6dea980
OptFlow - initial support for APM2 (there are still problems) including adding ability to set Chip Select pin.
...
Other unrelated changes are:
a) fixed typo in 'esitmate_velocity' to 'estimate_velocity'.
b) moved init_compass from system.pde to sensors.pde which seemed consistent with other sensors.
2011-12-30 12:06:31 +09:00
Andrew Tridgell
3c69404d5b
fixed build of OpticalFlow code
2011-09-17 14:58:02 +10:00
Jason Short
45778a4e81
added sin and cos yaw from DCM, renamed "get" function because it doesn't return a value.
2011-09-16 19:24:57 -07:00
rmackay9@yahoo.com
d02d4b895c
AP_OpticalFlow - small but important fixes for position calcs
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3040 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-07 13:19:18 +00:00
rmackay9@yahoo.com
e4cd549599
AP_OpticalFlow - moved chip select pin so it doesn't interfere with AP_ADC
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2452 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-31 13:46:56 +00:00
rmackay9@yahoo.com
c2ff95371c
AP_OpticalFlow - fixed some bugs in get_position
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2380 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-22 14:44:51 +00:00
rmackay9@yahoo.com
34c7555fd1
AP_OpticalFlow - added set_orientation
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2245 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-11 12:49:19 +00:00
rmackay9@yahoo.com
56fd1acc4a
AP_OpticalFlow - first draft of optical flow library for use with experimental ADNS3080 sensor
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1933 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-30 08:29:28 +00:00