Randy Mackay
35864c6226
Copter: move check_ekf_reset to ekf_check.cpp
...
No functional change
8 years ago
Randy Mackay
f4fee69f29
Copter: add div-by-zero check to get_pilot_desired_throttle
...
This divide by zero is only possible if there was a coding error in the setup of the throttle channel but added to make Covarity happy
9 years ago
Randy Mackay
c3d71f733c
Copter: remove get_takeoff_trigger_throttle
...
get_pilot_desired_climbrate can be used instead.
9 years ago
Randy Mackay
d1e257d5b6
Copter: remove unused get_throttle_pre_takeoff
9 years ago
Randy Mackay
b61ae1a4a1
Copter: log EKF yaw reset event
9 years ago
Leonard Hall
7d54c268f6
Copter: consolidate input_euler_angle calls to use smoothing gain
...
Previously we had _smooth and non-smooth methods in the attitude
controller but as part of the move to quaternions these have been replaced
by a single call which always takes a smoothing gain
9 years ago
Leonard Hall
48eb4cf674
Copter: remove THR_MID
9 years ago
Leonard Hall
e9d8a28ec0
Copter: AP_Motor's throttle_hover replaces throttle_average
9 years ago
Randy Mackay
8171532dc5
Copter: allow rangefinder to be disabled from definition
9 years ago
Randy Mackay
5ac13c0355
Copter: move rangefinder variables into structure
...
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
9 years ago
Randy Mackay
7689315ba2
Copter: rename sonar to rangefinder
9 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Randy Mackay
a5c55c3fbd
Copter: fix get_non_takeoff_throttle
...
The throttle_mid parameter (for historic reason) is interpreted as a value that includes throttle_min. This means we must subtract the throttle_min value from it when converting it to a throttle in the 0 to 1 range.
9 years ago
Randy Mackay
3c3b74adc8
Copter: remove slow_start from takeoff
9 years ago
Leonard Hall
7bcdc76655
Copter: get_pilot_desired_climb_rate accepts control_in as 0 to 1000
...
Previously the input was expected to be throttle_min (i.e. 130) to 1000
9 years ago
Leonard Hall
20debc962a
Copter: update get_throttle_pre_takeoff for 0 to 1 range
9 years ago
Leonard Hall
37e6977813
Copter: update get_non_takeoff_throttle for 0 to 1 range
9 years ago
Leonard Hall
74983669be
Copter: set_accel_throttle_I_from_pilot_throttle uses 0 to 1 range
9 years ago
Leonard Hall
f8d7b677d4
Copter: update_thr_average uses 0 to 1 range
9 years ago
Leonard Hall
fd2509f6ed
Copter: get_pilot_desired_throttle outputs in 0 to 1 range
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
Randy Mackay
317779f976
Copter: check_ekf_yaw_reset uses ahrs method
10 years ago
Jonathan Challinger
e47175862a
Copter: use modified getLastYawResetAngle function
10 years ago
Andrew Tridgell
2470cf0e76
Copter: use resetHeightDatum() and getLastYawResetAngle()
10 years ago
Leonard Hall
0129110502
Copter: limit throttle mid to throttle min + 50
10 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
b781f85948
Copter: convert fn from body-frame to NE
10 years ago
Andrew Tridgell
149b6bffba
Copter: fixed comment on get_pilot_desired_yaw_rate
10 years ago
Randy Mackay
5baf98bcfc
Copter: no get_throttle_pre_takeoff for TradHeli
10 years ago
Randy Mackay
814edfa457
Copter: shift yaw target if ekf yaw estimate resets
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
70a9a5699c
Copter: usage of rc_3.servo_out to use motors.get_throttle
...
servo_out is no longer a data holder for control functions
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
Andrew Tridgell
d8146ff3f6
Copter: revert AP_Math class change
10 years ago
Tom Pittenger
20dc48ed16
Coter: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
10 years ago
Randy Mackay
1fa8e10fc7
Copter: fix floating point const compiler warning
10 years ago
Jonathan Challinger
b10cf0f38a
Copter: pre-takeoff throttle for sprung throttle sticks
...
Adds PILOT_THR_BHV, PILOT_TKOFF_DZ parameters
10 years ago
Jonathan Challinger
e286323abc
Copter: get_non_takeoff_throttle uses floats
10 years ago
Randy Mackay
da629ce976
Copter: minor format fix
10 years ago
Jonathan Challinger
f5fd89833d
Copter: update YAW_LOOK_AHEAD to use inav velocity direction
10 years ago
Randy Mackay
37e8d1a338
Copter: PosController alt limit from fence and EKF
10 years ago
Jonathan Challinger
fddaca4cf7
Copter: rename get_throttle_surface_tracking to get_surface_tracking_climb_rate
10 years ago
Randy Mackay
0447f6216a
Copter: get_pilot_desired_lean_angles uses angle_max of at least 10deg
...
Removes the unlikely event of a divide by zero if ANGLE_MAX is set to
zero and sticks were in middle
10 years ago
Jonathan Challinger
ecefe78417
Copter: interpret input in stabilize as a tilt vector
10 years ago
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
10 years ago
Leonard Hall
c78480e14f
Copter: rename loiter_pos to pos_xy
...
Also renamed throttle_rate to vel_z, throttle_accel to accel_z
10 years ago