Commit Graph

14625 Commits

Author SHA1 Message Date
Andrew Tridgell 03eb3f62c5 AP_Math: added from_rotation() to Matrix3
backport from master
2018-04-25 19:48:58 +10:00
Andrew Tridgell 66418d1ad4 SITL: allow for tailsitters in RealFlight 2018-04-25 19:48:40 +10:00
Andrew Tridgell ad20d51f70 HAL_PX4: implement BRD_SAFETYOPTION 2018-04-14 06:56:51 +10:00
Andrew Tridgell 3abd7ea051 AP_BoardConfig: added BRD_SAFETYOPTION parameter
allow control of safety button behaviour
2018-04-14 06:56:51 +10:00
Randy Mackay eb2404b766 AP_Compass: ICM20948 default rotation to Pitch180Yaw90 2018-03-28 15:14:06 +11:00
Peter Barker 52d8c21f1c DataFlash: file not being initialised means logging is failed 2018-03-20 13:06:20 +11:00
Guglie 0ecce2ed22 SITL: fix pthread_setname_np to build on mac 2018-01-19 09:59:26 +11:00
Andrew Tridgell 206c4b95c7 SITL: adjust FlightAxis defaults
and map 0,0 to CMAC location, to improve how SITL works in
MissionPlanner
2018-01-19 09:58:56 +11:00
Andrew Tridgell 6e956bb0dc SITL: fixed build under cygwin 2018-01-19 09:58:47 +11:00
Lucas De Marchi eaa603b05c AP_ADSB: fix getting a copy rather than a reference
These have been caught by making constructors private and enforcing
calling a create() method to create objects are supposed to be
statically allocated only.

