Commit Graph

711 Commits

Author SHA1 Message Date
Robert Lefebvre a5af151a91 Copter: Initial expansion of Aux Switch to Ch7-12 2015-03-17 21:18:41 +09:00
Randy Mackay b10730f35c Copter: remove THR_MAX parameter 2015-03-16 14:49:34 +09:00
Víctor Mayoral Vilches 79e152cd93 Copter: Update compass to the new interface 2015-03-13 18:46:16 +11:00
Randy Mackay 088a49abbf Copter: remove APM1, APM2 support 2015-03-13 16:41:03 +09:00
Randy Mackay fbfc94cf69 Copter: remove GPS glitch and failsafe
The EKF failsafe now captures all failures that could lead to a bad
position including GPS glitches and a bad compass meaning we do not need
this protection in the main flight code.
2015-03-13 16:40:46 +09:00
Leonard Hall 778edfda72 Copter: default yaw rate filter to 5hz 2015-03-06 16:08:32 +09:00
Leonard Hall d5bbe6de03 Copter: remove TRIM_THROTTLE
throttle_trim is replaced by throttle_average which is initialised to
the throttle_mid parameter value at startup
2015-03-06 14:02:19 +09:00
Leonard Hall c78480e14f Copter: rename loiter_pos to pos_xy
Also renamed throttle_rate to vel_z, throttle_accel to accel_z
2015-03-06 14:02:17 +09:00
Leonard Hall e232867661 Copter: move LOITER_RATE to 2-axis PI controller
Also rename LOITER_RATE to VEL_XY for parameters, definitions, variables
2015-03-06 14:02:15 +09:00
Leonard Hall 2b0fb45fe8 Copter: integrate PID input filter 2015-03-06 14:02:11 +09:00
Leonard Hall 8ba195a3a2 Copter: add Mot and Rate dataflash logging 2015-03-06 14:02:07 +09:00
Randy Mackay e081b9d1c7 Copter: home is set becomes three state 2015-02-12 15:00:50 +09:00
Randy Mackay 3aac281c5a Copter: land detector requires desired climb rate be < -20cm/s 2015-01-31 17:23:43 +09:00
Randy Mackay 34503de18e Copter: integrate SerialManager
Remove serial0, serial1 baud and protocol parameters
Pass serial_manager to GCS, GPS, mount, FrSky_telem objects during init
call SerialManager init_console on startup
use SerialManager's set_block_writes_all
2015-01-29 14:05:14 +11:00
Randy Mackay 18f8ffab6f Copter: remove land detector bar climb rate definition 2015-01-28 10:59:15 +09:00
Randy Mackay 0065b3b224 Copter: tighten accel and gyro pre-arm consistency check
Accel diff threshold to 0.7m/s/s (was 1.0 m/s/s)
Gyro diff threshold to 5deg/sec (was 20deg/sec)
2015-01-20 12:44:02 +09:00
Andrew Tridgell ab62105afe Copter: use common send_opticalflow() 2015-01-03 15:53:49 +11:00
Andrew Tridgell c784ee717b Copter: update for new OptFlow API 2015-01-03 14:16:33 +11:00
Randy Mackay 2e7435df52 Copter: remove unused OF_LOITER pid defines 2014-12-31 13:16:18 +09:00
Randy Mackay f2b0fc3566 Copter: disarm on landing regardless of pilot input 2014-12-27 13:33:06 +09:00
Randy Mackay b6bcf841e1 Copter: remove second camera mount 2014-12-16 21:26:20 +09:00
Randy Mackay fd55a2d9c4 Copter: increase GPS_HDOP_GOOD default to 2.3 2014-12-15 10:45:50 +09:00
Randy Mackay 3127dd94c1 Copter: add OPTFLOW to default logging 2014-12-08 14:58:27 +09:00
priseborough 267ef48026 Copter : disable tilt correction of range finder data for use by EKF
This is a temporary fix. We need to make separate range and altitude measurements available.
2014-12-06 18:16:45 +11:00
Andrew Tridgell 4c0351a76a Copter: convert to new AP_InertialSensor API 2014-10-24 12:10:38 +11:00
Randy Mackay f6ff1742d5 Copter: landing detector checks baro climb rate
Barometer climb rate must be -150cm/s ~ +150cm/s
This threshold is generous because we already use the inertial
navigation climb rate so this is just to catch cases where inertial nav
is very incorrect in it's climbrate estimates
2014-10-22 17:29:14 +09:00
Jonathan Challinger 5fc02bdbc4 Copter: Reduce prearm alt disparity check back to 1m 2014-10-20 10:55:59 +09:00
Randy Mackay 27b73fa209 Copter: enable Optflow by default for Pixhawk only 2014-10-16 21:17:54 +09:00
Randy Mackay b0e6931ab0 Copter: add DCM_CHECK_THRESH parameter 2014-10-16 17:22:11 +09:00
Randy Mackay 4e06970a1c Copter: disable OptFlow in SITL 2014-10-15 20:46:06 +09:00
Randy Mackay 67b7b2d667 Copter: enable optflow by default for Pixhawk 2014-10-15 16:36:31 +09:00
Randy Mackay 8997c224e2 Copter: enable Guided velocity controller for Pixhawk 2014-10-13 21:40:20 +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
Jonathan Challinger 73e1719ee1 Copter: print frame type in log headers 2014-09-27 16:11:21 +09:00
Randy Mackay 193bc5331a Copter: cleanup enabling of cli and frsky telem for APM 2014-09-20 14:41:26 +09:00
Randy Mackay d8d1b38a52 Copter: increase Alt Disparity check to 2m 2014-09-20 12:24:36 +09:00
Randy Mackay 6951a20fb0 Copter: soften loiter target when maybe landed
Applies to auto's land, land, loiter, pos hold and rtl flight modes
2014-09-19 16:43:12 +09:00
Randy Mackay b552479e31 Copter: typo fix for baro vs inav alt disparity definition 2014-09-18 17:32:03 +09:00
Randy Mackay 18e3db0011 Copter: define limit for baro vs inav alt disparity 2014-09-18 17:24:40 +09:00
Randy Mackay adf00a207b Copter: enable EPM by default on Pixhawk 2014-09-17 21:14:22 +09:00
Randy Mackay d15a5f9dcb Copter: THR_ACCEL_IMAX default to 800 2014-09-12 15:11:48 +09:00
Randy Mackay 4c6b0bb1cb Copter: format change to flight mode default defined
This also kicks off the build for AC3.2-rc8
2014-09-11 16:52:36 +09:00
Randy Mackay 21d56735ca Copter: increase EKF_CHECK_THRESH default to 0.8
Also remove unused #define related to inertial nav check (now removed)
2014-09-09 14:59:27 +09:00
Randy Mackay 9c613cd1ec Copter: reduce alt hold defaults
Throttle Rate P to 5.0 (was 6.0)
Throttle Accel P to 0.5 (was 0.75)
Throttle Accel I to 1.0 (was 1.5)
2014-09-07 22:14:40 +09:00
Randy Mackay 641c8317a5 Copter: pre-arm consistency check of gyros 2014-09-04 15:21:58 +09:00
Randy Mackay 28f31166b9 Copter: land check gets overall throttle and rotation rate check
add check that overall throttle level is below the non-takeoff throttle
instead of just checking that it's motors have hit their lower limits
because low limits can also be caused by high yaw rotation requests.
Absolute climb rate requirement reduced to 30cm/s
2014-09-04 15:21:51 +09:00
Randy Mackay 59404c25e3 Copter: pre-arm consistency check of accels 2014-09-03 13:51:44 +09:00
Randy Mackay 07420521ab Copter: default LAND_REPOSITION to 1 2014-08-31 10:44:09 +09:00
Randy Mackay cf98cc29b5 Copter: throttle deadzone parameter
Allows increasing or decreasing the deadband size in AltHold, Loiter,
PosHold flight modes
2014-08-29 15:54:34 +09:00
Randy Mackay eb51a8e5da Copter: pre-arm check of internal vs ext compass 2014-08-26 22:34:06 +09:00
Andrew Tridgell a627cd2af2 Copter: run Linux boards at 100Hz for now
we should be able to do 400Hz in future
2014-08-19 20:03:33 +10:00
Randy Mackay 6fc5014a84 Copter: increase sonar timeout to 1sec
Contributed by Julien Dubois.
2014-08-14 19:37:00 +09:00
Randy Mackay f3fd79597f Copter: add ACRO_EXPO parameter 2014-08-14 11:47:37 +09:00
Randy Mackay 7b9fa1ea79 Copter: rate IMAX increase to 1000 2014-08-04 11:31:02 +09:00
Randy Mackay 4e2683421c Copter: disable parachute and rally on APM1 2014-08-01 15:14:40 +09:00
Randy Mackay b52f8351e8 Copter: rename EKFCHECK_COMPASS to EKFCHECK_THRESH
Renamed because this threshold is now used for both compass and velocity
variance.
Also minor reorganisation of ekfcheck but no functional change.
2014-07-31 22:58:43 +09: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
akdslr dc67058771 ArduCopter: Removed CONFIG_SONAR_SOURCE, SONAR_SOURCE_ADC, and SONAR_SOURCE_ANALOG_PIN since no longer used 2014-07-24 14:41:55 +10:00
Randy Mackay a4a4334b13 Copter: add EKFCHECK_COMPASS parameter 2014-07-22 23:13:22 +09:00
Craig Elder 07d43534c1 Copter: Change Radio Failsafe Timeout
Change Radio Failsafe Timeout from 2 seconds to 200ms
2014-07-16 19:41:43 -07:00
Craig Elder e85c9f078d Copter: Change Radio Failsafe Timeout
Change Radio Failsafe Timeout from 2 seconds to 200ms
2014-07-16 11:02:32 -07:00
Andrew Tridgell 49954a3a61 Copter: use sensors from board subtypes 2014-07-14 09:44:35 +10:00
Randy Mackay 65e5367619 Copter: rename hybrid to poshold 2014-07-11 14:09:01 +09:00
Jonathan Challinger 09a01a4668 Copter: Wait 4 seconds before beginning to land during failsafes 2014-07-06 20:25:04 +09:00
Jonathan Challinger 5b36e65cb9 Copter: Add parameter LAND_REPOSITION to enable/disable user input during auto-mode landings and descents 2014-07-06 19:20:25 +09:00
Randy Mackay fdc0ec837b Copter: add nav_guided suport to Auto mode 2014-07-06 17:00:31 +09: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
Randy Mackay 20719e23fd Copter: enable PARACHUTE and RALLY for all but APM 2014-05-27 14:43:33 +09:00
Randy Mackay ff1a58e078 Copter: increase LOITER_RATE_IMAX to 1000
This allows us to load up the I term with the vehicle's current
acceleration during mode transitions

