Commit Graph

2376 Commits

Author SHA1 Message Date
Randy Mackay 7c78936bc5 Copter: land by default at end of RTL 2013-08-30 10:34:23 +09:00
Craig3DRobotics 6568234018 Copter: Corrected SR0 & SR3 parameter descriptions 2013-08-29 12:19:04 -07:00
Randy Mackay 81074ebb3c Copter: update Y6 defaults 2013-08-28 13:05:01 +09:00
Randy Mackay 6052017b13 Copter: allow override of auto throttle mode 2013-08-28 11:45:07 +09:00
Randy Mackay 45aeb1a921 Copter: split up loiter into 4 steps
Reduces disruption to the main loop but also introduces a delay of 30ms
to navigation output
2013-08-28 11:33:10 +09:00
Andrew Tridgell d5e28e72cc Copter: support new RADIO_STATUS msg 2013-08-24 17:59:13 +10:00
Randy Mackay 7159c539e6 Copter: skip mode change checks when disarmed
Note: there will be a follow up commit to move the checks into a
separate function so they can be called just before arming
2013-08-22 13:25:27 +09:00
Randy Mackay d8eb7fb82f Copter: remove x100 from IMAX definitions 2013-08-19 22:38:34 +09:00
Andrew Tridgell a06f8a156d Copter: fixed PX4 build 2013-08-19 21:12:41 +10:00
Randy Mackay fd047cc968 Copter: AUTO ch7/ch8 option 2013-08-19 18:09:23 +09:00
Randy Mackay 2696e160e6 Copter: surface tracking improvement
Separate correction speeds for pilot input vs altitude-above-ground
errors to allow slower correction to sonar signals.
Change SONAR_GAIN parameter to be altitude error -> desired speed.  This
means it should be set 10x larger than before.
Replace hard-coded sonar cut-off percentage of 70% with
SONAR_RELIABLE_DISTANCE_PCT.
Reduce sonar cut-off percentage to 60%.
Add desired sonar altitude to dataflash log's CTUN message.
2013-08-19 09:52:59 +09:00
Randy Mackay 88332b4acb Copter: revert to 3 element sonar's mode filter 2013-08-19 09:47:48 +09:00
Randy Mackay 3a5a15a15f Copter: allow CH6 tuning of sonar gain 2013-08-18 15:44:54 +09:00
Randy Mackay fe56ac3839 Copter: only allow auto_trim in STABILIZE 2013-08-15 21:11:23 +09:00
Randy Mackay 69da4e99f8 Copter: add ch7/ch8 Auto and Land option
CH7/CH8 high initiates AUTO mode, low initiates Land.  Ideally high
would be a new take-off flight mode so this may need some rework.
2013-08-15 16:08:33 +09:00
Randy Mackay ac620e2140 Copter: Loiter and AltHold won't breach alt fence 2013-08-15 16:06:27 +09:00
Randy Mackay 6a2daf1a33 Copter: reduce sonar sensitivity to spikes 2013-08-15 16:04:17 +09:00
Randy Mackay 34e874282e Copter: only check hdop when circular fence enabled 2013-08-15 16:03:57 +09:00
Randy Mackay b40cd07ce9 Copter: switch to LOITER when exiting mission 2013-08-15 13:09:57 +09:00
Randy Mackay d000967a76 Copter: pre-arm check for gps hdop < 2 2013-08-15 13:06:36 +09:00
Randy Mackay 8b79798e8d Copter: Leonard's sport fix re slow roll 2013-08-11 22:15:27 +09:00
Randy Mackay 34b11f7be0 Copter: angle limiter fix for max lean angle 2013-08-11 14:55:49 +09:00
Randy Mackay 6969ab573d Copter: configurable max lean angle
ANGLE_MAX parameter allows limiting the roll and pitch angles during
manual and auto flight modes to anywhere from 10 to 80 degrees
2013-08-11 12:53:22 +09:00
Randy Mackay 5049595a2c Copter: SPORT mode to use alt hold 2013-08-10 15:42:02 +09:00
Randy Mackay d0dc5813cf Copter: move CIRCLE_RADIUS definition 2013-08-07 14:03:28 +09:00
Randy Mackay e1fe4946fb Copter: Sprayer enable added to CH7/CH8 switch 2013-08-05 21:12:29 +09:00
Randy Mackay 74fb500efe Copter: integrate AC_Sprayer 2013-08-05 21:12:23 +09:00
Randy Mackay 49dbdce89c Copter: split ACRO_P into ACRO_RP_P and ACRO_YAW_P 2013-08-05 21:05:00 +09:00
Randy Mackay 82082e044c Copter: remove ACRO's axis enabled parameter
Acro is now body frame (with earth frame leveling) while Sport is earth
frame acro
2013-08-05 21:04:57 +09:00
Randy Mackay 786d6824ae Copter: Acro Trainer added to Ch7/Ch8 switch 2013-08-05 21:04:55 +09:00
Randy Mackay 21e523b9ac Copter: Acro trainer separated into limited and leveled 2013-08-05 21:04:53 +09:00
Randy Mackay e32342163d Copter: rename ACRO variables 2013-08-05 21:04:50 +09:00
Leonard Hall d2deaaa686 Copter: Acro add rate constrain and combine limit calc 2013-08-05 21:04:47 +09:00
Randy Mackay 65276d360b Copter: SPORT to use YAW_HOLD 2013-08-05 21:04:44 +09:00
Randy Mackay 39ab4f62ef Copter: add SPORT mode 2013-08-05 21:04:41 +09:00
Randy Mackay a18d55a9d3 Copter: update version to 3.1-dev 2013-08-05 14:26:52 +09:00
Andrew Tridgell 086c7d70d8 Copter: use const references for Vector3f parameters
this is more efficient than passing a whole structure on the stack

Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
2013-08-05 10:24:24 +10:00
Andrew Tridgell c4f11e6c74 Copter: fix longitude_scale() call for new API
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
2013-08-05 10:24:21 +10:00
Andrew Tridgell 2690edfc5f Copter: ask for IMU samples at 100Hz
this produces the same result, but makes things simpler in the driver
2013-08-02 21:37:15 +10:00
Andrew Tridgell 01e19a32fe Copter: use the new scheduler load_average() call
this also simplifies the main loop
2013-08-02 18:46:34 +10:00
Randy Mackay 9672742b42 Copter: bug fix to look_ahead_yaw
Fix received from David Dewey
Was incorrectly using the direction instead of heading when deciding
whether to point forward or not.  Reduced YAW_LOOK_AHEAD_MIN_SPEED to
1m/s because bug meant it was nearly always pointing forward and 10m/s
(the old value) seemed too high
2013-08-01 14:12:55 +09:00
Randy Mackay c30cfa21c5 Copter: resolve compiler warning re unused variable 2013-07-29 16:46:25 +09:00
Randy Mackay 0f8f5bc048 Copter: remove unused ap.gps_status flag 2013-07-29 16:46:05 +09:00
Randy Mackay 2c48c20088 Copter: generalize 3 pos switch for all ch7/ch8 options 2013-07-29 16:28:04 +09:00
Olivier-ADLER 87d062905e Copter: 3 positions switch support for CH7 and CH8 - new 3 positions SIMPLE / SUPERSIMPLE mode
3 positions modes must use mode number >= 100
pre-arm check correction for CH7 - CH8 check
2013-07-29 15:12:10 +09:00
Randy Mackay c173f0c7d9 Copter: change CH7/CH8 pre-arm check string 2013-07-29 14:32:27 +09:00
Randy Mackay 0d75203d87 Copter: minor format change to exit_mission function 2013-07-28 18:19:05 +09:00
Randy Mackay 12da2d160a Copter: set landing_complete flag to false on start-up 2013-07-28 18:19:03 +09:00
Randy Mackay 3b59cde1b8 Copter: deactivate accel throttle controller when landed 2013-07-28 18:19:01 +09:00
Randy Mackay da37089dc2 Copter: remove landing checks in loiter controller 2013-07-28 18:18:57 +09:00