Commit Graph

13904 Commits

Author SHA1 Message Date
Jonathan Challinger 70845882a7 AP_Math: fix up rotation test suite 2014-10-20 06:24:27 +11:00
Jonathan Challinger 6076f3fa22 AP_NavEKF: Quaternion::to_euler now uses references instead of pointers 2014-10-20 06:24:25 +11:00
Jonathan Challinger 1f7e393e38 AP_Math: refactor quaternion library 2014-10-20 06:24:22 +11:00
Andrew Tridgell baad65bafc Replay: update for new copter ATTITUDE message 2014-10-19 20:12:12 +11:00
Andrew Tridgell ef0eca4835 AP_Airspeed: fixed airspeed in Replay 2014-10-19 19:42:15 +11:00
Andrew Tridgell fce20b24c2 Replay: fixed printf format 2014-10-19 19:41:57 +11:00
Andrew Tridgell 7db0244dac AP_Compass: added some comments 2014-10-19 17:02:45 +11:00
Jonathan Challinger 9054dd3f9a AP_Compass: use apply_correction_function to eliminate duplication 2014-10-19 17:02:45 +11:00
Randy Mackay 677f6cce7f AP_Motors: reduce slow-start increment for fast CPUs 2014-10-18 20:54:08 +09:00
Randy Mackay a8c96946eb Copter: log DCM reported roll-pitch and yaw error 2014-10-18 20:09:39 +09:00
Randy Mackay 542ec29e49 Parachute: set servo or relay to off position on every update
This resolves the issue of the parachute servo's position not being
initialised to the off position due to an ordering problem of the
auxiliary servos being initialised after the parachute object.
2014-10-18 17:26:23 +09:00
Randy Mackay a559a12ea2 Copter: remove LOG_FROM_STARTUP define
This compile-time method is obsolete now that we have the logging while
disarmed feature
2014-10-17 16:40:18 +09:00
Randy Mackay ebcf582f66 Copter: add NearlyAll-AC315 LOG_BITMASK description 2014-10-17 16:40:13 +09:00
Randy Mackay dcf72e9b78 Copter: remove extra in_mavlink_delay from should_log function
Also return false when logging disabled
2014-10-17 16:32:39 +09:00
Andrew Tridgell c3d839456b Copter: support logging while disarmed 2014-10-17 16:29:59 +09:00
Andrew Tridgell 874efe95a1 Copter: fixed parameter path
fixes build of parameters
2014-10-17 15:54:53 +11:00
Randy Mackay 27b73fa209 Copter: enable Optflow by default for Pixhawk only 2014-10-16 21:17:54 +09:00
Randy Mackay 6becb1a722 Copter: add DCM check of yaw error
Triggers an "ekf" failsafe if the DCM yaw error is > 60deg
2014-10-16 17:22:14 +09:00
Randy Mackay b0e6931ab0 Copter: add DCM_CHECK_THRESH parameter 2014-10-16 17:22:11 +09:00
Randy Mackay b96e123480 Copter: remove unused Log_Write_IMU function 2014-10-16 15:25:34 +09:00
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