Robert Lefebvre
e2496181ff
Yaw Fix
...
Modified Nav_Yaw controller to better track intended heading changes.
2012-06-07 17:15:33 -04:00
Jason Short
a9610a0761
Stabilization patches
...
removed Angle error limit for stabilization
constricted Iterm to +- 5° error and limited the implementation to when the quad is +- 5° from center
doubled the output limit for Rate controller.
increased default Rate_P gain to .18 with matching Rate_D of .004
Tested in the SIM and in backyard. dramatically increases performance and quad no longer overshoots and flips when pushed hard.
2012-06-05 16:41:44 -07:00
Jason Short
9ab06c5542
Moved PID logging counter into define
2012-06-03 11:13:50 -07:00
Jason Short
2311d52d37
Renamed some variables to clarify functionality.
2012-05-29 12:42:37 -07:00
Jason Short
1a5e2f4e37
Attitude.pde - Removed rate limit based on SIM flights. These should never have been in place and seriously detriment Acro flight.
2012-05-21 09:58:23 -07:00
rmackay9
533772339e
ArduCopter - Attitude.pde - added logging of optical flow pid controller
2012-04-21 20:17:12 +09:00
rmackay9
df85051574
ArduCopter - added dataflash logging of roll and pitch rate controllers
2012-04-08 10:19:20 +09:00
rmackay9
aa4085183c
ArduCopter - Attitude.pde - moved heli_get_angle_boost from heli.pde (which will be removed) to Attitude.pde. In fact we should combine heli_get_angle_boost and the regular get_angle_boost.
2012-04-04 22:51:39 +09:00
Andrew Tridgell
e0c9ab5a29
ACM: fixed heli build
2012-03-27 15:37:25 +11:00
Andrew Tridgell
47f9dfd125
ACM: fixed the build on the 1280
2012-03-27 15:37:24 +11:00
rmackay9
1f4cfb9333
ArduCopter - added PID log type. Implemented for Yaw stabilize and rate controllers.
2012-03-25 16:09:08 +09:00
Andrew Tridgell
547b4ed55b
AHRS: adapt ArduCopter for new AHRS framework
2012-03-19 17:29:02 +11:00
Jason Short
a0717f082e
ACM: Attitude.pde - consolidated wind I term resets
2012-03-18 22:31:21 -07:00
Jason Short
fc32da0d2e
ACM: increased the available rate error constrain, it was too low
2012-03-10 12:39:16 -08:00
Jason Short
bd4835a1b2
ACM: removed the experiment for rate error.
2012-03-10 12:38:29 -08:00
Jason Short
730476fdfd
ACM -
...
Implemented automatic ranging of Alt Hold gains. Works well in simulator and testing.
- alt hold estimation moved to 50 hz
- simple fixed observer calc for smooth and accurate climb rates useful for derivative calcs
- auto-reset of the I term by moving I value into throttle value. This recalcs the gain every 20seconds for battery drainage compensation in long flights.
- remove filtering for Nav_throttle
- added a way to lower the gain on nav_throttle for descents by / climb_rate error by 2 - seems to work OK and keeps copter from dropping like a rock when the Baro drifts quickly lower.
- removed old throttle hold set point code
- made throttle override for alt hold +- 200 vs 250
2012-03-06 22:22:14 -08:00
Jason Short
a387956814
added stab_d gain scheduling
2012-02-28 20:16:40 -08:00
rmackay9
744e5b8c60
ArduCopter - made rate controller filters globals to fix compiler error on Arduino 022 (Arduino 1.0 was fine)
2012-02-28 22:56:26 +09:00
rmackay9
4a0989f95d
ArduCopter - Attitude.pde - updated get_rate_roll and get_rate_pitch to use new average filter.
...
modified all int to int16_t in Attitude.pde
2012-02-28 21:26:37 +09:00
Jason Short
1ce267f904
increased the rate error for more responsive alt hold
2012-02-25 13:31:21 -08:00
rmackay9
57e5eee8c8
TradHeli - increase max yaw input to 45 degrees
2012-02-24 20:18:40 +09:00
Jason Short
364afe8da0
added a constraint to D term
2012-02-23 09:14:44 -08:00
Jason Short
265c5255a3
Added slow_wp default in AP mode
2012-02-19 13:15:40 -08:00
Jason Short
5218220f0f
re-implemented WII Dampening filter for Marco.
2012-02-16 22:38:23 -08:00
Jason Short
632cc783a1
cast D term to float just in case
2012-02-16 22:09:21 -08:00
Jason Short
3d63bb6cd4
Added acro_p to the params
2012-02-15 11:29:25 -08:00
Jason Short
fcb24ee17d
Added Acro_P
2012-02-15 09:10:14 -08:00
Andrew Tridgell
3b4cae3cc3
adapted main ACM code for AP_Param
2012-02-13 16:22:52 +11:00
Jason Short
c64d781dce
get_acro_yaw added
2012-02-10 22:32:55 -08:00
Jason Short
f40d40b0f9
Acro fix - we had lost the scaling of Acro mode in 2.1. This restores that.
2012-02-09 22:22:00 -08:00
Randy Mackay
b851d39eaa
OptFlow - reenable OF_LOITER pid controller and reduce I term
2012-02-01 08:04:18 +09:00
Jason Short
bf2cc6072d
limiting alt hold rate error to 1m/s
2012-01-29 17:08:34 -08:00
Jason Short
7833cea9d4
2.2B6 - Please verify Heli still functions properly.
...
Added AC_PID lib
Updated landing code
bug fixes
2012-01-28 22:00:05 -08:00
Randy Mackay
2c906b7b27
OpticalFlow - replaced PI controller with PID controller.
...
Modified optical flow hold to use aggregated position instead of speed.
2012-01-25 21:55:14 +09:00
Jason Short
5cc19bbe7c
slightly less filtering for less latency
2012-01-21 22:04:54 -08:00
Jason Short
1aa6d0ea08
limiting the pitch throttle compensation
2012-01-21 11:59:49 -08:00
Jason Short
42b1362bba
cleanup
2012-01-20 22:52:30 -08:00
Jason Short
ed32ad30fd
Refined the D term for stabilize
...
moved all the rest_I terms from code into 1 central place
2012-01-20 22:52:29 -08:00
Jason Short
95ac9d163e
lowered Loiter I, commented out unused var
2012-01-14 11:20:40 -08:00
Jason Short
c02b403a06
temp removed alt D term until more testing
2012-01-14 11:20:40 -08:00
Jason Short
7c475f178c
tuned down Alt hold D gain
2012-01-13 09:36:51 -08:00
Jason Short
ee7c948781
Added simple constrain for Alt d term
2012-01-13 08:49:55 -08:00
Jason Short
4459fc4e34
Added a small D term on alt hold
2012-01-12 22:28:58 -08:00
Jason Short
f36aba8af2
climb rate control
2012-01-10 23:42:26 -08:00
Jason Short
7b8767d846
Added comments
2012-01-10 23:42:26 -08:00
Randy Mackay
f68d23d91e
ArduCopter - added ROLL_PITCH_STABLE_OF (i.e. Stabilised Roll/Pitch + adjustments based on optical flow)
...
Removed optical flow from regular loiter for now until it's tested.
2012-01-09 13:53:54 +09:00
Jason Short
8ed2d96396
removed unused var
2012-01-04 09:28:37 -08:00
Jason Short
4e0e783e7c
added Reset_Rate_I function
...
Removed I term from Throttle rate calc
Added some basic constrains to Acro
2012-01-04 09:28:37 -08:00
Jason Short
1ef7f9fe62
Loiter I reset
2011-12-31 09:45:25 -08:00
Jason Short
6a8391f0a7
removing I term clearance
2011-12-30 23:48:04 -08:00
Jason Short
21460a57ae
Yaw Performance tweaks
2011-12-29 23:02:03 -08:00
Jason Short
10abb7871e
removed loiter I from Reset Nav
2011-12-29 23:02:03 -08:00
Jason Short
d055763947
Added second order, filtered derivative in stabilize. Works much better than the non-filtered one I used to have.
2011-12-29 23:02:02 -08:00
Jason Short
79fff0f096
the second accel test is just for fun.
...
Filtered output for Nav_throttle
2011-12-23 14:42:50 -08:00
Jason Short
47e4c875e1
Cleanup
...
removed Iterm experiment - no noticeable effect in actual flight
2011-12-16 20:47:23 -08:00
Jason Short
3019c35364
turned off iterm for traverse
2011-12-15 20:51:41 -08:00
Jason Short
4e280bb0dc
More power to descend
2011-12-15 20:51:40 -08:00
Jason Short
d2fd6c5ee5
added loiter control to reset nav
2011-12-14 22:08:41 -08:00
Randy Mackay
7f64080877
Arducopter - Attitude.pde - fixed small bug in pitch stabilise
2011-12-13 22:10:51 +09:00
Jason Short
ba8fc57bd8
Stability patch2 - Jose style.
2011-12-12 17:47:45 -08:00
Jason Short
5d0e3664ad
Hack to prevent fly aways
...
Cleanup to remove SIMPLE mode switch note
2011-12-11 12:01:06 -08:00
Jason Short
1f3abcf048
eased up on the i term blocker
2011-12-10 23:25:52 -08:00
Randy Mackay
42421a09e2
TradHeli - Attitude.pde - made yaw contol use jason's stability patch
...
Quad - fixed small bug in pitch control (was using roll's stabilise controller)
2011-12-08 22:23:50 +09:00
Randy Mackay
68e6be5eeb
TradHeli - fixed roll/pitch so it's not scaled when throttle is scaled
2011-12-08 21:30:47 +09:00
Jason Short
6dfdd754ea
Stability patch updates,
...
Cleanup
2011-12-06 21:03:56 -08:00
Jason Short
e8a14c8d93
simple patch to improve alt hold based on stability patch
2011-12-04 21:32:33 -08:00
Jason Short
aad45c692f
Stability patch from 55
2011-12-03 17:54:38 -08:00
Jason Short
e4f2ad1809
remove PI_crosstrack
2011-11-19 13:58:53 -08:00
Jason Short
9e67c7efca
Added additional nav params to reset
2011-11-12 21:39:00 -08:00
Jason Short
79e30b5f21
removed debugging code
2011-11-08 14:41:46 -08:00
Jason Short
d375de8424
SIM test
2011-11-08 14:11:02 -08:00
Andrew Tridgell
28634f51b7
ArduCopter: use specific sized data types in a lot of places
...
this will make the Desktop build more consistent with the real AVR
build, and also with a future ARM build
2011-11-08 11:05:36 +11:00
Jason Short
6bf0c32173
Removed some old debug prints from motors.pde
...
added ability to not increment I term for traversals.
2011-11-07 14:32:39 -08:00
Jason Short
0446cae242
Alt hold fix
2011-11-07 12:00:37 -08:00
Jason Short
d1431f1070
default top_bottom ratio 1.0
2011-11-06 22:45:07 -08:00
Jason Short
c265555b69
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-11-04 21:42:10 -07:00
Jason Short
c8304114a3
renamed some command variables to align with Arduplane
...
reworked the arming code and moved the DCM gains out.
updated climb_rate to include sonar data.
2011-11-04 21:41:51 -07:00
unknown
12f5f3f96e
TradHeli - fix to allow tail servo to be reversed. Also increase max movement of tail servo to 45 degrees.
2011-11-05 12:31:30 +08:00
Jason Short
27fc6eea10
Z dampener
...
Integrated Aurelio R. Ramos' Z dampening code.
2011-11-01 21:18:47 -07:00
Jason Short
c402311077
removed accel.z references
2011-11-01 09:28:23 -07:00
Jason Short
48db60a4eb
Tweaks to alt hold
2011-11-01 09:25:23 -07:00
Jason Short
07daf34ccc
Added a slew rate to the alt change rate.
...
Added better reporting of throttle control
upped constraints for alt hold
Additional logging for CTUN lay hold
2011-10-28 21:29:10 -07:00
Jason Short
c6c7966205
Attitude
...
Made the Acro mode more NG like. Should be much more nimble!
Tweaked the Accel hold with sim tests. not flight tested or enabled by default.
added option to set scalar in angle boost
2011-10-27 12:31:46 -07:00
Michael Oborne
f9883bf382
fix make issue
2011-10-04 09:34:47 +08:00
Jason Short
b0bd9d1c44
Added second PI loop for alt hold.
...
Upped gains for default JDrones Frame
added gains for second PI loop for alt
removed some tests for 1280 space constraints
2011-10-02 11:36:23 -07:00
Jason Short
f89da12387
Minimized the accel_filtered vector to be faster and more accurate.
...
Made the Filter include the Accels and moved from 8 to 4 terms in the filter
2011-09-30 18:40:29 -07:00
Jason Short
de61e87128
Added ADC gyro Filtering for quads - this fixes a noise issue introduced into the controller
...
added Position mode
removed
Added back in the accelerometer experiment
Added filter_result boolean to enable filter on the fly
2011-09-29 23:27:23 -07:00
Jason Short
c209d6e6dd
2.0.46 -Not flight tested!
...
restored 42 alt hold code
removed throttle timer, replaced with safer constant
increased alt control range
reformatted nav_rate calls
removed unused simple mode defines
set alt hold home to 10m
tuned down rateP to .13 from .14 for broader application.
2011-09-27 09:35:05 -07:00
Jason Short
b2a2221474
Fixed issue with Simple mode changes.
...
Reverted to simpler, safer timer code for throttle hold
2011-09-25 14:16:35 -07:00
Jason Short
bb8f97ec0b
Better throttle boost value
2011-09-24 21:55:54 -07:00
Jason Short
a8befb189c
Fixed throttle_boost
2011-09-23 15:34:18 -07:00
Jason Short
2ae163ef75
Trying to make Alt hold more aggressively change altitudes.
2011-09-23 13:58:39 -07:00
Jason Short
25b0a3c43b
Added a default, but low throttle cruise value
...
Added a clear integrator for Rate I to prevent tip ups at launch.
2011-09-22 23:10:55 -07:00
Jason Short
991279851a
Refined Throttle Timer reset
...
Reduced Loiter I gain to decrease overshoot.
2011-09-22 17:38:39 -07:00
Jason Short
078f64e276
Fixed Throttle integrator bug. Time was not being reset causing a big drop in throttle control.
2011-09-22 12:28:46 -07:00
Jason Short
a012e7981a
removed debug statements
2011-09-21 22:34:27 -07:00
Jason Short
c91ad14e18
Fixed Timer overflow for throttle PI loop.
...
Moved look at home to update_nav where it belongs
2011-09-21 22:31:12 -07:00
Jason Short
b2b28cc90c
Converted Millis to Micros
...
added navigation check to return a failed navigation
2011-09-19 22:24:57 -07:00
Jason Short
bf94ba551e
changed PI Library to take Float for DeltaTime
...
Changed timing to be more accurate in main loop. Still need to switch to micros(). Left that for Tridge. This gets rid of six floating point calcs *250. Nice!
2011-09-19 14:02:42 -07:00
Jason Short
d29cfbcee3
Integration of optical flow
...
bug fixes for new Simple mode
increased Baro filter by 2 fields
2011-09-15 23:33:00 -07:00
Jason Short
1ce2308d11
Removed Simple Mode
...
Added Simple option to mode switch positions
removed unused OptFlow code
added reset lat and lon error
removed unused init_auto
Fixed log formatting
Added simple mode bitmask
removed pitchmax
added CLI setup for enabling Simple mode to any switch position
2011-09-14 13:58:18 -07:00
Jason Short
02bfd43390
Fixes Alt hold mistake
...
Moves tuning into runtime definable param
Added more IMax to throttle
Signed-off-by: Jason Short <jasonshort@gmail.com>
2011-09-10 15:16:51 -07:00
Andrew Tridgell
1456a2a912
renamed top level directories
...
ArduCopterMega -> ArduCopter
added archives directory for old code
2011-09-09 11:27:41 +10:00