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
Randy Mackay
7e11ec9a6f
Copter: surf tracking, do-land use inav alt
...
Also CTUN logging of inav alt switched to get directly from inertial nav
lib instead of using current_loc.alt
10 years ago
Jonathan Challinger
f77b359e83
Copter: increase get_roi_yaw from 40hz to 100hz
10 years ago
Randy Mackay
84f82dd129
Copter: correct get_pilot_desired_throttle calc
...
Also minor format and commenting addition
10 years ago
Jonathan Challinger
3a529b2cef
Copter: utilize get_control_mid for throttle calculations
10 years ago
Randy Mackay
83051c306d
Copter: minor rename of a circular limits variable
10 years ago
Jolyon Saunders
d46c659d0f
Copter: Add circular limits pilot's roll/pitch inputs
10 years ago
Randy Mackay
818b3b74f6
Copter: sanity check throttle deadzone
11 years ago
Randy Mackay
cf98cc29b5
Copter: throttle deadzone parameter
...
Allows increasing or decreasing the deadband size in AltHold, Loiter,
PosHold flight modes
11 years ago