Randy Mackay
965f3827b4
Copter: poshold uses AP_Motors set_desired_spool_state
9 years ago
Leonard Hall
7366bc8a56
Copter: pos_hold uses 0 to 1 throttle and sets motor spool state
9 years ago
dgrat
5148e41c1a
AP_Math: Cleaned macro definitions
...
Moved Definitions into a separate header. Replaced PI with M_PI and
removed the M_PI_*_F macros.
9 years ago
Jonathan Challinger
dfab21171b
Copter: call renamed functions in AC_AttitudeControl
9 years ago
Jonathan Challinger
9d8b0f3d58
Copter: call renamed functions in AC_AttitudeControl
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Randy Mackay
50e3c2ce3a
Copter: minor comment updates
...
No functional change
9 years ago
bugobliterator
945bdee452
Copter: PILOT_VELZ_MAX and PILOT_ACCEL_Z take effect immediately
9 years ago
Leonard Hall
411e75b917
Copter: feed forward only used for AltHold, Loiter, PosHold
...
land modes use non-feedforward alt hold
9 years ago
Leonard Hall
543f6fdcd4
Copter: AltHold limits lean angle to maintain altitude
...
get_pilot_desired_lean_angles function now takes angle max parameter but
all flight modes except AltHold simply pass in the ANGLE_MAX parameter
meaning no functional change for them
10 years ago
Randy Mackay
82ad454864
Copter: log sonar_alt even when disabled
10 years ago
Randy Mackay
362a43c126
Copter: explicitly set alt_target_from_climb_rate parameter
10 years ago
Jonathan Challinger
fb82ac3eb3
Copter: rework land detector logic
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Robert Lefebvre
316196b12f
Copter: Finish RCMap fix.
...
All g.rc_X references changed to channel function pointers.
10 years ago
Andrew Tridgell
554de1f2d7
Copter: added channel objects named after input function
...
this follows the pattern used in plane and rover
10 years ago
Tom Pittenger
44fd72cb1f
Copter: compiler warning stuff
...
float to double promotion via fabs instead of fabsf
float to int via abs instead of fabsf
10 years ago
Tom Pittenger
2e191e5a3d
Copter: replace fabs() with fabsf()
10 years ago
Lucas De Marchi
b7ebff409b
ArduCopter: re-align defines after ifdef removal
...
Re-align the defines after removal of 100Hz main loop rate.
10 years ago
Lucas De Marchi
4f6c32cb35
ArduCopter: remove dangling ifdefs for 100Hz main loop
...
ArduCopter doesn't support main loop of 100Hz anymore. Remove the
missing ifdefs checking for MAIN_LOOP_RATE.
10 years ago
Andrew Tridgell
189a8fd007
Copter: removed fast_atan
10 years ago
Andrew Tridgell
b88c12ad1f
Copter: use M_PI_F instead of (float)M_PI
10 years ago
Andrew Tridgell
d8146ff3f6
Copter: revert AP_Math class change
10 years ago
Tom Pittenger
c8bc44fc6e
Copter: compile warnings: float to double. print statements require doubles
10 years ago
Tom Pittenger
20dc48ed16
Coter: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
10 years ago
Robert Lefebvre
8610da7fbc
Copter: autopilot modes to check for motor interlock status
10 years ago
Leonard Hall
33a274c928
Copter: take-off uses PosControl's add_takeoff method
...
Also balances pilot and takeoff climb rates
Also removes takeoff's direct use of poscontrol target
Combined effort of Randy and Leonard
10 years ago
Randy Mackay
6f5b5c24f2
Copter: rename tkoff_ to takeoff_
10 years ago
Jonathan Challinger
73d961cebc
Copter: mavlink initiated takeoff in alt-hold modes
...
adds PILOT_TKOFF_ALT for target altitude above home in cm for pilot initiated takeoff
10 years ago
Leonard Hall
b50f065cab
Copter: use relax alt hold controllers
10 years ago
Jonathan Challinger
91a03ae0e7
Copter: add PILOT_THR_FILT and call set_throttle_out functions with that value
10 years ago
Jonathan Challinger
b27b9dd86e
Copter: use new throttle interface
10 years ago
Jonathan Challinger
fddaca4cf7
Copter: rename get_throttle_surface_tracking to get_surface_tracking_climb_rate
10 years ago
Jonathan Challinger
ecefe78417
Copter: interpret input in stabilize as a tilt vector
10 years ago
Randy Mackay
1819bd48f4
Copter: remove home_is_set checks from Loiter, PosHold, RTL
...
This allows these flight modes to potentially operate even when the
vehicle has never had a GPS lock.
Potentially we should replace this with a check that the EKF's origin
has been set
10 years ago
Randy Mackay
4185d17915
Copter: fix to RTL, PosHold and Loiter's use of filter status
10 years ago
Randy Mackay
199dc3454d
Copter: replace GPS_ok with position_ok
...
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
10 years ago
Randy Mackay
a4f71e5946
Copter: replace inav's position_ok with get_filter_status
10 years ago
Robert Lefebvre
d7ba808400
ArduCopter: Bug fix, int8t should be uint16t.
10 years ago
priseborough
963cc4d60a
Copter: Add velocity gain scaler to interfaces
...
Allows nav gain to be scaled to compensate for optical flow noise
10 years ago
priseborough
9844dacf40
Copter: Add EKF ground speed limit to loiter speed control
...
This is required to prevent the speed controller saturating the optical flow sensor during low altitude flying.
10 years ago
Randy Mackay
1c11a91ec2
Copter: rename land_maybe_complete function
11 years ago
Randy Mackay
6951a20fb0
Copter: soften loiter target when maybe landed
...
Applies to auto's land, land, loiter, pos hold and rtl flight modes
11 years ago
Randy Mackay
52a3dc2bde
Copter: reset target alt to current alt when landed
11 years ago
lthall
9202149fb1
Copter: integrate pre-takeoff throttle feedback
...
This feature slightly revs the motors in response to the pilot's input
before takeoff AltHold, Loiter, AutoTune, PosHold and Sport flight modes
pair-programmed with Randy Mackay
11 years ago
Randy Mackay
0fc73a0a21
Copter: rename control_hybrid to poshold
11 years ago
Randy Mackay
08801eebf2
Copter: integrate AttControl's set_yaw_target_to_current_heading
11 years ago
Randy Mackay
77d5d682c1
Copter: integrate init_targets rename to relax_bf_rate_controller
...
Also remove unnecessary init_targets from flight mode init functions.
11 years ago
Randy Mackay
d5a0ca4f3c
Copter: integrate init_loiter_target name change
11 years ago