Randy Mackay
7e657ce856
AutoTune: abandon tuning if rate P hits minimum
...
Fixes from Leonard
2013-10-09 13:35:43 +09:00
Andrew Tridgell
4b68dd48f7
Copter: use ins.wait_for_sample() for main loop
...
this takes advantage of the INS specific method to wait for a sample
2013-10-08 19:20:34 +11:00
Randy Mackay
31cea0140d
Copter: Leonard's AutoTuning for Roll and Pitch
2013-10-04 15:50:47 +09:00
Randy Mackay
dab4f032f9
Copter: integrate BattMonitor
2013-10-03 11:16:28 +09:00
Randy Mackay
c3f7146f03
Copter: improve check of frame type to catch spelling errors
2013-09-27 14:35:16 +09:00
Randy Mackay
a53d28e018
Copter: remove support for dmp ahrs
2013-09-27 10:42:49 +09:00
Randy Mackay
77b5cb5d3f
Copter: correct typo in error #define
2013-09-24 21:45:52 +09:00
Randy Mackay
c596b27719
Copter: add dataflash error for GPS glitch
2013-09-24 21:41:48 +09:00
Andrew Tridgell
3378c7901a
Copter: added support for the flymaple board
2013-09-24 13:51:28 +10:00
Randy Mackay
fd047cc968
Copter: AUTO ch7/ch8 option
2013-08-19 18:09:23 +09:00
Randy Mackay
3a5a15a15f
Copter: allow CH6 tuning of sonar gain
2013-08-18 15:44:54 +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
e1fe4946fb
Copter: Sprayer enable added to CH7/CH8 switch
2013-08-05 21:12:29 +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
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
39ab4f62ef
Copter: add SPORT mode
2013-08-05 21:04:41 +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
c3daf78340
Copter: reset loiter target when landed
2013-07-28 18:18:41 +09:00
Randy Mackay
c937fe45e1
Revert "Copter: Remove CH7 & CH8 Enable / Disable of GeoFence"
...
This reverts commit e25b8933f3
.
2013-07-20 15:00:08 +09:00
Randy Mackay
7ea971d948
Copter: check set_mode for failure
...
Previously if set_mode failed it would return the copter to stabilize
mode. With this commit set_mode returns a true/false indicating whether
it succeeded or not so the caller can make the decision as to the
appropriate response which could be to stay in the current flight mode
or try another flight mode.
2013-07-20 11:01:10 +09:00
Craig3DR
e25b8933f3
Copter: Remove CH7 & CH8 Enable / Disable of GeoFence
2013-07-18 17:06:53 +09:00
Randy Mackay
b3da8a462f
Copter: CH6 tuning definition clean-up
...
Renamed and reorganised the CH6 #defines and parameter definitions
2013-06-29 23:51:43 -10:00
Randy Mackay
23ce35d292
Copter: remove unused NAV_WP_INAV #define
2013-06-01 18:21:28 +09:00
Randy Mackay
00bd1bf8ea
Copter: RESETTOARMEDYAW order and comments
...
We should keep the order in the case statement the same as the #define
order.
2013-05-21 10:58:34 +09:00
Dr Gareth Owen
e9d640ced8
added ch7 option to reset yaw back to what it was when quad was armed
2013-05-21 10:40:30 +09:00
Randy Mackay
4ad395e7be
Copter: merge WPNAV into NTUN dataflash message
2013-05-19 22:53:35 +09:00
Randy Mackay
38239c652a
Copter: ch8 aux switch
...
Ch8 can be used as an aux switch like ch7. Has all the same options as
ch7 and there is a safety check to ensure both switches aren't set to
the same function so as to avoid interfering with each other
2013-05-17 14:42:28 +09:00
Randy Mackay
566daf883a
Copter: remove unused MODE bit from LOG_BITMASK
...
We always log the mode so no need for this bit
2013-05-17 12:26:42 +09:00
Randy Mackay
33d1129904
Copter: remove unused TB_RATIO parameter
2013-05-14 16:56:55 +09:00
Randy Mackay
e130c8041c
Copter: remove unused event definitions
2013-05-13 18:07:44 +09:00
Randy Mackay
bb7aec2600
Copter: log compass failur to dataflash
2013-05-13 18:01:30 +09:00
Randy Mackay
ad656c7e8a
Copter: allow lat/lon to be specified for land
2013-05-10 22:37:15 +09:00
Andrew Tridgell
95120ed43d
Copter: use library gcs_severity
2013-05-09 09:28:49 +10:00
Randy Mackay
bab9fa25e5
Copter: add GCS failsafe
2013-04-29 21:30:22 +09:00
Randy Mackay
58d1da2d80
Copter: integrate AC_Fence in place of limits
...
Lesser functionality than limits but saves more than 150 bytes and it
works
2013-04-27 11:14:07 +09:00
Randy Mackay
a53e5f747b
Copter: add fourth yaw behaviour, look-at-home
...
Added get_wp_yaw_mode to remove duplication of checks of the
WP_YAW_BEHAVIOR parameter
2013-04-20 15:36:24 +09:00
Andrew Tridgell
67484a2ea1
Copter: make copter code compatible with the new logging system
...
not fully converted yet
2013-04-20 13:52:36 +10:00
Randy Mackay
37abfdc65a
Copter: make CIRCLE_RATE a tunable parameter
...
Also bug fix to check of how many time it has rotated during a loiter
turns mission command
2013-04-20 12:03:55 +09:00
Randy Mackay
0fc9c8739e
Copter: add WP_YAW_BEHAVE parameter
...
Allows user to control whether nose points towards next waypoint and/or
home when RTLing.
Replaces YAW_OVR_BEHAVE which had a very similar purpose. Almost nobody
ever knew about or used this parameter.
2013-04-18 15:30:18 +09:00
Randy Mackay
2b4a7d60a9
Copter: remove unused throttle modes
...
These were useful for testing the alt-hold when it was first introduced
but now they just add complexity
2013-04-17 22:14:22 +09:00
Randy Mackay
b48864e1ad
Copter: allow CH6 tuning of compass declination
2013-04-15 21:50:44 +09:00
Randy Mackay
629d23b7e2
Copter: remove WP_SPEED and WP_RADIUS parameters
...
AC_WPNav library has equivalent params with very similar names
2013-04-14 13:27:37 +09:00
Randy Mackay
bffe4fa412
Copter: remove NAV_LAT and NAV_LON
...
Loiter and navigation controllers now combined
2013-04-14 12:09:45 +09:00
Randy Mackay
1ee825ee9a
Copter: move alt and wp checking to AC_WPNAV
...
RTL fix so that if it starts rtl-ing from above 80m it returns home
while descending instead of descending at initial position.
add get and set_target_alt_for_reporting
2013-04-14 10:39:23 +09:00
Randy Mackay
1516972eaa
Copter: add panorama to CIRCLE mode
...
Yaw will slowly rotate if CIRCLE_RADIUS is set to zero
Circle center is projected forward CIRCLE_RADIUS from current position
and heading
2013-04-14 10:38:01 +09:00
Randy Mackay
597a4b912a
Copter: fix to allow building HIL_MODE_SENSORS
2013-03-18 13:41:52 +09:00
Randy Mackay
f9539384a1
Copter: rename failsafe to failsafe_radio
...
Makes way for separation of failsafes for throttle, gps and gcs
2013-03-16 17:14:21 +09:00
Randy Mackay
cb84ec9d9b
Copter: add current based compass compensation
2013-03-03 23:02:36 +09:00