pair programmed with Randy
2014-05-08 16:15:34 +09:00
Randy Mackay d857427444 Copter: disable RALLY points by default
This saves 2k of flash which allows the code to fix on the APM1/2
2014-04-30 21:46:21 +09:00
Randy Mackay a4c675c23e Copter: add PILOT_ACCEL_Z parameter
Allows configurable z-axis acceleration when pilot is controlling
altitude
2014-04-30 21:46:13 +09:00
Randy Mackay 19f1e7fec4 Copter: disable Parachute by default
This saves 1k of flash and we are desperately low on the APM1/APM2.
Hopefully we can find savings somewhere and re-enable it by default.
2014-04-24 19:02:32 +09:00
Randy Mackay 287af8f66e Copter: disable optical flow by default
We have run out of flash on the APM2, it was a choice between Hybrid
flight mode and OF_Loiter
2014-04-23 15:27:08 +09:00
Randy Mackay 55e7e1eb3e Copter: allow HYBRID to be disabled to save flash
Hybrid flight mode costs 4.5k of flash which currently puts us over the
limit for APM1 and APM2 unless optical flow or other features are
disabled
2014-04-23 15:27:05 +09:00
Ju1ien f8e8d4024d Copter: Hybrid's max brake angle to 30deg 2014-04-23 14:59:53 +09:00
Randy Mackay f467d7bc20 Copter: add Hybrid parameters 2014-04-23 14:59:25 +09:00
Randy Mackay 5fc071f5f9 Copter: restore SITL to run at 100hz 2014-04-21 21:46:22 +09:00
Randy Mackay 8ac14023b4 Copter: set main loop rate from CPU class
Previously this was determined by the board
2014-04-21 13:32:00 +09:00
Andrew Chapman fa3732ac6d Copter: integrate AP_Rally 2014-04-19 15:00:23 +09:00
Emile Castelnuovo 9e31f032c2 Copter: added VRBRAIN board #includes and #defines 2014-04-08 16:19:20 +10:00
Randy Mackay ff32b27272 Copter: integrate parachute lib 2014-04-07 13:36:44 +09:00
Andrew Tridgell 640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Jonathan Challinger 2601ac9959 Copter: Remove 80m altitude limit on RTL 2014-03-31 20:34:19 +09:00
Andrew Tridgell 3de574e5dc Copter: disable GPS2 in HIL 2014-02-27 08:16:20 +11:00
Andrew Tridgell 37394b30ee Copter: added support for 2nd GPS 2014-02-26 09:40:29 +11:00
Randy Mackay 00913ffe1b Copter: throttle rate to simple P controller
Saves at least 15bytes of RAM
2014-02-16 13:35:40 +11:00
Randy Mackay aab9b30bf6 Copter: replace APM_PI with AC_P
Saves about 90bytes of RAM
2014-02-15 06:09:08 +11:00
Randy Mackay ea1158a9d5 Copter: remove unused config 2014-02-15 05:27:47 +11:00
Randy Mackay aec67cd3df Copter: integrate control_autotune 2014-02-15 05:27:44 +11:00
Randy Mackay ef666c73ab Copter: remove Position mode 2014-02-15 05:27:42 +11:00
Robert Lefebvre c561d6bb9e Small comment change. 2014-02-15 05:27:42 +11:00
Randy Mackay 2253cf9769 Copter: run main loop at 400hz for pixhawk 2014-02-15 05:27:33 +11:00
Andrew Tridgell 0a3476bbf1 Copter: change to new board_voltage() API 2014-02-14 21:50:59 +11:00
Randy Mackay dee5fb212a Copter: remove dup definition of FRAME_ORIENTATION
Ideally the frame orientation parameter should be moved to the motors
class
2014-01-21 21:44:17 +09:00
Randy Mackay a9f1a2ee5e Copter: disarm on land even if pilot throttle not zero
default behaviour remains as before, this is an compile time option only
2014-01-15 11:31:00 +09:00
Randy Mackay a3527ade61 Copter: move EARTH_FRAME definition to defines.h
defines.h is for defining enumerations and other unchanging values while
config.h is for changeable values like parameter defaults, enabling or
disabling sensors.
2014-01-14 21:53:13 +09:00
Randy Mackay 138c2803be Copter: combine NTUN and INAV dataflash msgs 2014-01-13 22:00:11 +09:00
Randy Mackay 5e0ddd299f Copter: disable OPTFLOW for SITL 2014-01-13 17:11:27 +09:00
Randy Mackay 61f319ce38 Copter: disable OPTFLOW for PX4/Pixhawk 2014-01-13 12:02:03 +09:00
Randy Mackay b3d20bb8aa TradHeli: Drift mode to use heli manual throttle 2014-01-10 11:06:06 +09:00
Robert Lefebvre 531a9f4f25 TradHeli: disable AutoTune for Tradheli compile
We need the flash space, and this probably won't work for tradheli anyway since tradheli needs most of the control from Feedforward rather than P term.  And D-term is very very bad.
2014-01-10 10:50:09 +09:00
Randy Mackay 9f2f44f0f6 Copter: integrate shrunken optflow 2014-01-09 12:31:53 +09:00
ctech4285 2b5d8aa5b7 Copter: integrate EPM library 2013-12-17 15:36:42 +09:00
Randy Mackay c7dc351609 Copter: remove unnecessary MPU6K filter definition
This should also help kick off the AC3.1 rebuild
2013-12-15 11:01:31 +09:00
Randy Mackay 2a61053634 Copter: reduce default logging for SITL 2013-12-12 22:19:12 +09:00
Randy Mackay 58788d2934 Copter: increasd default logging for PX4, Pixhawk 2013-12-05 16:04:52 +09:00
Randy Mackay 2ba233942d Copter: pre arm mag offset limit to 600 for PX4 2013-12-03 23:23:26 +09:00
Randy Mackay 0cda3c9a71 Copter: reduce SONAR_GAIN to 0.8 (was 2.0) 2013-12-01 16:25:47 +09:00
Robert Lefebvre dbbe0f960a Copter: remove LED_ON/OFF defines 2013-11-30 18:20:58 +09:00
Randy Mackay 59cea4b88c Copter: remove CopterLED from main code 2013-11-30 18:20:55 +09:00
Randy Mackay 10d6a9a34e Copter: replace Log_Write_Motors with Log_Write_RCOU 2013-11-27 20:18:18 +09:00
Randy Mackay af657d58b9 Copter: RCIN dataflash logging 2013-11-27 16:46:25 +09:00
Andrew Tridgell 9c812d5028 Copter: added SERIAL2_BAUD and rename SERIAL3_BAUD to SERIAL1_BAUD 2013-11-26 13:05:32 +11:00
Randy Mackay 87127f0ab8 Copter: allow battery failsafe to trigger RTL 2013-11-16 14:46:57 +09:00
Randy Mackay bc1e06757b Copter: allow GPS failsafe to trigger AltHold
FS_GPS_ENABLE parameter accepts two new options, 2=AltHold,
3=LandEvenFromStabilize.
If set to 3 the GPS failsafe will trigger and LAND even from manual
flight modes like Stabilize and ACRO.  This is useful for users who want
to ensure their copters can never stray outside the circular fence (the
fence only triggers when it knows it is outside the bounds, and it can't
know this if it has no GPS)
2013-11-16 13:55:59 +09:00
Randy Mackay 8c9ab50ba2 TradHeli: restore CC_COMP and PIRO_COMP 2013-11-15 22:58:43 +09:00
Randy Mackay 0f67e25d37 TradHeli: set throttle_min to zero by default 2013-11-15 22:58:38 +09:00
Randy Mackay c9c803ffd4 TradHeli: move STAB_COL_MIN to main parameter list 2013-11-15 22:58:32 +09:00
Randy Mackay 633e91b7d4 Copter: initialise roll, pitch, yaw modes to stabilize
This fixes a bug in which the stabilize throttle controller would be
non-tilt compensated until the user switched to another flight mode and
back again
2013-11-15 22:57:56 +09:00
Randy Mackay ae87759e6d TradHeli: add THROTTLE_MANUAL_HELI
Move check_dynamic_flight to run as scheduled task
2013-11-15 22:57:53 +09:00
Andrew Tridgell 6b1f59372c Copter: show git and firmware version in tlog 2013-11-09 10:09:20 +11:00
Randy Mackay 620109d894 Copter: formatting fix to config.h 2013-11-03 12:57:02 +09:00
Robert Lefebvre 8868af7c2f TradHeli: Change default Auto-Yaw to Yaw Look Ahead
This leads to smoother flight in Auto modes, particularly with fast waypoints.
2013-11-03 12:56:57 +09:00
Jason Short 520a535c21 Copter: TOY mode updates 2013-11-02 21:34:48 +09:00
Randy Mackay babc54ec60 Copter: default Ch7 to DO_NOTHING
Ch7/Ch8 Save_WP feature triggers when switch is brought high (instead of
low) to be consistent with other aux features
2013-11-01 11:42:33 +09:00
Randy Mackay 8386b658e9 Copter: add ANGLE_RATE_MAX param
Limits the maximum rotation rate requested by the angle controller which
is used in stabilize, loiter, rtl and auto flight modes
2013-10-29 11:27:05 +09:00
Randy Mackay 9df7185075 Copter: remove unused #defines from config.h 2013-10-28 12:37:41 +09:00
Randy Mackay f52c6add89 Copter: reenable optical flow by default
correct optflow test compile error
2013-10-23 20:42:03 +09:00
Randy Mackay 6b9b5c5617 Copter: pre-arm check speed is less than 50cm/s 2013-10-20 21:56:00 +09:00
Randy Mackay d2bbc06502 Copter: allow throttle deadband to be redefined in APM_Config.h 2013-10-13 20:41:11 +09:00
Randy Mackay 0e740bd4e1 Copter: enable AUTOTUNE for mission planner build 2013-10-13 11:57:50 +09:00
Randy Mackay 6876107a15 Copter: autotune disables rate output from stab controller 2013-10-13 11:56:01 +09:00
Randy Mackay 8d1085feea Copter: pre-arm expects mag len of 330 for APM1 (was 530) 2013-10-09 14:10:16 +09:00
Andrew Tridgell 6145924481 Copter: switch Linux to L3G4200D ins driver 2013-10-08 11:50:54 +11:00
Randy Mackay ba92c4891a Copter: make AutoTune a compile-time option 2013-10-04 15:50:50 +09:00
Randy Mackay dab4f032f9 Copter: integrate BattMonitor 2013-10-03 11:16:28 +09:00
Andrew Tridgell 3665bec26d Copter: fixed build for Linux 2013-09-28 22:04:16 +10:00
Randy Mackay a53d28e018 Copter: remove support for dmp ahrs 2013-09-27 10:42:49 +09:00
Andrew Tridgell 566eaf7d41 Copter: fixed flymaple build with copterleds 2013-09-27 10:32:22 +10:00
Andrew Tridgell a0b6481dfd Copter: removed SMACCM support 2013-09-26 22:38:31 +10:00
Randy Mackay 2c96ed3f22 Copter: disable optical flow
This at least allows ArduCopter to be compiled with arduino until we
find larger flash savings
2013-09-24 21:59:19 +09:00
Andrew Tridgell 3378c7901a Copter: added support for the flymaple board 2013-09-24 13:51:28 +10:00
Andrew Tridgell 91315715fe Copter: removed CONFIG_PUSHBUTTON
not used anywhere any more
2013-09-23 18:10:22 +10:00
Andrew Tridgell 754bdbd25f Copter: use new usb_connected() HAL function 2013-09-19 16:24:23 +10:00
Randy Mackay 65adb78f31 Copter: increase default battery capacity to 3500mAh 2013-09-15 11:54:07 +09:00
Randy Mackay 653a5036ae Copter: #define for initial altitude jump during take-off
Developers can add a line like to APM_Config.h to reduce the initial
jump when taking off in Loiter or AltHold flightmodes:
#define ALT_HOLD_TAKEOFF_JUMP 0
2013-09-12 22:31:42 +09:00
Randy Mackay e985253f1a Copter: integrate notify 2013-08-30 13:01:35 +10:00
Randy Mackay 7c78936bc5 Copter: land by default at end of RTL 2013-08-30 10:34:23 +09:00
Randy Mackay 81074ebb3c Copter: update Y6 defaults 2013-08-28 13:05:01 +09:00
Randy Mackay d8eb7fb82f Copter: remove x100 from IMAX definitions 2013-08-19 22:38:34 +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 d000967a76 Copter: pre-arm check for gps hdop < 2 2013-08-15 13:06:36 +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 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 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
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 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
Leonard Hall 64ce9b017d Copter: Body frame ACRO upgrade 2013-07-11 17:53:25 +09:00
Randy Mackay ac5d925115 Copter: revert Loiter Pos P to 1.0 (was 0.8) 2013-07-11 12:20:31 +09:00
Randy Mackay 1590a5d58a Copter: increase Yaw Rate I 0.02 2013-07-11 12:20:29 +09:00
Randy Mackay d77f7bc803 Copter: default Loiter Pos P to 0.8 (was 0.2) 2013-07-11 08:13:17 +09:00
Andrew Tridgell c544a076ca Copter: enable camera logging by default
these messages only happen on user defined camera triggering, so
should be low rate
2013-07-10 12:24:02 +10:00
Randy Mackay 45f47de98d Copter: reduce default Loiter Pos P to 0.2 (was 1.0) 2013-07-07 16:00:09 -10:00
Randy Mackay 404cd5f3da Copter: rename g.pid_throttle to g.pid_throttle_rate
Small code clean-up to make throttle rate controller's pid more obvious
2013-06-30 00:04:21 -10:00
Robert Gayle 917edcab11 Copter: added FS_THR_ENABLED_ALWAYS_LAND (=3) option: don't attempt RTL, just land 2013-06-27 10:19:38 -10:00
Andrew Tridgell 76d1791073 Copter: CONFIG_RELAY is not used 2013-06-25 12:47:07 +10:00
Randy Mackay cd30103b76 Copter: increase default CIRCLE_RATE to 20deg/sec 2013-06-19 12:40:33 +09:00
Randy Mackay 069bd17928 Copter: reduce default AltHold P to 1.0 (was 2.0)
This helps reduce jumpiness due to althold feed forward
2013-06-16 15:32:25 +09:00
Randy Mackay 13c41e74f2 Copter: reduce pre-arm board voltage check to 4.3V 2013-06-02 20:47:58 +09:00
Olivier-ADLER 735406fa77 Copter : POSITION_HOLD mode -> allow user position control 2013-06-02 11:49:18 +09:00
Randy Mackay 1722e438d8 Copter: pass alt hold gain to WP_Nav library 2013-05-31 21:04:10 +09:00
Randy Mackay 1807840d4f Copter: fixed comments re mag field pre-arm check 2013-05-31 12:28:04 +09:00
Randy Mackay 7b50ecc73c Copter: pre-arm check for mag field length 2013-05-31 12:23:19 +09:00
Randy Mackay a1821c89e7 Copter: pre-arm check for board voltage < 5.8V 2013-05-31 11:31:27 +09:00
Randy Mackay c3d21a457f Copter: add pre-arm board voltage check
Copter will not arm unless board voltage is over 4.5V
2013-05-28 21:50:31 +09:00
Randy Mackay cdcf442f55 Copter: enable GPS failsafe by default 2013-05-27 11:25:37 +09:00
Randy Mackay 9fdab5e8fe Copter: remove unused AUTO_SLEW_RATE parameter 2013-05-17 16:09:17 +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 1426f40319 Copter: remove unused JDrones motor PID overrides 2013-05-17 12:05:20 +09:00
Randy Mackay e843bf3dfd Copter: bug fix for POSITION mode throttle
Was using alt-hold throttle controller instead of manual throttle
controller
2013-05-14 11:56:09 +09:00
Randy Mackay a2e298bbfc Copter: change to default RTL yaw behaviour
We will not point the nose home for RTL but will point the nose for all
other waypoints
2013-05-14 11:52:39 +09:00
Andrew Tridgell 0d027b7a23 Copter: updates for new compass API 2013-05-02 12:48:14 +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 94d4ecef11 Copter: reduce throttle rate D to zero 2013-04-21 16:28:07 +09:00
Bill Bonney 36041bb9ff Copter: Enable CURRENT logging by default to dataflash 2013-04-21 07:25:34 +10:00
Randy Mackay 745df9b13c Copter: add SONAR_GAIN to tune reaction to sonar
Some users report the response to sonar is too violent, this allows that
reaction to be reduced
2013-04-20 15:58:36 +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
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 18c1373847 Copter: remove unused AUTO_VELZ defaults
These have now moved to AC_WPNav
2013-04-18 14:57:08 +09:00
Randy Mackay 82989d85f2 Copter: remove unused #defines 2013-04-16 22:34:12 +09:00
Randy Mackay 0663da7c9e Copter: loiter rate IMAX to 4m/s/s and D to zero 2013-04-16 22:28:18 +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 366616e32c Copter: reduce default loiter PIDs 2013-04-14 10:39:28 +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 fc0c451b69 Copter: remove #ifdef checks for Atmega1280 2013-04-05 22:48:10 +09:00
Randy Mackay a9eb626cb8 Copter: update default Rate Yaw P to 0.20 (was 0.25) 2013-04-01 11:49:50 +09:00
Randy Mackay 36834e77b5 Copter: remove support for CLI Slider 2013-03-18 14:07:04 +09:00
Randy Mackay 597a4b912a Copter: fix to allow building HIL_MODE_SENSORS 2013-03-18 13:41:52 +09:00
Randy Mackay d1344e8c39 Copter: remove #define for CROSSTRACK_GAIN
Note: the cross track is still calculated inside the inertial nav based
loiter and wp controls but it's no longer requires a tunable parameter
2013-03-17 16:56:18 +09:00
Randy Mackay 1b6fcad90a Copter: remove tilt compensation parameter
Note: this idea of feed forward tilt compensation is being incorporated
into the inertial nav based loiter and wp controllers but does not
require a separate tunable parameter
2013-03-17 16:53:32 +09:00
Randy Mackay fdcb78ccf7 Copter: leonard's smoother alt-hold transition
Target altitude when entering alt-hold is based on a projection from
current alt and climb rate
2013-03-17 13:24:49 +09:00
Randy Mackay 150046f2b8 Copter: GPS Failsafe implemented
Switches to LAND mode 5 seconds after losing GPS if you're in a flight
mode that requires a GPS
2013-03-16 17:27:46 +09:00
Randy Mackay a73f50494c TradHeli: remove duplicate RC_FAST_SPEED definition 2013-03-04 23:45:23 +09:00
Randy Mackay 33bd984a91 Copter: remove unused input_voltage parameter 2013-03-03 23:23:54 +09:00
Randy Mackay d6ff5ae261 Copter: add roll-pitch slew for auto modes
Added reporting of roll, pitch inputs for ACRO, AUTO
2013-02-24 14:42:04 +09:00
Randy Mackay e297ba7d18 Copter: update default loiter gains for inertial nav 2013-02-24 14:42:00 +09:00
Randy Mackay cbde042ec5 Copter: remove non-inav loiter and wp controllers
lon_speed, lat_speed changed to float
do_takeoff, do_land now set roll-pitch, yaw and nav modes specifically
removed fast_corners functionality (may need to be reimplemented with
new inertial nav controllers)
2013-02-24 14:41:52 +09:00
Randy Mackay 609676e26c Copter: add logging of compass values
Removed rarely used ITERM because we didn't have enough bits in the log
mask
2013-02-24 14:41:48 +09:00
Randy Mackay 67c69a19ee Copter: remove baro-only alt hold
Saves 8 bytes of memory and more importantly simplifies the alt hold
calculations
2013-02-24 14:41:29 +09:00
Randy Mackay fcf102b2cf Copter: inertial nav waypoint controller
#define added to allow compile time selection of traditional or inav
based loiter and wp controllers
2013-02-24 14:41:09 +09:00
Randy Mackay 8e4c9518ea Copter: increase low voltage check to 10.5v
Change requested by Rob Lefebvre and Richie Wilson
2013-02-23 00:36:51 +09:00
Andrew Tridgell 4c7a1a1806 Copter: change PX4 main baud rate back to 115200
we now use USB console
2013-02-22 07:04:23 +11:00
Randy Mackay 06a71af12f Copter: THR_MID used to scale manual throttle 2013-02-01 22:37:16 +09:00
Randy Mackay ce370bab0c Copter: rename CUR and CURR to CURRENT for logging
Based on user complaint that enable/disable was using CUR while message
was appearing as CURR
2013-01-26 17:20:41 +09:00
Randy Mackay b74fe10aa9 Copter: set each flight mode's nav_mode
Allow ACRO flight mode's roll, pitch, yaw, throttle and nav mode to be
overwritten
2013-01-25 15:57:55 +09:00
Andrew Tridgell f303554259 Copter: run serial0 at 57600 on PX4 2013-01-22 09:50:22 +11:00
Robert Lefebvre dde713aaa5 Arducopter: Backing out my changes for a new Loiter Repositioning mode. Leonard and Jonathan's work will trump this. 2013-01-20 21:32:00 +09:00
Andrew Tridgell 580abf1106 Copter: fixed PX4 mag orientation 2013-01-17 17:23:34 +11:00
James Bielman 5631f865b2 Update floating point calculations to use floats instead of doubles.
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
Randy Mackay fef7569dee Copter: added experimental LOITER_REPOSITIONING #define to config.h
APM_Config.h should be used to overriding the standard parameters but
they still require a definition in config.h or they will be undefined
when built by the mission planner.
2013-01-14 13:34:14 +09:00
Randy Mackay 9ad6f711f8 ArduCopter: replace FS_THR_RTL_MIN_DISTANCE with wp_radius
This effectively means that an RTL kicked off by a failsafe will
immediately switch to LAND mode only if within 2 meters.  Previously the
radius was much wider (15m).
2013-01-13 20:00:47 +11:00
Randy Mackay 12f885c33c ArduCopter: disable ITERM logging by default
This message takes 1ms to write and we are running over our limits on
some loops.
2013-01-13 20:00:39 +11:00
rmackay9 21b6c78d12 ArduCopter: added get_throttle_althold_with_slew to allow slower altitude target changes
Improved surface tracking by using slewed althold controller
Reduced sonar mode filter to just 3 elements to reduce lag but at the possible consequence of allowing sonar noise to creep through for people with margin sonar set-ups.
2013-01-13 19:51:47 +11:00
Randy Mackay 87627d883b ArduCopter: use new logging method for remaining packet types
Additional changes include renaming RAW dataflash type to IMU
2013-01-13 00:17:44 +09:00
James Bielman 7827a4a54a ArduCopter: Add AP_HAL_SMACCM support.
- Added default configuration to "config.h".
- Added main function to run under FreeRTOS with HWF4.
2013-01-09 11:19:51 -08:00
James Bielman ab37f833db MS5611: Fix CONFIG_MS5611_SERIAL definitions.
- Make sure the values are defined as integers.  We were always using
  SPI rather than using I2C when desired.