The Vector3f reference was just nearby and was a change copied from
similar PR from Peter Barker (#6873).
2018-01-16 07:43:59 +11:00
rde-mato e23a2c5254 AP_Baro: make AP_Baro a singleton
for AP_Airspeed
2018-01-16 07:43:59 +11:00
Andrew Tridgell d7bbf9bf66 DataFlash: log health and primary for airspeed 2018-01-16 07:43:59 +11:00
Andrew Tridgell e2c243fac2 AP_Baro: moved constants to AP_Math/definitions.h 2018-01-16 07:23:04 +11:00
Andrew Tridgell 56e549e12b AP_Math: moved constants from AP_Baro 2018-01-16 07:23:00 +11:00
Andrew Tridgell 5229fbd854 AP_Arming: check all airspeed sensors are healthy 2018-01-16 07:22:51 +11:00
Andrew Tridgell b36911c47d DataFlash: log both airspeed sensors 2018-01-16 07:22:42 +11:00
Andrew Tridgell 8de2cebd78 AP_Airspeed: support dual airspeed sensors
allow for a primary and secondary airspeed sensor
2018-01-16 07:17:33 +11:00
rde-mato eaa4861693 AP_Airspeed: added SDP3X airspeed sensor driver 2018-01-16 07:16:24 +11:00
Michael du Breuil b5707c0180 AP_Airspeed: Allow specifying the MS5525 address 2018-01-16 07:16:19 +11:00
Andrew Tridgell 53180f2ba3 AP_Airspeed: fixed timing errors in MS5525 driver
this fixes issue #7188, where we could read from the MS5525 sensor too
soon after requesting data and the result coming back would be garbage
2017-12-21 15:10:41 +11:00
Andrew Tridgell 5ad64b8656 AP_Compass: probe for LIS3MDL on 0x1e
as well as 0x1c
2017-11-15 16:08:17 +11:00
Andrew Tridgell 98c2f23371 AP_Motors: apply tailsitter min spin to both motors 2017-11-04 11:41:05 +11:00
davidaroyer e5154abc38 AP_RangeFinder: cleanup variable names in uLanding driver 2017-11-04 11:33:11 +11:00
davidaroyer 039b295c66 AP_RangeFinder: update uLanding driver for new firmware data format 2017-11-04 11:33:07 +11:00
Andrew Tridgell 996df23a7f AP_Motors: fixed tailsitter use of SPIN_MIN 2017-11-04 09:27:54 +11:00
Andrew Tridgell 8e6f22ae73 AP_InertialSensor: don't apply offsets in SITL backend
the offsets are applied in the rotate and correct methods
2017-11-01 17:10:38 +11:00
Andrew Tridgell c05c495cc8 AP_InertialSensor: support rotated IMUs in SITL 2017-11-01 17:10:32 +11:00
Peter Barker 6111f2322f SITL: avoid FPE when running fly.ArduPlane
Program received signal SIGFPE, Arithmetic exception.
__expf_finite () at ../sysdeps/x86_64/fpu/e_expf.S:132
132     ../sysdeps/x86_64/fpu/e_expf.S: No such file or directory.
(gdb) u
2017-10-31 17:26:44 +11:00
Andrew Tridgell 25678a59e7 HAL_Linux: added _main_ctx 2017-10-30 15:26:08 +11:00
Andrew Tridgell 0eb25fcc74 AP_Compass: avoid double detection of the AK09916
with an ICM20948 we can double detect the compass due to the i2c pass-thru
2017-10-29 19:52:03 +11:00
Lucas De Marchi f03057fdeb AP_Compass: use IST8310 and HMC5883 as external mags 2017-10-29 19:52:03 +11:00
Francisco Ferreira 9e414b4ae3 AP_Compass: re-enable QMC5883 compass driver by default
This reverts commit a657daf635
2017-10-29 19:52:03 +11:00
Andrew Tridgell 7019506175 AP_Compass: added IST8310 on FMUv3 I2C 2017-10-29 19:52:03 +11:00
Andrew Tridgell b2668a88ee HAL_PX4: fixed a race condition on i2c init
we could call init on two devices with the same name, which caused
init_ok to be false. This could cause the SMBus battery to fail to
initialise

Thanks to Michael duBreuil for finding this!
2017-10-29 19:52:03 +11:00
Lucas De Marchi d0494350d5 AP_HAL_Linux: UARTDevice: never be the controlling terminal
If we are the controlling terminal for a tty device we will receive a
SIGHUP when the device disappears. Currently what happens is that we
simply stop the whole process. We don't want to fall off the sky due
to a bad device. This can happen for any reason, but it's more likely
if the UART is behind a USB connection.
2017-10-29 19:52:03 +11:00
Andrew Tridgell 3126dea51d DataFlash: log critical messages while disarmed
this logs critical messages while disarmed if we have logged any
messages while armed. This fixes issue #7010 where log files show the
incorrect mode if the log includes any portions where the user
disarmed. It makes analysing users logs very difficult. It also
affects parameters, so we don't always know the true parameter values
in logs from users.
2017-10-29 19:52:02 +11:00
Peter Barker 2d684cd9e8 AP_HAL_SITL: implement in_main_thread 2017-10-29 19:52:02 +11:00
Andrew Tridgell 844bcf33c9 AP_HAL_QURT: make in_main_thread const and override
# Conflicts:
#	libraries/AP_HAL_QURT/Scheduler.cpp
#	libraries/AP_HAL_QURT/Scheduler.h
2017-10-29 19:52:02 +11:00
Andrew Tridgell 9d897f5da6 AP_HAL_VRBRAIN: make in_main_thread const and override
# Conflicts:
#	libraries/AP_HAL_VRBRAIN/Scheduler.cpp
#	libraries/AP_HAL_VRBRAIN/Scheduler.h
2017-10-29 19:52:02 +11:00
Andrew Tridgell 8b472919da AP_HAL_PX4: make in_main_thread const and override
# Conflicts:
#	libraries/AP_HAL_PX4/Scheduler.cpp
#	libraries/AP_HAL_PX4/Scheduler.h
2017-10-29 19:52:02 +11:00
Andrew Tridgell 3ef150e9f7 AP_HAL_Linux: make in_main_thread const and override
# Conflicts:
#	libraries/AP_HAL_Linux/Scheduler.cpp
#	libraries/AP_HAL_Linux/Scheduler.h
2017-10-29 19:52:02 +11:00
Peter Barker 4cb981afa6 AP_HAL: make in_main_thread public, pure and virtual 2017-10-29 19:52:02 +11:00
Peter Barker f9f20970c9 DataFlash: resolve race conditions with IMU logging thread 2017-10-29 19:52:01 +11:00
Andrew Tridgell 8a4e84e099 AP_TECS: improved support for VTOL transitions 2017-10-21 18:50:50 +11:00
Andrew Tridgell 665cdee768 SITL: use thread for FlightAxis comms
this allows us to run SITL at a much higher framerate than RF can
provide, and results in the EKF being much happier
2017-10-21 18:50:40 +11:00
Andrew Tridgell 77702c18a5 HAL_SITL: don't run IO at more than 100Hz
save some CPU for faster frame rates
2017-10-21 18:50:36 +11:00
Andrew Tridgell 5b4e57414d AP_Airspeed: fixed airspeed autocal
don't use negative pressures
2017-09-22 18:28:32 +10:00
Mark Whitehorn a39cfda192 AP_Airspeed: eliminate airspeed positive bias 2017-09-22 18:28:07 +10:00
Rufus Wong add27e4b3b AP_Compass: Add break to prevent fallthrough of PIXRACER to PIXHAWK_PRO 2017-09-18 19:57:52 +10:00
Andrew Tridgell eafbdee118 AC_AttitudeControl: added a update_vel_controller_xy() API
this allows for just XY control of velocity for quadplanes
2017-09-08 15:58:59 +10:00