Lucas De Marchi
04c3dca3ce
AP_OpticalFlow: add static create method
7 years ago
Lucas De Marchi
40fd1b346c
global: remove rangefinder from AP_AHRS_NavEKF
...
AP_AHRS_NavEKF doesn't use the rangefinder, it just delegates the
calls to the right estimator.
For libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp the initialization
order has also been modified to match the order on vehicles. It's more
correct since it passes a reference when EKF2/EKF3 are already
constructed, while thos constructors use a pointer. Ideally these
should be moved to an init() method though, or use a get_instance().
7 years ago
Lucas De Marchi
9027a55696
global: use static method to construct RangeFinder
7 years ago
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
7 years ago
Lucas De Marchi
87b30b4552
global: use static method to construct AP_InertialSensor
7 years ago
Lucas De Marchi
c1a957fbf3
global: use static method to construct Compass
7 years ago
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
7 years ago
Randy Mackay
59ffc3cd65
AP_OpticalFlow: minor order declaration change
...
non-functional change
8 years ago
Randy Mackay
cf24eef359
AP_OpticalFlow: init checks if enabled
8 years ago
Randy Mackay
bc38affcb1
AP_OpticalFlow: px4flow retries init 10 times at startup
...
This resolves an issue in which some px4flow sensors are slow to startup
8 years ago
Randy Mackay
fdb4c7b5ee
AP_OpticalFlow: failure to init leaves enabled unchanged
8 years ago
Randy Mackay
a7afffe14a
AP_OpticalFlow: rename BUS_ID parameter to ADDR
...
This makes the parameter more consistent with RangeFinder
8 years ago
Andrew Tridgell
97e88501c6
AP_OpticalFlow: support pixart 3901
8 years ago
Pierre Kancir
45ca91808d
AP_OpticalFlow: example fix travis warning
...
missing function declaration
implicit cast
some style fix
8 years ago
Jacob Walser
a9a8521383
AP_OpticalFlow: Fix parameter metadata
8 years ago
mirkix
ac60ddfdde
AP_OpticalFlow: allow to search on I2C bus 2
8 years ago
mirkix
ad208cab56
AP_OpticalFlow: BBBmini remove onboard OpticalFlow
8 years ago
Randy Mackay
e725ae866b
AP_OpticalFlow: fix example sketch
8 years ago
murata
d9dbf6e1eb
AP_OpticalFlow: Change from magic number 0 to definition name.
8 years ago
murata
77c402556b
AP_OpticalFlow: Unify from print or println to printf.
8 years ago
Julien Beraud
677a2f600f
AP_OpticalFlow_Onboard: remove gyro_cb
...
Not needed anymore
8 years ago
Julien Beraud
305239b467
AP_OpticalFlow_Onboard: fix scale in gyro calculation
...
Scale was wrong due to incorrect gyro integration
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
Peter Barker
889ec829fc
AP_OpticalFlow: fix warning in SITL compilation
8 years ago
Andrew Tridgell
75688c8342
AP_OpticalFlow: Add EKF3 and remove EKF1
8 years ago
Andrew Tridgell
bdc41446ae
AP_OpticalFlow: fixed build
8 years ago
Randy Mackay
a517db4b5e
AP_OpticalFlow: resolve compiler warning
8 years ago
Andrew Tridgell
22717f23be
AP_OpticalFlow: apply yaw for flow in all drivers
8 years ago
Andrew Tridgell
06dfbc3e09
AP_OpticalFlow: added common driver for PX4Flow
...
used on Linux and NuttX boards
8 years ago
Andrew Tridgell
52715c5d16
AP_OpticalFlow: fixed default pixart flow scaling
8 years ago
Andrew Tridgell
9b93e12bbb
AP_OpticalFlow: retry config register write up to 5 times
8 years ago
Andrew Tridgell
ea462d80e6
AP_OpticalFlow: added _applyYaw method to backend
...
for common handling of yaw correction
8 years ago
Andrew Tridgell
abc42c737c
AP_OpticalFlow: added update function for Pixart flow driver
8 years ago
Andrew Tridgell
0be1b1aac2
AP_OpticalFlow: give access to AHRS from all backends
8 years ago
Andrew Tridgell
2e2f8ad8cf
AP_OpticalFlow: added SITL flow driver as normal driver
...
move away from HAL_SITL embedded drivers
8 years ago
Andrew Tridgell
0889b25afa
AP_OpticalFlow: initial code for Pixart optical flow chip
8 years ago
Julien Beraud
d50fd3a6cd
AP_OpticalFlow: fix onboard init
...
mistake in patch to avoid segfault which enabled
AP_OpticalFlow_Linux instead of AP_OpticalFlow_Onboard.
Store a reference to ahrs in order to execute init later, when
ahrs is initialized.
8 years ago
Julien Beraud
dc86a53862
OpticalFlow: move onboard alloc to init()
...
No reason to keep it in the constructor
8 years ago
Andrew Tridgell
76b2759317
AP_OpticalFlow: fixed shadowed variable build warning
8 years ago
Andrew Tridgell
6e2fbf1988
AP_OpticalFlow: fixed threading in opticalflow for linux
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
Andrew Tridgell
047a09c391
AP_OpticalFlow: use const reference
...
saves stack space and cpu
8 years ago
priseborough
1bde180f98
AP_OpticalFlow: Update parameter documentation
...
Add brief description of body frame conventions.
8 years ago
priseborough
9c7ab639a1
AP_OpticalFlow: Add parameters for flow sensor position offset
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
8 years ago
murata
13fe8cb4d0
AP_OpticalFlow: Changed short boundary the i2c_integral_frame.
9 years ago
murata
59796aaf9c
AP_OpticalFlow: The first value of the register to the value of the definition.
9 years ago
LukeMike
316e5acaec
AP_OpticalFlow_PX4: enabled sensor driver startup for all VR boards
9 years ago
Andrew Tridgell
78b2924c00
AP_OpticalFlow: auto-start px4flow driver if enabled
9 years ago