Randy Mackay
7bd8d48809
Copter: fence breach causes disarm if landed
...
Previously it would only disarm if the throttle was also at zero.
Pair programmed with Tridge
2014-10-16 14:09:02 +09:00
Andrew Tridgell
26f7ab49e3
Copter: fixed some build warnings
2014-10-16 14:04:11 +09:00
Randy Mackay
eed6a1ce61
OptFlow: fix example sketch so it compiles
2014-10-16 13:52:07 +09:00
Randy Mackay
4e06970a1c
Copter: disable OptFlow in SITL
2014-10-15 20:46:06 +09:00
Randy Mackay
a476a914b0
OptFlow_PX4: check healthy before updating
2014-10-15 16:36:40 +09:00
Randy Mackay
f504ea7b30
OptFlow_ADNS3080: check healthy before updating
2014-10-15 16:36:38 +09:00
Randy Mackay
aa3e34a44a
Copter: move update_optflow to sensors.pde
...
Also slightly shorten function name
2014-10-15 16:36:36 +09:00
Randy Mackay
d238f48dda
OptFlowPX4: fix compile error for APM
2014-10-15 16:36:33 +09:00
Randy Mackay
67b7b2d667
Copter: enable optflow by default for Pixhawk
2014-10-15 16:36:31 +09:00
Randy Mackay
7b07b575cf
Copter: pilot override used immediately in OF_Loiter
...
Replace some hard coded numbers with definitions
2014-10-15 16:36:28 +09:00
Randy Mackay
a9cfbb71b8
OptFlowPX4: use ORB to pull data from sensor
...
This change is required because PX4Firmware has changed the method used
to pull data from the sensor.
2014-10-15 16:36:25 +09:00
Randy Mackay
28876b7ef6
Copter: log ground distance from optflow sensor
2014-10-15 16:35:51 +09:00
Randy Mackay
ec4581b35a
OptFlow: add ground_distance_m
2014-10-15 16:35:48 +09:00
Randy Mackay
b2e167f9a5
Copter: Of_Loiter uses sensor velocity instead of integrated position
2014-10-15 16:35:45 +09:00
Randy Mackay
3201a8dbca
Copter: integrate optflow_enable param move to optflow class
2014-10-15 16:35:43 +09:00
Randy Mackay
717e63f47a
Copter: instantiate optflow on Pixhawk
...
Run sensor reads from scheduler
2014-10-15 16:35:40 +09:00
Randy Mackay
021485fffc
Copter: simpler optflow logging
...
Removed of_loiter control output from message
add TimeMS to OF dataflash log msg
2014-10-15 16:35:38 +09:00
Randy Mackay
765ce2f6ca
Copter: optflow parameters moved to optflow class
2014-10-15 16:35:36 +09:00
Randy Mackay
4b0548973a
OptFlow: add PX4Flow support
2014-10-15 16:35:33 +09:00
Randy Mackay
3c4be75487
OptFlow: reorganise ADNS3080 to simplified interface
2014-10-15 16:35:31 +09:00
Randy Mackay
b64f9ed964
OptFlow: rename and restructure OpticalFlow class
...
AP_OpticalFlow.h becomes simply a file that includes all other optical
flow header files.
OpticalFlow class simplified to only return surface quality, raw output
and velocity vector.
2014-10-15 16:35:29 +09:00
Randy Mackay
4bdd814dcc
Build: enable px4flow driver on Pixhawk
2014-10-15 16:35:26 +09:00
Andrew Tridgell
4ad643b233
AP_AHRS: use a common function for updating the CD values
...
this ensures the wrapping of yaw is consistent between the 3 use cases
2014-10-15 13:18:08 +11:00
Andrew Tridgell
eec5cd5add
AP_AHRS: restore DCM attitude before update()
...
The DCM drift correction code uses the current attitude to calculate
error values to update its gyro drift correction. If we were using EKF
then without this patch the DCM code running as an alternative AHRS
source would be using the EKF attitude for calculating the error
value, leading to very bad gyro drift estimation
2014-10-15 11:15:33 +11:00
Andrew Tridgell
63c06ea2af
AP_AHRS: fixed calls to DCM in parent class
...
use_compass() and reset() are common to AP_AHRS_DCM and
AP_AHRS_NavEKF. As AP_AHRS_NavEKF is a child of AP_AHRS_DCM, when we
call use_compass() from within AP_AHRS_DCM we actually end up calling
AP_AHRS_NavEKF::use_compass().
This has the effect of disabling the compass in DCM when EKF is active
and EKF has decided not to use the compass. That means that the DCM
yaw (and in fact the whole attitude) can get badly off while EKF is
enabled, making DCM an ineffective fallback if EKF fails.
The fix is to call the specific class versions of use_compass() and
reset()
2014-10-15 10:12:50 +11:00
Andrew Tridgell
6e0e56a6ef
Replay: fixed loading of users parameters and parameter override
...
use compass.set_offsets() to avoid trying to write to storage
2014-10-15 09:17:22 +11:00
Andrew Tridgell
b437977547
AP_Compass: added set_offsets() interface
...
this will be used by Replay to prevent the need for saving parameters
2014-10-15 09:16:31 +11:00
Randy Mackay
6690aff305
AC_Motors: param description addition
2014-10-14 12:43:22 +09:00
Randy Mackay
d09faa0015
BattMon: minor param description additions
2014-10-14 12:42:57 +09:00
Randy Mackay
45e0e48e54
BattMon: minor param description update
2014-10-14 12:42:45 +09:00
Randy Mackay
3a81732721
Baro: minor param description updates
2014-10-14 12:42:27 +09:00
Randy Mackay
57229345e0
Copter: minor param description updates
2014-10-14 12:42:14 +09:00
Randy Mackay
6a225865ce
Copter: accept velocity requests in Auto-Guided mode
2014-10-14 11:27:34 +09:00
Randy Mackay
c636ea9101
Copter: support SET_POSITION_TARGET messages
2014-10-13 21:55:17 +09:00
Randy Mackay
992ce9b69c
Copter: remove nav_guided structure
...
This has been replaced by guided_limit structure
2014-10-13 21:40:26 +09:00
Randy Mackay
6659473420
Copter: support GUIDED_ENABLE and GUIDED_LIMITS
...
Split of NAV_GUIDED into these two command necessitated guided mode
store the limits
2014-10-13 21:40:24 +09:00
Randy Mackay
be1621877f
Mission: support GUIDED_ENABLE and GUIDED_LIMITS
...
This replaces the ardupilot only NAV_GUIDED command.
Also remove support for NAV_VELOCITY mission command which will be
replaced by SET_POSITION_TARGET non-mission command.
2014-10-13 21:40:23 +09:00
Randy Mackay
e5c3c306bd
Copter: remove unused pilot_yaw_override flag
2014-10-13 21:40:21 +09:00
Randy Mackay
8997c224e2
Copter: enable Guided velocity controller for Pixhawk
2014-10-13 21:40:20 +09:00
Andrew Tridgell
3c7cc5f40c
AP_RangeFinder: auto-update PX4 ll40ls max/min distance
...
this allows the range of the Lidar to be set by the user using
RNGFND_MAX_CM and RNGFND_MIN_CM
2014-10-13 19:07:38 +11:00
Andrew Tridgell
b688577825
autotest: update compiler
2014-10-13 16:07:32 +11:00
Andrew Tridgell
4c984d9331
Plane: start preparing for 3.1.2
2014-10-13 10:25:53 +11:00
jschall
c5e85956b1
Update CONTRIBUTING.md
2014-10-12 00:11:30 -07:00
jschall
c3b695a336
Update CONTRIBUTING.md
2014-10-11 23:46:42 -07:00
Jonathan Challinger
dd38ad6bbf
Copter: Start logging on arming attempt, rather than on successful arm
2014-10-11 17:32:27 +09:00
Randy Mackay
67a38be7ce
Tracker: update version to 0.2
2014-10-11 17:11:07 +09:00
Randy Mackay
32d8e5c8d4
Tracker: only run servo updates when safety is off
...
Largely removes the sudden jerk that occurs when the user pushes the
safety switch
2014-10-11 17:06:29 +09:00
Randy Mackay
9d4107f1fc
Copter: allow arming in GUIDED only from GCS
...
Also changed mode_allows_arming function to accept arming_from_gcs param
Also remove AUTOTUNE from arming list
2014-10-11 16:05:32 +09:00
Jonathan Challinger
2b0cffda29
Copter: move all arm check logic into arm_checks
2014-10-11 15:34:12 +09:00
Jonathan Challinger
cc56a972d0
Copter: add mode_allows_arming function
2014-10-11 15:34:10 +09:00