Commit Graph

3454 Commits

Author SHA1 Message Date
Jonathan Challinger
d7d8330303 Copter: loiter copter without accepting user input at end of auto mission 2014-10-20 10:46:14 +09:00
Jonathan Challinger
ef12ea4d3b Copter: fix indentation mistake in motors.pde 2014-10-20 10:43:53 +09:00
squilter
343a673762 Copter: reset ROI when requested, regardless of current MOUNT_MODE 2014-10-20 10:41:06 +09:00
Randy Mackay
a8c96946eb Copter: log DCM reported roll-pitch and yaw error 2014-10-18 20:09:39 +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
4e06970a1c Copter: disable OptFlow in SITL 2014-10-15 20:46:06 +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
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
28876b7ef6 Copter: log ground distance from optflow sensor 2014-10-15 16:35:51 +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
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
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
Jonathan Challinger
dd38ad6bbf Copter: Start logging on arming attempt, rather than on successful arm 2014-10-11 17:32:27 +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
Jonathan Challinger
3e1bffe9ab Copter: auto-disarm if land complete regardless of mode 2014-10-11 15:32:29 +09:00
Jonathan Challinger
d0d26b6878 Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check 2014-10-11 15:30:57 +09:00
Jonathan Challinger
a04ec79efa Copter: add land_complete to fence disarm check 2014-10-11 15:29:41 +09:00
Jonathan Challinger
450f988a21 Copter: remove DRIFT and SPORT from manual_flight_mode function 2014-10-11 15:27:45 +09:00
Randy Mackay
5f55944e43 Copter: AC3.2-rc12 release notes 2014-10-10 14:53:25 +09:00
Randy Mackay
d7cd745cf4 Copter: auto-trim start delays auto-disarm by 15sec
Fixes issue in which user only had 5 seconds after starting auto-trim to
raise the throttle before the auto-disarm would kick-in.
2014-10-09 22:43:44 +09:00
Randy Mackay
a8733ae8a8 Copter: support pre-flight calibration of gyro 2014-10-09 10:00:15 +09:00
Randy Mackay
9a0a83f404 Copter: report gyro unhealthy if failed calibration 2014-10-09 10:00:12 +09:00
Randy Mackay
128058362b Copter: pre-arm check that gyro cal succeeded 2014-10-09 10:00:09 +09:00
Randy Mackay
8eba55ed67 Copter: throttle zero debounce to separate function
Also initialise throttle_zero  to true on startup
Treat throttle less than zero as zero
2014-10-08 21:52:16 +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
Jonathan Challinger
96f50b7cd7 Copter: add throttle_zero state 2014-10-08 20:54:19 +09:00
Jonathan Challinger
fa9d10e59b Copter: log CURR message at 10hz 2014-10-08 20:49:36 +09:00
Randy Mackay
2f3f1a1d5e Copter: Rate Pitch IMAX default to 1000
Spotted by Jonathan Challinger, thanks!
2014-10-07 21:06:43 +09:00