Andrew Tridgell
838728348f
AP_AdvancedFailsafe: re-work for use as vehicle derived class
2016-08-16 12:55:50 +10:00
Andrew Tridgell
8163db1adb
AP_AdvancedFailsafe: cleanups for new naming
2016-08-16 12:55:50 +10:00
Andrew Tridgell
cef4635ad9
AP_AdvancedFailsafe: rename from APM_OBC
2016-08-16 12:55:50 +10:00
Andrew Tridgell
636188014d
APM_OBC: make the ENABLE flag control presence of the parameters
2016-08-16 12:55:50 +10:00
Andrew Tridgell
119e312cd3
AP_BoardConfig: wait up to 0.4s for safety to be off on boot
2016-08-16 12:53:34 +10:00
Andrew Tridgell
dddaded8d4
HAL_PX4: fixed a race condition in force_safety_on/off
...
the status update from IO may not have come through if we force safety
on and then off in quick succession, such as for plane mixer load
this forces the ioctl to be sent at least once
2016-08-16 12:53:34 +10:00
Andrew Tridgell
1fa137caad
GCS_MAVLink: added handle_preflight_reboot()
2016-08-16 12:53:33 +10:00
Lee Hicks
51e8d8a294
AP_GPS: Don't send config blob to GPS unless AUTO_CONFIG=1
...
All GPS types will recieve startup up blob config. For
some recievers this will cause them to hang. This commit
only allows sending of blobs if AUTO_CONFIG=1. Fixes #2622
2016-08-16 10:56:37 +10:00
Lee Hicks
7c3b8dceb9
AP_GPS: Fixed GPS serial speeds starting at 1 instead of 0
...
The counting of this will increment the counter before
selecting the baud speed, skipping the first baud rate.
2016-08-16 10:56:36 +10:00
Lee Hicks
3dd4f30460
AP_GPS: Adding 19200 as serial speed for GPS
...
APM supports baud speeds of 19200, but GPS baud rates
don't support it. This commit adds it to follow APM supported
baud rates.
2016-08-16 10:56:36 +10:00
Leonard Hall
29d4790fc7
AC_AttControl: reduce max_rate_step based on hover throttle
...
This changes reduces AutoTune's twitch size based on the hover throttle
This method is only used by AutoTune
2016-08-12 22:29:53 +09:00
Peter Barker
8d253dec8e
DataFlash: support for mavlink SENSOR message
2016-08-11 17:48:44 -03:00
Grant Morphett
30bcea73cc
PX4: Added detection for MPU6000 on px4slim.
2016-08-11 08:39:16 +10:00
LukeMike
38150a5544
AP_BoardConfig: defined and managed VRBRAIN board type and all functions for sensors startup
2016-08-11 07:52:40 +10:00
LukeMike
e6c8653302
AP_IRLock_PX4: enabled sensor driver startup on bus2 if don't start on bus1
2016-08-11 07:52:39 +10:00
LukeMike
316e5acaec
AP_OpticalFlow_PX4: enabled sensor driver startup for all VR boards
2016-08-11 07:52:39 +10:00
Andrew Tridgell
38ebe582cc
AP_BoardConfig: fixed for VRBrain build
...
needs access to driver start function
2016-08-10 20:43:03 +10:00
Andrew Tridgell
eaa88b1223
AP_BoardConfig: FMUv1 does not have pwm_input driver
2016-08-10 19:54:01 +10:00
Andrew Tridgell
39676d686c
AP_BoardConfig: FMUv1 does not have an L3GD20
2016-08-10 19:54:01 +10:00
Andrew Tridgell
7da89c611d
AP_BoardConfig: use a STATUSTEXT to show better in MP
...
this makes it easier to see why it won't boot
2016-08-10 19:54:01 +10:00
Andrew Tridgell
78b2924c00
AP_OpticalFlow: auto-start px4flow driver if enabled
2016-08-10 19:54:01 +10:00
Andrew Tridgell
74182b6b3d
AP_Notify: auto-start oreoled driver if enabled
2016-08-10 19:54:00 +10:00
Andrew Tridgell
e24cebec33
AP_IRLock: auto-start batt_smbus driver if enabled
2016-08-10 19:54:00 +10:00
Andrew Tridgell
d05a08ff4d
AP_BattMonitor: auto-start batt_smbus driver if enabled
2016-08-10 19:54:00 +10:00
Andrew Tridgell
0d59935847
AP_BoardConfig: fixup for merge after VRBrain changes
2016-08-10 19:54:00 +10:00
Andrew Tridgell
77bee322e9
AP_BoardConfig: support the PHMINI as BRD_TYPE=5
2016-08-10 19:54:00 +10:00
Andrew Tridgell
61e15af3ca
AP_BoardConfig: added BRD_TYPE
...
this allows for PH2SLIM support with BRD_TYPE=6
2016-08-10 19:54:00 +10:00
Andrew Tridgell
7c5171e9b9
AP_BoardConfig: set default temperature on PH2 to 60
2016-08-10 19:54:00 +10:00
Andrew Tridgell
7806aa4274
AP_BoardConfig: moved optional sensors to the sensor startup
...
this makes startup much faster
2016-08-10 19:54:00 +10:00
Andrew Tridgell
36e0c7229a
AP_BoardConfig: implement PX4 driver start in C++
...
this brings driver startup into AP_BoardConfig, so we can start to
make driver startup depend on parameters
2016-08-10 19:53:59 +10:00
Andrew Tridgell
4643d6f314
AP_BoardConfig: break out PX4 setup from main code
...
refactoring in preparation for larger changes
2016-08-10 19:53:59 +10:00
Andrew Tridgell
e82384990d
AP_BoardConfig: moved px4 variables to px4 structure
...
refactoring in preparation for larger changes
2016-08-10 19:53:59 +10:00
Andrew Tridgell
270fa95a8d
AP_Morors: scale colyaw to match previous behaviour
...
this was missed in the motor scaling changes. Thanks to Rob for
noticing this.
2016-08-10 07:58:06 +10:00
Tom Pittenger
a66e248f5c
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
2016-08-08 00:12:42 -07:00
Tom Pittenger
ce7b766d8b
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
2016-08-08 00:02:42 -07:00
Tom Pittenger
ae46c38ff7
AP_Airspeed: pass in max airspeed via function call instead of using aparm
2016-08-08 00:02:42 -07:00
Randy Mackay
ad697243b3
AP_MotorsMulticopter: initialise some members
...
This resolves some Covarity warnings at the cost of a small amount of flash
2016-08-08 13:31:30 +09:00
Randy Mackay
3c87f67212
AC_PrecLand: initialise some members
...
This was not a real problem but it resolves some Covarity warnings
2016-08-08 13:31:28 +09:00
Leonard Hall
50b694444b
AC_AttControl: correct method comments
...
No functional change
2016-08-08 11:24:42 +09:00
priseborough
e6f36f04db
AP_NavEKF2: Enable automatic use of range finder height
...
The EK2_RNG_USE_HGT parameter sets the height (expressed as a percentage of the maximum range of the range finder as set by the RNGFND_MAX_CM parameter) below which the range finder will be used as the primary height source when the vehicle is moving slowly.
When using a height reference other than GPS, the height datum can drift due to air pressure changes if using baro, or due to terrain height changes if using range finder as the primary height source. To ensure that a consistent height datum is available when switching between altitude sources, the WGS-84 height estimate of the EKF's local positi norigin is updated using a
single state Bayes estimator,
If rngfinder or gps height data is lost whilst being used, there will be a fall-back to baro data.
2016-08-08 10:56:44 +09:00
Tom Pittenger
1586abab8d
Revert "AP_Airspeed: Converted library to be stand-alone from APM:Plane."
...
This reverts commit 5439257236
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
82777873af
Revert "APM_Control: Convert references to AP_Airspeed."
...
This reverts commit cc5a2417a6
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
e5bd23e34a
Revert "AP_TECS: Convert references to AP_Airspeed."
...
This reverts commit 09d53eaeca
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
44037c13a1
Revert "AP_Vehicle: Removed unused airspeed_min and airspeed_max as now part of AP_Airspeed."
...
This reverts commit bf7ab052c1
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
8dad05d12e
Revert "Airspeed: store reference in libraries and populate it"
...
This reverts commit c090ba2257
.
2016-08-07 17:54:24 -07:00
LukeMike
5987cc273f
AP_HAL_VRBRAIN: added some new modules for I2C wrapper
2016-08-07 20:31:52 +10:00
LukeMike
7ee8898948
AP_BoardConfig: updated defines for VRBRAIN
2016-08-07 20:31:52 +10:00
LukeMike
95ae69eb1c
VRBRAIN /AP_BoardConfig: changed definition of PWM_SERVO_MODE_12PWM only for VRBRAIN
2016-08-07 20:31:52 +10:00
LukeMike
024d3311b3
VRBRAIN / AP_BoardConfig: enabled PWM configuration and safety management for all VirtualRobotix boards
2016-08-07 20:31:51 +10:00
LukeMike
9f8b66758c
VRBRAIN / AP_OpticalFlow: enabled OpticalFlow_PX4 for all VirtualRobotix boards
2016-08-07 20:31:51 +10:00