Commit Graph

507 Commits

Author SHA1 Message Date
Randy Mackay d6edde93b4 Copter: update version to 2.9.1 ahead of release
Also updated release notes
2013-02-01 22:14:53 +09:00
Randy Mackay fd14cf81f6 Copter: update release version to 2.9.1-rc2 2013-01-31 23:51:10 +09:00
Randy Mackay 5a3c7b2d35 Copter: use scaled throttle for accel-throttle's I term
Accel throttle's I term is taken from scaled manual throttle
2013-01-31 16:30:03 +09:00
Randy Mackay e95f838cf6 Copter: update firmware version to 2.9.1-rc1
Release Notes updated
2013-01-31 00:30:46 +09:00
Randy Mackay 11ff042fea Copter: THR_MID used to scale manual throttle 2013-01-31 00:25:41 +09:00
Randy Mackay 21ff3853f1 Copter: bug fix to set sonar_alt_health to zero when disabled 2013-01-30 21:17:43 +09:00
Randy Mackay defeb76e47 Copter: update firmware version to 2.9 ahead of release 2013-01-17 12:50:49 +09:00
Randy Mackay c74821078b Copter: update firmware version to rc5 2013-01-14 14:28:18 +09:00
Randy Mackay d90b7dbfe1 ArduCopter: update firmware version to 2.9-rc4 2013-01-12 15:27:10 +09:00
Randy Mackay a18892229c ArduCopter: smooth throttle when switching from manual throttle to alt hold
new set_accel_throttle_I_from_pilot_throttle function copies the
difference between the pilot's throttle and hover throttle to the
accelerometer based throttle controller's I term.
2013-01-12 12:20:37 +09:00
Randy Mackay 35ced65e4f ArduCopter: alphabetized the contributors list
Jonathan Challinger added
2013-01-11 15:28:08 +09:00
Randy Mackay 785cda0792 ArduCopter: increase firmware version to 2.9-rc3 2013-01-11 14:49:20 +09:00
Andrew Tridgell 49a5b664cc Copter: move read_AHRS() before run_rate_controllers()
this ensures the rate controllers use the latest data
2013-01-11 16:32:40 +11:00
rmackay9 4d21571d92 ArduCopter: changed alt hold to use the sonar if enabled and healthy 2013-01-10 21:43:13 +09:00
rmackay9 b58a89e71e 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-08 14:40:47 -08:00
rmackay9 152ae7d737 ArduCopter: save 10bytes by replacing multiple static instances of log_counter with a single global variable called pid_log_counter
pid_log_counter is used to limit the rate at which we log PID controller values
2013-01-05 13:42:01 +09:00
rmackay9 0a101162c2 ArduCopter: update altitude_error reported to GCS 2013-01-05 10:59:07 +09:00
Robert Lefebvre cbbba3a359 TradHeli: Fixing bug that causes Alt_Hold mode to use the Stab_Throttle scaling. It should not have this scaling, it should have access to full swashplate range. 2013-01-03 15:19:38 -05:00
rmackay9 c2fb2eb21e ArduCopter: update firmware version to 2.9-rc2 2012-12-31 14:32:14 +09:00
rmackay9 b9dbdadc80 ArduCopter: first implementation of surface tracking using sonar
Note: not yet enabled as part of any flight mode
2012-12-29 13:51:14 +09:00
rmackay9 d9873dcd7b ArduCopter with the new Camera and Relay classes for APM1 and APM2.
All changes by Sandro Benigno
2012-12-22 17:26:27 +09:00
rmackay9 53fc4a9287 ArduCopter: remove unused g_gps_null pointer to save 2 bytes 2012-12-22 14:22:13 +09:00
rmackay9 ecb388059e 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 2012-12-22 12:52:49 +09:00
Craig@3DR e882a19bb7 Global change all references from
GPS_PROTOCOL_MTK16
to
GPS_PROTOCOL_MTK19
2012-12-21 11:19:32 -08:00
rmackay9 c7a0a64eae ArduCopter: use inertial nav for current altitude and climb rate 2012-12-21 14:07:18 +09:00
rmackay9 93063a812a ArduCopter: move gcs_check function (which sends to ground station) to run when 50hz loop is not running
Also removed redundant heartbeat message
2012-12-20 15:54:19 +09:00
rmackay9 e13cea03ea ArduCopter: restore auto-trim method but now use AHRS.add_trim 2012-12-20 00:06:20 +09:00
Robert Lefebvre f48ec39cfa ACM: Precision Loiter RePositioning code.
Protected behind a #define
2012-12-17 07:42:28 -05:00
rmackay9 3be100469b ArduCopter: remove unused rc_override variables to save 21 bytes 2012-12-17 17:04:51 +09:00
rmackay9 e3ee865dc0 ArduCopter: Leonard Hall's changes to alt hold including adding low pass filter to climb rate
get_throttle_rate_stabilized changed to simply update the target altitude instead of talking directly to the rate controller.
get_throttle_althold changed to use sqrt of distance when calculating the desired rate towards the target altitude.
added reset of accel based throttle PID's I term.
unrelated small bug fix from Randy to allow CH6 tuning of throttle rate D term.
2012-12-17 14:36:05 +09:00
rmackay9 2656997714 ArduCopter: move gcs updates to run only when there are 4ms of spare time before the next 100hz iteration starts 2012-12-13 23:09:26 +09:00
rmackay9 2e78977499 ArduCopter: bug fix so AP_Limits does not use up memory if it is disabled 2012-12-13 16:07:34 +09:00
rmackay9 ad14e727e2 ArduCopter: bug fix for compass.accumulate check in main loop (millis vs micros issue) 2012-12-12 23:29:57 +09:00
rmackay9 d9bec28c02 ArduCopter: create 2.9 branch and update firmware version 2012-12-11 00:24:34 +09:00
rmackay9 709dc426f9 ArduCopter: remove ThirdOrderCompFilter from list of includes 2012-12-10 09:14:44 +09:00
rmackay9 8af9f6ed46 ArduCopter: add comments to tuning parameters.
Use RC_CHANNEL types as defined by RC_Channel library.
Remove unused definitions.
2012-12-09 16:44:42 +09:00
rmackay9 8be1f9d9b8 ArduCopter: code clean-up. Changed update_nav_wp to use a switch statement and relocated to navigation.pde 2012-12-09 15:24:19 +09:00
rmackay9 a4ee5d2c81 ArduCopter, AP_InertialSensor: restore mpu6k sample rate to 200hz but keep default filtering at 42hz. 2012-12-09 14:27:33 +09:00
Robert Lefebvre 083c451ec6 ACM: TradHeli
Fix to make update_throttle_cruise work with stab_throttle scaling.
2012-12-08 15:12:39 -05:00
rmackay9 f62c377062 ArduCopter: auto yaw changes to allow pilot override of yaw during missions
Added set_yaw_mode to better control of yaw controller changes and variable initialisation.
Replaced AUTO_YAW mode with separate yaw controllers YAW_LOOK_AT_NEXT_WP, YAW_LOOK_AT_LOCATION, YAW_LOOK_AT_HEADING.
Pilot manual override of yaw causes yaw to change to YAW_HOLD (i.e. manual yaw) until next waypoint is reached.
Added get_yaw_slew function to control how quickly autopilot turns copter
Changed YAW_LOOK_AHEAD to use GPS heading and moved to new get_look_ahead_yaw function in Attitude.pde
Renamed variables: target_bearing->wp_bearing, original_target_bearing->original_wp_bearing.
Removed auto_yaw_tracking and auto_yaw variables and update_auto_yaw function as they are no longer needed.
Simplified MAV_CMD_CONDITION_YAW handling (do_yaw).  We lose ability to control direction of turn and ability to do long panorama shots but it now works between waypoints and save 20bytes.
2012-12-08 14:23:32 +09:00
rmackay9 63a9913278 ArduCopter: InertialNav time constant CH6 tuning changed to only update enabled axis 2012-12-07 13:01:40 +09:00
rmackay9 bdf236ef38 ArduCopter: allow accel based throttle controller to be enabled/disabled with the new THR_ACC_ENABLE parameter.
When disabled the original velocity based throttle controller is used.
2012-12-06 10:31:57 +09:00
rmackay9 9750c14325 ArduCopter: RTL clean-up and slightly improved landing sensor
Consolidated RTL state to be captured by rtl_state variable.
Combined update_RTL_Nav and verify_RTL functions which performed the same function but one was for missions, the other for the RTL flight mode.
Renamed some RTL parameters and global variables to have RTL at the front.
Landing detector now checks accel-throttle's I term and/or a very low throttle value
2012-12-06 10:31:52 +09:00
rmackay9 eb3ad15843 ArduCopter: allow INERTIAL_NAV to be enabled separately for horizontal and vertical position 2012-12-06 10:31:41 +09:00
rmackay9 89e737728c ArduCopter: add tuning of throttle rate controller's I term (THROTTLE_KI) 2012-12-06 10:31:25 +09:00
rmackay9 dc0b35da30 ArduCopter: restored landing detector to landing throttle mode.
Added LAND_SPEED parameter to control the rate of descent for the last 10m of a landing.
Added CH6 tuning for accel based throttle controller.
2012-12-06 10:31:20 +09:00
rmackay9 e629fe2eb0 ArduCopter: add set_throttle_mode to better control initialisation of variables 2012-12-06 10:31:04 +09:00
rmackay9 1285198b71 ArduCopter: added back in angle boost and recombined for heli and multicopter 2012-12-06 10:30:55 +09:00
rmackay9 c1ce0ae752 ArduCopter: first merge of leonard's accel based altitude controller plus other changes from Randy
Changes include:
New low-level get_throttle_accel function takes target acceleration and compares vs earth-frame Z accelerometer values to produce output to motors.
Higher level throttle controllers modified to call new get_throttle_accel controller
Throttle_rate_stabilized controller added which maintains a desired climb/descent rate
Throttle_land controller added - descends using normal auto throttle controller to 10m then descends at 50cm/s
Multiple throttle modes added including landing mode
Land flight mode no longer needs GPS
Throttle cruise maintenance moved to update_throttle_cruise function
2012-12-06 10:30:49 +09:00
Robert Lefebvre 5863c737a1 ACM: TradHeli
Fixes for Attitude rate controllers.
2012-12-04 14:42:04 -05:00