Commit Graph

33999 Commits

Author SHA1 Message Date
Michael du Breuil
f150cae75a Plane: Allow center throttle to be trim airspeed in cruise 2018-09-11 09:07:00 +10:00
Michael du Breuil
20c56f3e06 RC_Channel: Add an accessor for a channels range and type 2018-09-11 09:07:00 +10:00
Michael du Breuil
ee96c53844 Plane: Don't go to minimum airspeed when in RC failsafe in cruise/fbwb 2018-09-11 09:07:00 +10:00
Peter Barker
be9235a581 AP_NavEKF3: fix writeOptFlowMeas signature
const some of the vectors, stop taking references to scalars that aren't
being changed
2018-09-11 09:03:22 +10:00
Peter Barker
d8aa8d2b71 AP_NavEKF2: fix writeOptFlowMeas signature
const some of the vectors, stop taking references to scalars that aren't
being changed
2018-09-11 09:03:22 +10:00
Peter Barker
306a40bb77 AP_AHRS: fix writeOptFlowMeas signature
const some of the vectors, stop taking references to scalars that aren't
being changed
2018-09-11 09:03:22 +10:00
Michael du Breuil
7db5daadad AP_Mission: If a command fails to start immediately cycle to the next 2018-09-11 06:42:00 +10:00
Michael du Breuil
18512eebbb Sub: Allow starting mission commands to fail 2018-09-11 06:42:00 +10:00
Michael du Breuil
470548a100 Copter: Allow starting mission commands to fail 2018-09-11 06:42:00 +10:00
Michael du Breuil
f9e56f9d12 Plane: Respect frame type on VTOL_TAKEOFF commands
allow missioncommands to fail to start
2018-09-11 06:42:00 +10:00
Randy Mackay
b5d722245a Copter: minor comment fix 2018-09-10 13:50:31 +09:00
Randy Mackay
314ce5695a Copter: 3.6.0-rc9 release notes 2018-09-09 15:49:53 +09:00
Lucas De Marchi
ad8ab97725 AP_HAL_Linux: SPIDevice: compile out debug stuff
This should at most be behind a flag. If the device is being used by
other process/drivers, it's a problem with that specific user/distro:
don't penalize everybody else. Besides, changing the mode is not atomic
and nothing guarantees the other side doesn't get scheduled and change
it back before we get to run.
2018-09-08 09:47:33 -07:00
Lucas De Marchi
2c6dd64c67 AP_HAL_Linux: create one thread per spi bus rather than device
Do not create one thread per chardev (i.e. bus + kernel's chip select).
Since the shared resources are actually the bus controller and the bus
lines, it makes sense to have 1 thread per bus, otherwise it will just
get locked again on the mutex in the kernel side.
2018-09-08 09:47:33 -07:00
Lucas De Marchi
cf4fb09881 AP_HAL_Linux: Remove hole from SPIBus
Also handle a few coding style bikesheds.
2018-09-08 09:47:33 -07:00
Lucas De Marchi
4152b555fd AP_HAL_Linux: replace kernel_cs with subdev
They are the same thing. Using both names however is confusing.
2018-09-08 09:47:33 -07:00
Andrew Tridgell
69c3aad418 mavlink: submodule update 2018-09-08 22:16:37 +10:00
cclauss
7291aa0d00 AP_OSD: Simplify with the code enumerate()
* Avoid hardcoding the path to the python executable on the shebang line
* Using __with open() as__ automates file close().
2018-09-08 20:24:42 +10:00
Peter Barker
a7042e3847 Tools: autotest: tweak output messages, loosen camera trigger timeout 2018-09-08 12:56:15 +10:00
Peter Barker
6e44ea13d4 Tools: autotest: do not arm vehicle before flaps test 2018-09-07 23:18:43 +10:00
Peter Barker
c0a990fda7 Sub: correct failsafe recovery test 2018-09-07 18:11:11 +09:00
Pierre Kancir
d8c53bbd9c Tools: remove dependency on mavproxy for cmd_long based functions 2018-09-07 11:20:03 +10:00
Pierre Kancir
87a7fd0fbb Tools: remove dependency on mavproxy for arming/disarm 2018-09-07 11:20:03 +10:00
Pierre Kancir
5b0ae42725 SITL: limit on_ground() check to militer accuracy to prevent bouncing 2018-09-07 10:22:34 +10:00
Peter Barker
0cf12ad47e RC_Channel: add aux option to fly inverted for Plane 2018-09-07 09:07:40 +10:00
Peter Barker
b574f4c1fc Plane: move support for inverted flight to rc-aux-switch
Functional change here; if someone de-configures the rc aux switch in
flight they will remain inverted
2018-09-07 09:07:40 +10:00
Andrew Tridgell
d79386d574 AP_Baro: use GND_EXT_BUS to allow a specific bus to be probed 2018-09-07 08:36:02 +10:00
Andrew Tridgell
dda8e7c35a AP_Baro: probe both i2c buses on CubeBlack for barometers 2018-09-07 08:36:02 +10:00
Andrew Tridgell
eec3a2ab31 AP_HAL: added FOREACH_I2C_MASK() macro 2018-09-07 08:36:02 +10:00
Randy Mackay
af6e2d2c8c AP_Baro: add PROBE_EXT param values
this makes it easier for users to select the external baro they want to use on GCSs that do not display the bitmasks
2018-09-07 08:36:02 +10:00
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