Commit Graph

335 Commits

Author SHA1 Message Date
Randy Mackay
e464909ddf Copter: position_ok true when EKF predicts it will be ok
This resolves the chicken and egg problem of the EKF filter status's
position flags not becoming true until after the vehicle has been armed
at least once.
2015-01-22 14:39:52 +09:00
Randy Mackay
fd0b82f669 Copter: add optflow_position_ok and use for loiter
This allows entering Loiter flight mode with only optical flow based
position
2015-01-22 14:39:47 +09:00
Randy Mackay
199dc3454d Copter: replace GPS_ok with position_ok
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
2015-01-22 14:39:45 +09:00
Andrew Tridgell
cb5552f0e3 Copter: fixed build with optflow disabled 2015-01-04 12:29:22 +11:00
Andrew Tridgell
788bb8ab9f Copter: make optflow available to AHRS 2015-01-03 14:16:34 +11:00
Andrew Tridgell
b6c06ab691 Copter: fix build with new mavlink repo 2014-11-18 11:20:04 +11:00
Randy Mackay
0ac3267d52 Copter: reset ahrs gyro drift after gyro calibration 2014-10-28 20:25:36 +09:00
Andrew Tridgell
4c0351a76a Copter: convert to new AP_InertialSensor API 2014-10-24 12:10:38 +11: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
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
Randy Mackay
3201a8dbca Copter: integrate optflow_enable param move to optflow class 2014-10-15 16:35:43 +09:00
Jonathan Challinger
8e3d163c3d Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero 2014-10-08 20:54:24 +09:00
Randy Mackay
e7753223ba Copter: low battery msg to severity high 2014-09-21 17:33:19 +09:00
Randy Mackay
9bbf40109e Copter: add LOG_FROM_STARTUP definition
Uncommenting this line in APM_Config.h will start logging as soon as the
board starts up instead of waiting for the vehicle to be armed
2014-09-20 12:23:47 +09:00
Randy Mackay
b9977a1115 Copter: add land_complete_maybe flag 2014-09-19 16:43:15 +09:00
Randy Mackay
14d80910ec Copter: integrate EPM ver2 2014-09-17 21:13:35 +09:00
Randy Mackay
bf18fb896a Copter: send extended status to GCS only after initialisation 2014-09-09 22:17:46 +09:00
Andrew Tridgell
90f306cd3c Copter: set GPS non-blocking
the new GPS driver only ever needs a non-blocking port
2014-08-19 10:08:17 +10:00
Randy Mackay
7686660c73 Copter: use baro healthy() 2014-08-14 16:03:23 +09:00
Andrew Tridgell
3ccac6736d Copter: rename TELEM2_PROTOCOL to SERIAL2_PROTOCOL
this matches SERIAL2_BAUD
2014-07-30 14:49:10 +10:00
Matthias Badaire
147e91877e Copter: Add SERIAL2_PROTOCOL for GCS and FRsky telemtry
this allows selection of protocol type on telem2. The default is
MAVLink, but can be selected as FrSky protocol
2014-07-29 17:08:19 -07:00
Randy Mackay
df4bc3d617 Copter: pass motor_mask to ServoRelayEvents 2014-07-26 16:33:26 +09:00
Randy Mackay
7bda6cbadf Copter: integrate EKF check
Check runs at 10hz
Log ekf check failures and ekd failsafes
2014-07-22 23:13:25 +09:00
Andrew Tridgell
49954a3a61 Copter: use sensors from board subtypes 2014-07-14 09:44:35 +10:00
Randy Mackay
7f9cd20377 Copter: set UARTs non-blocking at end of initialisation
Previously we were setting to non-block after arming but this reduce the
chance of bumping into a NuttX USB driver issue that can cause the uart
to become unresponsive and also makes Copter consistent with Plane
2014-07-11 15:27:29 +09:00
Andrew Tridgell
a4b9b989b7 Copter: convert to new AP_RangeFinder API 2014-07-08 15:08:18 +10:00
Randy Mackay
db000f2287 Copter: remove setting rate and thr D term filters 2014-05-29 17:40:24 +09:00
Robert Lefebvre
5eb206e6bb Copter: Add 'handle' to allow #define updating of AC_PID filter rate for Throttle Accel. 2014-05-29 17:39:16 +09:00
Robert Lefebvre
df1de4260d Copter: Set Rate PID D-term filter rates on initialization. 2014-05-29 17:39:12 +09:00
Andrew Tridgell
a55c511f63 Copter: updates for new GCS_MAVLink API 2014-05-21 12:45:25 +10:00
Andrew Tridgell
836b365bc8 Copter: use setup_uart() 2014-05-16 11:45:11 +10:00
Andrew Tridgell
e07b70de4e Copter: set AHRS vehicle class 2014-04-21 18:13:13 +10:00
TeamOSEOLA
7dda8afd60 Copter: Fixed GPS_ok() status checking
Fixed the GPS_ok() so that TRUE is returned in the cases of DGPS and Assisted GPS fixes, not just 3D fix.
2014-04-11 09:01:35 +10:00
Andrew Tridgell
640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Andrew Tridgell
11e5b95878 Copter: updates for GPS changes 2014-03-24 12:04:46 +11:00
Randy Mackay
b718b9070a Copter: call mission.init during startup 2014-03-19 12:11:47 +09:00
Randy Mackay
9f03e21f81 Copter: remove low-level handling of mission cmds
Now handled by AP_Mission
2014-03-19 12:10:04 +09:00
Andrew Tridgell
43d009e3a5 Copter: set 2nd GPS as secondary 2014-03-08 21:48:18 +11:00
Andrew Tridgell
37394b30ee Copter: added support for 2nd GPS 2014-02-26 09:40:29 +11:00
Andrew Tridgell
86afd13f12 Copter: use GPS AIRBORNE_4G 2014-02-15 05:48:17 +11:00
Andrew Tridgell
24f2ac20de Copter: removed HIL_MODE_ATTITUDE
this really can't work any more, as AHRS can't support it
2014-02-15 05:29:46 +11:00
Randy Mackay
b0673d693b Copter: move set_mode, to flight_mode.pde 2014-02-15 05:27:47 +11:00
Randy Mackay
0e0d02cd6d Copter: remove unused init from sport mode 2014-02-15 05:27:46 +11:00
Randy Mackay
aec67cd3df Copter: integrate control_autotune 2014-02-15 05:27:44 +11:00
Randy Mackay
d90d3d8dca Copter: integrate control_flip 2014-02-15 05:27:44 +11:00
Randy Mackay
ec989c720c Copter: integrate heli_control_acro 2014-02-15 05:27:43 +11:00
Randy Mackay
922dff0514 Copter: integrate heli_control_stabilize 2014-02-15 05:27:43 +11:00
Randy Mackay
ef666c73ab Copter: remove Position mode 2014-02-15 05:27:42 +11:00
Randy Mackay
37bde3406d Copter: remove comments 2014-02-15 05:27:41 +11:00