Commit Graph

16060 Commits

Author SHA1 Message Date
Jaime Machuca 3c00b0a0a8 Copter: ch7/ch8 for lost copter sound 2015-04-13 17:44:39 +09:00
Jaime Machuca 043d24f03a Notify: add Lost Copter tone 2015-04-13 17:42:07 +09:00
Randy Mackay a20a89181c Copter: enable CPU failsafe after initialisation
This removes a false positive during startup that lead to an error
appearing at the start of the dataflash log
2015-04-13 15:58:13 +09:00
Andrew Tridgell 82f6bb3c17 autotest: use common frame time handling 2015-04-13 10:08:12 +10:00
Andrew Tridgell 7f89f73ad1 autotest: use simulation time for all time delays 2015-04-13 10:08:12 +10:00
Andrew Tridgell d2a188c55d autotest: run plane test at maximum speed 2015-04-13 10:08:12 +10:00
Andrew Tridgell 9fdb74e006 autotest: run JSBSim in lock step mode
this requires an updated JSBSim
2015-04-13 10:08:11 +10:00
Andrew Tridgell e8c115b9c3 autotest: check for the right version of JSBSim 2015-04-13 09:06:21 +10:00
Andrew Tridgell 370edde286 autotest: no need for special SIGCONT handling any more 2015-04-13 06:08:35 +10:00
Andrew Tridgell 0695277773 HAL_SITL: use pthread barriers for synthetic clock synchronisation
this avoids siganls and provides a race free way of keeping time in
lock step
2015-04-13 06:05:55 +10:00
Randy Mackay 83c966eaa7 Copter: update 3.3-rc1 release notes 2015-04-12 09:41:23 +09:00
Randy Mackay 5a4039d99c Copter: version to APM:Copter 3.3-rc1 2015-04-12 09:21:44 +09:00
Randy Mackay df59a912d1 Copter: 3.3-rc1 release notes 2015-04-12 09:21:22 +09:00
Paul Riseborough e79ccf1fcc AP_NavEKF: Fix bug allowing terrain to be above vehicle position
The terrain state and vehicle state need to be compared at the same time horizon.
2015-04-11 15:51:08 +09:00
Paul Riseborough 6d58c63c4c AP_NavEKF: Prevent potential divide by zeros in OF fusion 2015-04-11 15:51:03 +09:00
Paul Riseborough 89142f1c5f AP_NavEKF: Prevent inadvertent use of DCM roll and pitch estimates.
the use of roll and pitch from the AHRS object is bad because that object could be returning estimates from the backup DCM algorithm.
2015-04-11 15:19:05 +09:00
Randy Mackay 56d2306a18 BattMon_SMBus_PX4: read capacity 2015-04-11 14:10:22 +09:00
Randy Mackay c6440a48b3 BattMon_Backend: add init and set_capacity methods 2015-04-11 14:10:19 +09:00
Randy Mackay 11576a0f1e Copter: fix bitmask for use with SET_POSITION_TARGET
Thanks to vooon for spotting this
2015-04-11 11:57:41 +09:00
Randy Mackay 4b5d07252e Copter: ekf_check ok if optflow pos available 2015-04-10 11:08:21 +09:00
Randy Mackay 52f7186cbf Copter: pre-arm check primary compass health
Previously we would check the 1st compass which might not necessarily be
the primary compass
2015-04-10 11:08:18 +09:00
Paul Riseborough 9268024094 AP_NavEKF: Update default parameters for copter optical flow fusion 2015-04-10 11:08:11 +09:00
Paul Riseborough 4fbdab27ff AP_NavEKF: Use range finder for primary hgt ref in opt flow mode
Falls back to baro if range finder is unavailable
Adds parameter enabling user to select which height source (baro or range finder) will be used during optical flow nav.
2015-04-10 11:08:07 +09:00
Randy Mackay 6834b5943e Copter: pre-arm alt disparity check only if using baro
We should probably consolidate the baro pre-arm and arming checks into a
single check_baro function but the difference in the error message stops
me from immediately doing that
2015-04-10 11:08:02 +09:00
Paul Riseborough 1d7cb25c17 Copter : Update pre-arm and arm checks using EKF health status
Bypass alt disparity check when doing ground relative navigation using range finder height
Add check of EKF health status to indicate when EKF is waiting to complete checks
2015-04-10 11:07:50 +09:00
Paul Riseborough ff9917d338 AP_AHRS: Fix bug preventing EKF from initialising 2015-04-10 11:07:42 +09:00
Paul Riseborough d618c55e2f AP_NavEKF: Improved handling of noisy GPS speed accuracy data 2015-04-10 11:07:34 +09:00
Paul Riseborough 53358a4e10 AP_OpticalFlow: Add parameter to compensate for flow sensor yaw angle
AP_OpticalFlow: update parameter name
2015-04-10 11:07:31 +09:00
Paul Riseborough cab171b580 AP_InertialNav: Add method to return EKF height above ground estimate
AP_InertialNav: Add validity flag to height above ground estimate
2015-04-10 11:07:27 +09:00
Paul Riseborough e98edaa6cb AP_NavEKF: Return more accurate validity status for height above ground 2015-04-10 11:07:24 +09:00
Paul Riseborough 586e4a7d2b AP_NavEKF: Add Matlab derivations and simulations behind small EKF 2015-04-10 11:07:21 +09:00
Randy Mackay fea7632eac Copter: save EKF learned compass to primary compass 2015-04-10 11:07:18 +09:00
Paul Riseborough 2406e26ab4 Copter : Save EKF learned compass offsets on disarm
Requires compass learning to be enabled in the compass parameters

