Commit Graph

33969 Commits

Author SHA1 Message Date
Randy Mackay
758331612f AP_Baro: probe for MS5611 on I2C addr 0x76 2018-09-07 08:36:02 +10:00
Andrew Tridgell
3d42abe816 Tools: added speedybee bootloader 2018-09-07 08:33:35 +10:00
s0up
066cf90111 HAL_ChibiOS: Add speedybee hardware definition 2018-09-07 08:33:35 +10:00
Francisco Ferreira
5b383bae16
AP_HAL_Linux: force Thread stack to have minimum size
Check that Thread stack size is the minimum allowed

Also add 256k to HAL-independent request stack size
2018-09-06 19:07:13 +01:00
Pierre Kancir
e278a09668 Tools: don't use strict comparison for param fetch all to cope with TYPE one's 2018-09-06 15:30:06 +10:00
Peter Barker
5d317a8ef7 Tools: autotest: clear Rover waypoints before toggling them in 2018-09-06 15:29:28 +10:00
Paul Atkin
bb99165221 HAL_ChibiOS: updates for KakuteF7
fixed PWM and added full tonealarm support
2018-09-06 10:11:34 +10:00
Randy Mackay
fb3cb75777 Tracker: default BRD_SAFETYOPTION to allow disarming 2018-09-06 08:30:53 +09:00
Randy Mackay
02a2f32c40 Tracker: minor format fix 2018-09-06 08:13:39 +09:00
Randy Mackay
30bc86e4a0 Tracker: remove unnecessary return 2018-09-06 08:13:39 +09:00
Randy Mackay
3a2e015df9 Tracker: send sensor status in extended status msg to GCS 2018-09-06 08:13:39 +09:00
Randy Mackay
4a5c6fe1e5 Tracker: enable aux servos at init and at 1hz 2018-09-06 08:13:39 +09:00
Randy Mackay
c6d761c78f Tracker: alphabetise method declarations 2018-09-06 08:13:39 +09:00
Randy Mackay
c8c5944b5f Tracker: set version to 1.1.0-dev 2018-09-06 08:13:39 +09:00
Peter Barker
bd5cdf9e64 RC_Channel: update aux options for planes to include arm/disarm 2018-09-06 08:26:50 +10:00
Peter Barker
4ad1869f43 Plane: add arm/disarm on aux switch 2018-09-06 08:26:50 +10:00
Lucas De Marchi
93d99dacd1 AP_Compass: UAVCAN: remove additional semaphore
We already inherit from AP_Compass_Backend, so use the semaphore from
there to synchronize with the main thread, like the other backends.
2018-09-06 08:23:02 +10:00
Lucas De Marchi
cb10d1d27b AP_Common: allow more than one WITH_SEMAPHORE per context
Let the variable have a random name since we are not going to reference
it. This allows more than one WITH_SEMAPHORE() per context and also to
avoid shadowing if we open inner contexts.
2018-09-06 08:23:02 +10:00
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).
2018-09-06 08:23:02 +10:00
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).
2018-09-06 08:23:02 +10:00
Lucas De Marchi
de535dc573 AP_Compass: remove unused external and name arguments
Aka "fix copy and pasta".
2018-09-06 08:23:02 +10:00
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.
2018-09-06 08:23:02 +10:00
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.
2018-09-06 08:23:02 +10:00
Andrew Tridgell
5de199bc01 AP_Baro: allow for external i2c baro on most boards
only disable on those with HAL_MINIMIZE_FEATURES enabled
2018-09-06 07:21:30 +10:00
Andrew Tridgell
a9e29f7556 HAL_ChibiOS: added pullup/pulldown support on GPIO
using the convention of write() on an input pin to set pullup/pulldown
2018-09-06 07:20:46 +10:00
liang.tang
7885b267f0 AP_GPS: fix UAVCAN gps message handlers 2018-09-05 17:23:14 +10:00
liang.tang
2c0b9a16a5 AP_Compass: fix UAVCAN mag message handlers 2018-09-05 17:22:34 +10:00
liang.tang
bcaa4901ed AP_UAVCAN: subscribe airspeed message 2018-09-05 17:22:08 +10:00
liang.tang
653766c4cc AP_Airspeed: uavcan airspeed supported 2018-09-05 17:22:08 +10:00
Peter Barker
56646651c6 Tools: autotest: add test for RCn_OPTION - camera trigger 2018-09-05 13:47:19 +10:00
Peter Barker
f47823f4e4 Tools: autotest: add test for RCn_OPTION - toggling relays 2018-09-05 13:47:19 +10:00
Peter Barker
10d7cc6bf4 RC_Channel: add Plane support for channel options 2018-09-05 13:47:19 +10:00
Peter Barker
901664ce09 Plane: add support for RCn_OPTION (servorelay,camera)
Closes #7071
Closes #7666
2018-09-05 13:44:07 +10:00
Peter Barker
450052aa80 Copter: rewrite read_radio for clarity 2018-09-05 11:54:32 +10:00
Peter Barker
a30cdf6806 Copter: eliminate failsafe.rc_override_active
Use RC_Channels::has_active_overrides() instead
2018-09-05 11:54:32 +10:00
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.
2018-09-05 11:54:32 +10:00
Peter Barker
1c527df084 RC_Channel: note that Rover now has disable-gcs-overrides channel option 2018-09-05 11:54:32 +10:00
Peter Barker
197edca772 Tools: expand test to cover use of disable-gcs-rc-overrides switch 2018-09-05 11:54:32 +10:00
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
2018-09-05 11:54:32 +10:00
Peter Barker
ec6c59faa3 Copter: move handling of disable-gcs-rc-overrides-channel-option up 2018-09-05 11:54:32 +10:00
Peter Barker
7bdd9b1aea RC_Channel: move handling of disable-gcs-rc-overrides-channel-option 2018-09-05 11:54:32 +10:00
Adam Watkins
2fe3535fd8 Docker: add Dockerfile for Docker container support 2018-09-05 11:29:33 +10:00
Peter Barker
a9621191d8 Tools: autotest: correct descent throttle in copter fence test
1500 is sufficient that we may not descend.
2018-09-05 10:42:33 +10:00
Andrew Tridgell
b4ecc347d7 AP_HAL: always define HAL_WITH_UAVCAN on px4 2018-09-05 08:52:47 +10:00
Randy Mackay
96097586c3 AR_AttitudeControl: reset I if speed controller not called recently 2018-09-04 15:00:41 +09:00
Andrew Tridgell
135e37e1f4 AP_IOMCU: cope with IOMCU reset in flight
this copes with IOMCU reset when we have safety forced off
2018-09-04 15:24:12 +10:00
Michael du Breuil
925d76bb8c Plane: Small cleanup to quadplane const (and clarity) 2018-09-04 15:11:41 +10:00
Leonard Hall
e11c7c6069 QuadPlane: remove true from init of loiter 2018-09-04 13:37:28 +09:00
Leonard Hall
8faa1cce39 Copter: loiter glitch fix 2018-09-04 13:37:28 +09:00
Leonard Hall
31d93f5914 AC_Loiter: reduce twitch on init 2018-09-04 13:37:28 +09:00