Commit Graph

236 Commits

Author SHA1 Message Date
Randy Mackay cb3de81058 AP_OpticalFlow: fix _ENABLE param desc for stable release 2019-04-25 16:34:10 +09:00
Randy Mackay d2a2caf3a6 OpticalFlow: replace ENABLE with TYPE 2019-04-08 11:26:59 +09:00
Randy Mackay 97b5c2b031 OpticalFlow: add MAVLink driver 2019-04-08 11:26:59 +09:00
Michael du Breuil ca260623cb AP_OpticalFlow: Fix example rangefinder init 2019-04-06 09:15:22 +11:00
Paul Riseborough 9883b8757f AP_OpticalFlow: Add noise to simulated sensor 2019-04-02 10:51:12 +11:00
Tom Pittenger 679ccb95bf AP_OpticalFlow: rename dataflash to logger 2019-03-28 16:40:57 +11:00
Randy Mackay 2cbd97dd7a AP_OpticalFlow: support cx-of on all boards 2019-03-28 08:07:29 +11:00
Peter Barker 54a250483b AP_OpticalFlow: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker 572702daba AP_OpticalFlow: remove keywords.txt 2019-02-17 00:29:38 -08:00
Tom Pittenger 699b7b9788 AP_OpticalFlow: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Randy Mackay 760989d786 AP_OpticalFlow: add range to POS param description 2018-12-13 20:14:03 +09:00
Randy Mackay 671f39c874 AP_OpticalFlow: remove unnecessary init from CSOF and add comments
also replace greater-than-zero with is_positive
2018-11-28 20:38:58 +09:00
Randy Mackay 4f738ca906 AP_OpticalFlow: driver for Cheerson CX-OF 2018-11-28 20:38:58 +09:00
Randy Mackay 18c3eba829 AP_OpticalFlow: minor format fix to Pixart driver 2018-11-26 12:29:37 +09:00
Peter Barker e5fa728a28 AP_OpticalFlow: fix example for not taking ahrs in constructor 2018-11-13 10:40:23 +11:00
Peter Barker ac83765487 OpticalFlow: take care of own logging 2018-11-13 10:40:23 +11:00
Peter Barker e88358ccc6 AP_OpticalFlow: use AHRS singleton 2018-11-13 10:40:23 +11:00
Peter Barker ebf038eb57 AP_OpticalFlow: add singleton 2018-11-13 10:40:23 +11:00
auturgy d2cb4db191 AP_OpticalFlow: add defined(HAL_HAVE_PIXARTFLOW_SPI)
This addition will build in support for the Pixart pmw3901 if it is defined in the hwdef.dat for a board
2018-11-12 06:35:59 +11:00
Peter Barker 327ccc8961 AP_OpticalFlow: add override keyword where required 2018-11-08 11:30:12 +11:00
Michael du Breuil 3d7d23531a AP_OpticalFlow: No need to clear already zerod objects 2018-10-30 16:17:03 -07:00
Andrew Tridgell a1f1e7e435 AP_OpticalFlow: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Lucas De Marchi 49d08ba72a Global: remove minlure
Minlure is a port of ArduPilot to Minnow Board connected to daughter
board. Very few of those were produced and nobody is flying with it.

It served its purpose and all the the improvements to ArduPilot remain
regardless of it not being supported anymore. Now it's just adding
maintenance work with no clear benefit, so pull the plug.
2018-06-26 07:32:08 -07:00
Patrick José Pereira 653784479e AP_OpticalFlow: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Lucas De Marchi daa8819619 AP_OpticalFlow: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker 82a68a82e6 AP_OpticalFlow: use baro singleton 2018-03-08 21:20:05 -08:00
Peter Barker 9b23b469cf AP_OpticalFlow: correct compiler warning
In file included from
../../libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp:28:
../../libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.h:75:13: warning:
private field 'sum_x' is not used [-Wunused-private-field]
    int32_t sum_x;
            ^
../../libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.h:76:13: warning:
private field 'sum_y' is not used [-Wunused-private-field]
    int32_t sum_y;
            ^
../../libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.h:77:14: warning:
private field 'last_print_ms' is not used [-Wunused-private-field]
    uint32_t last_print_ms;
             ^
4 warnings generated.
2018-03-02 09:26:37 +09:00
Andrew Tridgell ead72214ac AP_OpticalFlow: support SP01 board 2018-02-14 18:27:00 +11:00
Andrew Tridgell 429a2beb86 AP_OpticalFlow: enable pixart flow on PCNC1 boards 2018-02-08 17:36:33 +11:00
Andrew Tridgell 570a05e9d3 AP_OpticalFlow: fixed pixart SPI name 2018-02-08 17:36:33 +11:00
Andrew Tridgell 7c8cf0a39e AP_OpticalFlow: fixed SPI name for pixart flow sensor 2018-02-08 17:36:33 +11:00
Andrew Tridgell 85f4958e4e AP_OpticalFlow: use AP_FEATURE_BOARD_DETECT 2018-01-15 11:46:02 +11:00
Andrew Tridgell ddf8523c2b AP_OpticalFlow: prevent crash on bad device name 2018-01-15 11:46:02 +11:00
Andrew Tridgell 3cd5386a7e AP_OpticalFlow: support ChibiOS 2018-01-15 11:46:02 +11:00
Peter Barker 7646e09349 AP_OpticalFlow: AP_AHRS no longer requires GPS in constructor 2017-12-27 00:58:02 +00:00
Andrew Tridgell 0d4dca0394 AP_OpticalFlow: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Lucas De Marchi beabae6a98 global: use static method to construct AP_AHRS_NavEKF 2017-09-26 03:01:21 +01:00
Lucas De Marchi c9fbf7b722 global: use static method to construct AP_NavEKF3 2017-09-26 03:01:21 +01:00
Lucas De Marchi e2fe36357a global: use static method to construct AP_NavEKF2 2017-09-26 03:01:21 +01:00
Lucas De Marchi 72fd2d6f05 global: use static method to construct AP_SerialManager 2017-09-26 03:01:21 +01:00
Lucas De Marchi fbe0d9761c global: use static method to construct AP_OpticalFlow 2017-09-26 03:01:21 +01:00
Lucas De Marchi 04c3dca3ce AP_OpticalFlow: add static create method 2017-09-26 03:01:21 +01:00
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().
2017-09-26 03:01:21 +01:00
Lucas De Marchi 9027a55696 global: use static method to construct RangeFinder 2017-09-26 03:01:21 +01:00
Lucas De Marchi 8094482f21 global: use static method to construct AP_GPS 2017-09-26 03:01:21 +01:00
Lucas De Marchi 87b30b4552 global: use static method to construct AP_InertialSensor 2017-09-26 03:01:21 +01:00
Lucas De Marchi c1a957fbf3 global: use static method to construct Compass 2017-09-26 03:01:21 +01:00
Lucas De Marchi 91feec0e14 global: use static method to construct AP_Baro 2017-09-26 03:01:21 +01:00
Randy Mackay 59ffc3cd65 AP_OpticalFlow: minor order declaration change
non-functional change
2017-08-23 11:19:14 +09:00