rmackay9
57439b662c
AP_OpticalFlow: change Serial.print to Serial.print_P to save 27 bytes
12 years ago
rmackay9
a1b4531545
AP_OpticalFlow: added ability to pass in semaphores for main spi bus to stop conflicts with dataflash on APM1
12 years ago
Pat Hickey
5ac21b71ce
AP_OpticalFlow_test: fix build with NULL semaphore.
13 years ago
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.
13 years ago
rmackay9
f9b16a9a50
AP_OpticalFlow: modified to use AP_Semaphore for SPI3 bus when required
13 years ago
rmackay9
a7c2ea1891
AP_OpticalFlow: save and restore SPI bus speed to remove conflict with dataflash that runs at 8Mhz
13 years ago
Andrew Tridgell
81fd4b3a3c
OpticalFlow: fixed SITL build
13 years ago
rmackay9
163a7841f6
AP_OpticalFlow: small fixes to test sketch to make it work with modified lib
13 years ago
rmackay9
cb584f81fb
AP_OpticalFlow: remove APM2 version of library now that AP_OpticalFlow_ADNS3080 class can autodetect which SPI bus the sensor is on
13 years ago
rmackay9
4d3d13582b
AP_OpticalFlow_ADNS3080: detect if optical flow sensor is on standard or secondary SPI bus
13 years ago
rmackay9
ca383b393d
AP_OpticalFlow: use AP_PeriodicProcess to read at 20hz
13 years ago
uncrustify
d7d921119c
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080_APM2.h
13 years ago
uncrustify
0db2404709
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.h
13 years ago
uncrustify
ff94bd7696
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow.h
13 years ago
uncrustify
80f5d0bb51
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080_APM2.cpp
13 years ago
uncrustify
b505b26226
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp
13 years ago
uncrustify
ce14ba0868
uncrustify libraries/AP_OpticalFlow/AP_OpticalFlow.cpp
13 years ago
uncrustify
0fb7e82792
uncrustify libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde
13 years ago
rmackay9
f18ee75b5c
AP_OpticalFlow - updated test sketch to allow testing of APM2 version
13 years ago
rmackay9
3075a0c5bd
AP_OpticalFlow - added support for optical flow for APM2
13 years ago
rmackay9
7bda35dc28
AP_OpticalFlow - moved most pin definitions into .cpp file
13 years ago
rmackay9
90fcdeadfd
AP_OpticalFlow - small bug fix to ensure init attempts to read the product id 3 times before giving up
13 years ago
rmackay9
d371862fd2
AP_OpticalFlow - resolved compile error in example sketch (it could not find DCM.h but it's not required anyway)
13 years ago
Andrew Tridgell
6021daf423
OpticalFlow: adapt optical flow library to new rotation system
13 years ago
Andrew Tridgell
2ab3d2c080
OpticalFlow: fixed line endings
...
this library was a mixture of dos and unix line endings, which makes
for very messy editing
13 years ago
Randy Mackay
33aa6fe13b
Optflow - added reference to FastSerial to resolve compile error on Arduino 1.0.
...
also removed reference to DCM (no longer required) and removed some old code.
13 years ago
Randy Mackay
ed19c25a97
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
13 years ago
Randy Mackay
a8b3d2f063
OpticalFlow - fixed minor compiler warnings and moved chip select to A3 for APM2
13 years ago
Randy Mackay
99506accf4
Optical Flow - added overflow check
13 years ago
Randy Mackay
bcd63a9807
OpticalFlow - bug fix - highest resolution was incorrectly set as 1200 instead of 1600
13 years ago
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.
13 years ago
Andrew Tridgell
632e0312de
opticalflow: use the right path for SPI.h
14 years ago
rmackay9
c80143b96e
AP_Optflow - small fix to lat/lon calculation and made example sketch work again
14 years ago
James Goppert
0c7c508541
Optional recursion added.
14 years ago
James Goppert
5489b84f8e
Improvements to cmake.
14 years ago
James Goppert
d887a28b91
Added ArduBoat/ ArduRover/ and APO library.
14 years ago
Andrew Tridgell
3c69404d5b
fixed build of OpticalFlow code
14 years ago
Jason Short
45778a4e81
added sin and cos yaw from DCM, renamed "get" function because it doesn't return a value.
14 years ago
unknown
a4e001bbcf
Adding CMake support
14 years ago
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
14 years ago
rmackay9@yahoo.com
e81aa43f1c
OpticalFlow - add check to see if sensor has initialised correctly.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2974 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
rmackay9@yahoo.com
3d641a3b45
AP_OpticalFlow - fixes to position calculations (lat was reversed and would calculate position even with surface quality was very low)
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2913 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
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
14 years ago
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
14 years ago
rmackay9@yahoo.com
34c7555fd1
AP_OpticalFlow - added set_orientation
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2245 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
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
14 years ago