Andrew Tridgell
25c576cad7
Copter: replaced constrain() with constrain_float()
12 years ago
Randy Mackay
0b29754920
Copter: simplify roll-pitch stabilize controller
...
remove check of whether to freeze i term when attitude is less than 5
degrees from horizontal. I terms have been moved to the rate
controllers.
12 years ago
Andrew Tridgell
c2c037ec0d
Copter: use the right constrain() type in Attitude code
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
12 years ago
Randy Mackay
a9da3c9d3d
Copter: remove unused throttle functions
...
removed get_pilot_desired_acceleration vand get_pilot_desired_direct_alt
were used for initial testing of the inertial alt-hold controller but
are no longer required.
12 years ago
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
12 years ago
Randy Mackay
50515e28e1
Copter: replace fabs with fabsf
12 years ago
Randy Mackay
f5955d8915
Copter: auto climb and descent params removed
...
These params now reside in the AC_WPNav library
12 years ago
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
12 years ago
Randy Mackay
7c559333f5
Copter: get_throttle_rate's target_speed a float
12 years ago
Randy Mackay
ee7f40cfe9
Copter: Leonard's alt-hold feed forward
12 years ago
Randy Mackay
f82ce449d7
AC_WPNav: add angle limits and set from AC's throttle controller
12 years ago
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
12 years ago
Randy Mackay
49828eba7d
Copter: integrate AC_WPNav
12 years ago
Randy Mackay
24dd167607
Copter: ACRO bug fix from Jason
12 years ago
Andrew Tridgell
b280857025
Copter: use common angle wrap code
12 years ago
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
12 years ago
Randy Mackay
37040adfaa
Copter: bug fix for auto missions over 320m
...
get_throttle_althold_with_slew's target_alt parameter defined as int16_t
(instead of int32_t) meaning missions with altitudes >320m could wrap
around and become negative.
12 years ago
Randy Mackay
f9539384a1
Copter: rename failsafe to failsafe_radio
...
Makes way for separation of failsafes for throttle, gps and gcs
12 years ago
Randy Mackay
476a6d0164
Copter: fix for acro throttle bug
12 years ago
Randy Mackay
d8515ff85e
Compass: basic compensation for motor interference
12 years ago
Randy Mackay
df1c0d92bd
Copter: manual throttle scaling fix
...
Scaling of bottom half of throttle was changed from THR_MIN ~ 500.
Previously it was from 0 ~ 500.
12 years ago
Randy Mackay
a0b65a262b
Copter: use scaled throttle for accel-throttle's I term
...
Accel throttle's I term is taken from scaled manual throttle
12 years ago
Randy Mackay
06a71af12f
Copter: THR_MID used to scale manual throttle
12 years ago
Randy Mackay
aaecc25ac7
Copter: leonard's inav2
...
Moved loiter controller to navigation.pde
12 years ago
Randy Mackay
deafbf1f56
Copter: inav loiter comment changes
...
removed unused get_loiter_vel function
12 years ago
Randy Mackay
68fc9ac1d8
Copter: add "f" to end of float constants
...
This is a small performance improvement for the px4
12 years ago
Randy Mackay
9a09f086d2
Copter: Leonard Hall's inertial nav ver 2
12 years ago
rmackay9
ab1978ad50
Copter: Leonard Hall's inertial nav based loiter
12 years ago
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.
12 years ago
Randy Mackay
175f69a64f
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.
12 years ago
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.
12 years ago
Andrew Tridgell
860f4b2605
Copter: merge the latest 2.9 changes into master
12 years ago
Andrew Tridgell
ead38f917f
Copter: use GRAVITY_MSS
12 years ago
Andrew Tridgell
51d987a890
Copter: removed unusued variable
12 years ago
rmackay9
677b38a48e
ArduCopter: first implementation of surface tracking using sonar
...
Note: not yet enabled as part of any flight mode
12 years ago
rmackay9
daac540e08
ArduCopter: get_throttle_althold - add check to avoid divide by zero
12 years ago
rmackay9
576af6d487
ArduCopter: bug fix to althold desired rate calculation. Fix from Jonathan.
12 years ago
rmackay9
ff40fa6aab
ArduCopter: alt hold bug fix - should use 2x linear distance when calculating the desired rate
...
Bug fix from Leonard.
12 years ago
rmackay9
393c893cdb
ArduCopter: bug fix (attempt #2 ) for accel based throttle controller
...
Thanks to Jonathan for this.
12 years ago
rmackay9
e583ade62d
ArduCopter: bug fix to accel based throttle controller (was using m/s instead of cm/s)
12 years ago
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
12 years ago
rmackay9
466097b383
ArduCopter: use inertial nav for current altitude and climb rate
12 years ago
rmackay9
7a5e4b8549
ArduCopter: stop unnecessary updates of target altitude and knock-on effect of too many EV message in dataflash log
12 years ago
rmackay9
ac8af9a53f
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.
12 years ago
rmackay9
f4c50353b9
ArduCopter: allow tuning of the Throttle Rate D term
12 years ago
rmackay9
7ea34d4fb7
ArduCopter: updated accel based throttle to use ahrs's get_accel_ef method
...
Also removed slow low pass filter meant to correct for accelerometer calibration. This is no longer required now that we have the improved calibration method.
12 years ago
Pat Hickey
7af03127f6
ArduCopter: more work
12 years ago
rmackay9
af77425636
ArduCopter: fix Failed to Init Optflow message at startup
12 years ago
rmackay9
2f1b2b70e6
ArduCopter: added ACRO_TRAINER parameter to allow enabling/disabling the acro training function which will bring the roll back to within +- 45 degrees
12 years ago
rmackay9
154e3c33f7
ArduCopter, AP_InertialNav: consolidated ThirdOrderComplementaryFilter into AP_InertialNav to save about 200bytes of RAM
12 years ago