Kevin Hester
a7820e6c71
OptFlow: fixup line endings
11 years ago
Randy Mackay
d19b566d97
OptFlow: remove unused variables
...
Saves 24bytes RAM by removing several static variables that were used
only for internal calculations
11 years ago
Bill Bonney
82ea5926a8
OptFlow: update function added to fix compiler error
11 years ago
Randy Mackay
3823eed865
OptFlow: update example sketch to work with shrunken library
11 years ago
Randy Mackay
8caa5159f8
OptFlow: shrink lib by removing unused functions
...
Saves 46bytes of RAM and 1k of flash
11 years ago
Andrew Tridgell
b178ad7344
AP_OpticalFlow: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
f53afaa5ac
AP_OpticalFlow: use new scheduler API
12 years ago
Andrew Tridgell
d64660739e
AP_OpticalFlow: fixed example build
12 years ago
Andrew Tridgell
36ea705956
AP_OpticalFlow: fixed build with print() API change
12 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Randy Mackay
012d7b0c0a
OptFlow: initialisation fix
...
Thanks to DongFang (aka Soren) for finding the issue and the solution
12 years ago
Randy Mackay
4ce4b7aef9
OptFlow: minor commenting and format changes
12 years ago
Randy Mackay
5bf55a9523
OpticalFlow: switch order of sin_yaw, cos_yaw
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
6bd361b9cd
OpticalFlow: make surface_quality uint8_t
12 years ago
Pat Hickey
8503f3e2ae
Optflow: uses new Semaphore
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Andrew Tridgell
7d70ff409d
AP_OpticalFlow: use max() macro
12 years ago
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
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
Andrew Tridgell
8311062610
AP_OpticalFlow: fixed some memory cast warnings
12 years ago
rmackay9
09485ddc5f
AP_OpticalFlow: fix example sketch to work with modified AP_Opticalflow library after memory saves
12 years ago
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