Lucas De Marchi
1715714488
AP_Common: make WithSemaphore use an AP_HAL::Semaphore reference
...
We don't need the specialized one inside WithSemaphore, so use the
abstract one which allows us to more easily convert between current API
and the HAL_Semaphore one.
While at it also remove additional pragma and allow constructor to
receive a pointer for convenience (we will just dereference it).
7 years ago
Lucas De Marchi
cd9b08dbae
AP_Compass: rename variable for more buses
...
"all_external" reflects better the fact that we can have more than 2
buses (and now we are using the foreach macro).
7 years ago
Lucas De Marchi
de535dc573
AP_Compass: remove unused external and name arguments
...
Aka "fix copy and pasta".
7 years ago
Lucas De Marchi
4039b51810
AP_Compass: stop passing frontend pointer
...
Let AP_Compass_Backend call AP::compass() *once* instead of passing
the frontend pointer over and over.
7 years ago
Lucas De Marchi
585b6dce0d
AP_Compass: support more external compasses on aerofc
...
Let it probe on external bus. Aerofc has an HMC5883 on internal bus, but
we don't want it enabled as it interferes with the internal baro. Also
the rotation for the compass that comes with Aero RTF is different from
the other that got added later. That means people would need to orient a
third party IST8310-based compass differently on Aero RTF than on other
boards... that's a problem of having orientation based on the chip that
can't be solved on this commit.
7 years ago
Andrew Tridgell
5de199bc01
AP_Baro: allow for external i2c baro on most boards
...
only disable on those with HAL_MINIMIZE_FEATURES enabled
7 years ago
Andrew Tridgell
a9e29f7556
HAL_ChibiOS: added pullup/pulldown support on GPIO
...
using the convention of write() on an input pin to set pullup/pulldown
7 years ago
liang.tang
7885b267f0
AP_GPS: fix UAVCAN gps message handlers
7 years ago
liang.tang
2c0b9a16a5
AP_Compass: fix UAVCAN mag message handlers
7 years ago
liang.tang
bcaa4901ed
AP_UAVCAN: subscribe airspeed message
7 years ago
liang.tang
653766c4cc
AP_Airspeed: uavcan airspeed supported
7 years ago
Peter Barker
10d7cc6bf4
RC_Channel: add Plane support for channel options
7 years ago
Peter Barker
9650846497
RC_Channel: treat UINT16_MAX as a value of 0 in set_override
...
This shouldn't really in in RC_Channels - when we move the mavlink
packet handling up to the GCS_MAVLink base class we should move this
into there.
7 years ago
Peter Barker
1c527df084
RC_Channel: note that Rover now has disable-gcs-overrides channel option
7 years ago
Peter Barker
047689981b
RC_Channel: honour gcs_overrides_enabled as part of set_override
...
This will stop situations like we currently have where the
MANUAL_CONTROL GCS mavlink packets can still affect the vehicle
Also resolves an issue where has_new_overrides may not be set
appropriately
7 years ago
Peter Barker
7bdd9b1aea
RC_Channel: move handling of disable-gcs-rc-overrides-channel-option
7 years ago
Andrew Tridgell
b4ecc347d7
AP_HAL: always define HAL_WITH_UAVCAN on px4
7 years ago
Randy Mackay
96097586c3
AR_AttitudeControl: reset I if speed controller not called recently
7 years ago
Andrew Tridgell
135e37e1f4
AP_IOMCU: cope with IOMCU reset in flight
...
this copes with IOMCU reset when we have safety forced off
7 years ago
Leonard Hall
31d93f5914
AC_Loiter: reduce twitch on init
7 years ago
Leonard Hall
5863b84c35
AC_PosControl: reduce glitch on init
7 years ago
Leonard Hall
4ceabe4838
AC_PID_2D: add reset for filter and D term
7 years ago
Peter Barker
71bff63bff
AP_Mission: remove erroneous comment about clear()
7 years ago
Peter Barker
3c8738b4d8
RC_Channel: add clear-waypoints option
7 years ago
Peter Barker
16b49399db
AP_Mission: add singleton
7 years ago
Michael du Breuil
f6cb196d53
AP_HAL_ChibiOS: Remove unimplemented force_safety_no_wait()
...
ChibiOS doesn't implement the method, so there is nothing to be gained
by calling the function.
7 years ago
Peter Barker
d6fe9d47e0
AP_HAL_SITL: check return value from posix_memalign
...
Avoids return-value-must-be-checked compiler warning
7 years ago
Michael du Breuil
f06b27e4a3
AP_Declination: Fixes ups for pyigrf
7 years ago
scivision
67a503d5d8
AP_Declination: 2to3, IGRF API update
...
use built-in IGRF total, incl, decl computations
7 years ago
Andrew Tridgell
ebcdf4c9c6
AP_Notify: fixed oled probe on first bus
...
Thanks to Erwin Quilloy for helping to track this down
7 years ago
Peter Barker
a7acc92663
RC_Channel: move rc-channel option for lost-vehicle sound up to base class
7 years ago
liang.tang
f4a8006333
AP_Airspeed: fix spd3x correct pressure issue
7 years ago
Peter Barker
774b091611
AC_PID: get example working again
7 years ago
Peter Barker
c54c2a2930
RC_Channel: fix and tidy example
7 years ago
Peter Barker
15ae453205
AP_HAL: fix RCInput example
7 years ago
Peter Barker
26e7abe6c4
GCS_MAVLink: use camera singleton to get camera rather than callback
7 years ago
Peter Barker
d5f6911db7
GCS_MAVLink: use compass singleton instead of subclass callback
7 years ago
Michael du Breuil
70e587b572
AP_GPS: Fix accidental quantization to float on SBF logging
7 years ago
Hannes Verschore
fefde53d58
AP_HAL_ChibiOS: Fix comment in Device.cpp
...
This was decreased to 100 in b07c599bf2
. I assume it would be best to also update the comment.
7 years ago
Peter Barker
822fab0f5a
AP_RSSI: let HAL's attach_interrupt implementation handle board stuff
7 years ago
Peter Barker
9569abe57a
AP_HAL_VRBRAIN: remove pointless attach_interrupt override
7 years ago
Peter Barker
e7e2a78d35
AP_HAL_SITL: remove pointless attach_interrupt override
7 years ago
Peter Barker
42c711a5b2
AP_HAL_Linux: remove pointless attach_interrupt override
7 years ago
Peter Barker
d868aab26a
AP_HAL_Empty: remove pointless attach_interrupt override
7 years ago
Peter Barker
fcacdb42bb
AP_HAL: define base-class attach_interrupt to return false
7 years ago
Randy Mackay
305d927dd8
AP_OSD: resolve compiler warnings
7 years ago
Raouf
90a27520e9
AP_Rally: rover includes home by default
7 years ago
Siddharth Purohit
ca54123b7d
AP_GPS: move UAVCAN GPS related code to AP_GPS_UAVCAN backend
7 years ago
Siddharth Purohit
6e85003b56
AP_BattMonitor: move BattInfo message subscription and handling to AP_BattMonitor
7 years ago
Siddharth Purohit
14b701cff8
AP_Compass: move UAVCAN mag subscribers and handlers to Compass Backend
7 years ago