2013-01-09 11:19:51 -08:00
Andrew Tridgell c48714be16 Copter: enabled PX4 sensors 2013-01-05 20:39:31 +11:00
James Bielman 264db3670e AP_Baro: Add CONFIG_MS5611_SERIAL option to choose between SPI and I2C.
- Update ArduCopter and ArduPlane modules to pass the correct serial
  driver to the MS5611 driver.
- Update barometer examples, assuming SPI.
2013-01-03 13:48:06 -08:00
Andrew Tridgell 94e3322e24 Copter: fixed build on px4 2013-01-02 22:09:02 +11:00
rmackay9 9b2956b377 ArduCopter: increase throttle rate P to 6.0 (was 1.0) and alt hold P to 2.0 (was 1.0) 2013-01-02 09:55:37 +11:00
rmackay9 d400e5040b ArduCopter: turn on INERTIAL_NAV_Z in the config.h file so that it takes effect when built for the mission planner 2013-01-02 09:55:37 +11:00
rmackay9 e850ab7ccd ArduCopter: add AUTO_VELZ_MIN, AUTO_VELZ_MAX and PILOT_VELZ_MAX to allow better control of climb/descent rate in auto and manual throttle modes 2013-01-02 09:24:31 +11:00
rmackay9 5526ca204c ArduCopter: on throttle failsafe, only initiate RTL if we are at least 15m from home 2013-01-02 09:22:51 +11:00
Robert Lefebvre 6e64b1b357 ACM: Precision Loiter RePositioning code.
Protected behind a #define
2013-01-02 09:19:39 +11:00
rmackay9 e6519330f4 ArduCopter: remove unused rc_override variables to save 21 bytes 2013-01-02 09:19:17 +11:00
rmackay9 34e18ae12a ArduCopter: increase accel based throttle PIDs and add D term to rate based throttle 2013-01-02 09:19:17 +11:00
Robert Lefebvre 9605bd8ee1 ACM: Trying to set a default MPU6K filter rate of 10Hz for TradHeli. Doesn't Work. 2013-01-02 09:14:55 +11:00
rmackay9 d8e3d5c10c ArduCopter: allow RTL's yaw mode to be overridden with a #define in APM_Config.h 2013-01-02 09:12:40 +11:00
rmackay9 50d46898fb ArduCopter: allow GUIDED mode roll-pitch, yaw and throttle control modes to be overridden 2013-01-02 09:12:17 +11:00
Andrew Tridgell 9e986801c9 Copter: fixed SITL for ArduCopter 2012-12-20 14:52:34 +11:00
Pat Hickey 5e63491994 ArduCopter: fix issues with HAL/HIL mixup and baro/compass instances 2012-12-20 14:52:29 +11:00