Copter: fix compass offsets patch
2015-04-10 11:07:13 +09:00
Leonard Hall 70fbb3c67e Copter: RATE_RLL_P param def max to 0.30
same for RATE_PIT_P
2015-04-09 20:19:57 +09:00
Jonathan Challinger dc5bdd5ad8 AP_AHRS: use filtered INS output to compute _accel_ef_blended 2015-04-09 20:19:56 +09:00
Leonard Hall 2bf8f21b7a Copter: roll, pitch rate IMAX to 2000 2015-04-09 20:19:56 +09:00
Randy Mackay a095a8c3a1 AC_PID: more protection against NaN and Inf 2015-04-09 20:19:55 +09:00
Randy Mackay bdfe8bbc54 AC_AttControl_Heli: remove RATE_RP_MAX, RATE_Y_MAX 2015-04-09 20:19:54 +09:00
Leonard Hall afcd1c6ec3 AC_AttitudeControl: sqrt controller on Stab 2015-04-09 20:19:43 +09:00
Leonard Hall ae77c18a19 AC_PID: Protect against NaN and INF 2015-04-09 18:30:12 +09:00
Andrzej Zaborowski 132cdc4916 Motors: Use _motor_to_channel_map in tricopter consistently.
In AP_MotorsTri.cpp the AP_MOTORS_MOT_1, _2 and _4 constants are
always mapped to actual output channels through _motor_to_channel_map
while the _CH_TRI_YAW is not, but there were a few inconsistencies
in this that could lead to things like PWM min and max values being
set on wrong channels.

It looks like all in all _motor_to_channel_map being in PROGMEM
probably doesn't help save memory and I'm not sure how useful it is
in the first place but regardless the usage should be consistent.
2015-04-09 11:43:22 +09:00
Randy Mackay d589c591a6 Copter: only log home when first set
We should also log home when we arm
2015-04-09 10:57:08 +09:00
Randy Mackay b0c777259f Copter: update home constantly while disarmed 2015-04-09 10:57:06 +09:00
Randy Mackay c3bdb9a13e Copter: update inertial alt only after home is set 2015-04-09 10:57:04 +09:00
Randy Mackay 2bec00e1c5 Copter: set ahrs home from ekf location 2015-04-09 10:57:02 +09:00
Randy Mackay e5ddd276fd Copter: remove baro init on arming 2015-04-09 10:56:59 +09:00
Randy Mackay 558018d839 InertialNav: add get_location method 2015-04-09 10:56:57 +09:00
Tom Pittenger 9ecbd0e30f AP_L1_Control: fixed uTurn-wobble
When performing a u-turn in AUTO (waypoints are 180deg turn from each other) sometimes the aircraft can't decide to turn left or right and wobbled back and forth a couple times. There was existing code to solve this but it was not executing all the time like when in LOITER mode. Frankly, I don't understand the criteria that was required to make it execute and i suspect there is still a gremlin in that logic but just executing the check all the time makes prevents the wobble behavior.
2015-04-08 15:21:02 -07:00
Jonathan Challinger 6e8008ab69 AP_SerialManager: use protocol_match in find_baudrate 2015-04-08 09:14:31 -07:00
Randy Mackay 11d0801c99 SITL: fix copter-avc test 2015-04-08 15:24:48 +09:00