Commit Graph

333 Commits

Author SHA1 Message Date
Robert Lefebvre 316196b12f Copter: Finish RCMap fix.
All g.rc_X references changed to channel function pointers.
2015-05-25 22:13:27 +09:00
Andrew Tridgell 554de1f2d7 Copter: added channel objects named after input function
this follows the pattern used in plane and rover
2015-05-25 22:13:23 +09:00
Andrew Tridgell d8146ff3f6 Copter: revert AP_Math class change 2015-05-05 13:27:04 +10:00
Tom Pittenger 20dc48ed16 Coter: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles 2015-05-05 13:26:53 +10:00
Randy Mackay 1fa8e10fc7 Copter: fix floating point const compiler warning 2015-05-01 12:56:38 +09:00
Jonathan Challinger b10cf0f38a Copter: pre-takeoff throttle for sprung throttle sticks
Adds PILOT_THR_BHV, PILOT_TKOFF_DZ parameters
2015-05-01 12:56:16 +09:00
Jonathan Challinger e286323abc Copter: get_non_takeoff_throttle uses floats 2015-05-01 12:56:13 +09:00
Randy Mackay da629ce976 Copter: minor format fix 2015-04-29 12:03:34 +09:00
Jonathan Challinger f5fd89833d Copter: update YAW_LOOK_AHEAD to use inav velocity direction 2015-04-29 12:02:45 +09:00
Randy Mackay 37e8d1a338 Copter: PosController alt limit from fence and EKF 2015-04-24 10:58:03 +09:00
Jonathan Challinger fddaca4cf7 Copter: rename get_throttle_surface_tracking to get_surface_tracking_climb_rate 2015-04-14 16:10:01 +09:00
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
2015-03-11 22:24:44 +09:00
Jonathan Challinger ecefe78417 Copter: interpret input in stabilize as a tilt vector 2015-03-11 22:24:42 +09:00
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
2015-03-06 14:02:19 +09:00
Leonard Hall c78480e14f Copter: rename loiter_pos to pos_xy
Also renamed throttle_rate to vel_z, throttle_accel to accel_z
2015-03-06 14:02:17 +09:00
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
2015-02-12 15:07:00 +09:00
Jonathan Challinger f77b359e83 Copter: increase get_roi_yaw from 40hz to 100hz 2015-02-03 14:46:17 +09:00
Randy Mackay 84f82dd129 Copter: correct get_pilot_desired_throttle calc
Also minor format and commenting addition
2014-11-17 18:16:14 -08:00
Jonathan Challinger 3a529b2cef Copter: utilize get_control_mid for throttle calculations 2014-11-17 18:16:11 -08:00
Randy Mackay 83051c306d Copter: minor rename of a circular limits variable 2014-11-10 18:36:15 -08:00
Jolyon Saunders d46c659d0f Copter: Add circular limits pilot's roll/pitch inputs 2014-11-10 18:36:10 -08:00
Randy Mackay 818b3b74f6 Copter: sanity check throttle deadzone 2014-09-02 12:40:15 +09:00
Randy Mackay cf98cc29b5 Copter: throttle deadzone parameter
Allows increasing or decreasing the deadband size in AltHold, Loiter,
PosHold flight modes
2014-08-29 15:54:34 +09:00
Randy Mackay 6fc5014a84 Copter: increase sonar timeout to 1sec
Contributed by Julien Dubois.
2014-08-14 19:37:00 +09:00
Randy Mackay 610e747f27 Copter: minor formatting fix 2014-08-04 21:04:10 +09:00
lthall edd7334544 Copter: add pre_takeoff throttle feedback
pair-programmed with Randy Mackay
2014-07-18 11:41:28 +09:00
Ju1ien fd9502d3fa Copter: Improve surface tracking dynamics
This little fix will allow much higher sonar_gain without the
oscillating effect it used to bring.
2014-06-06 15:32:49 +09:00
Andrew Tridgell 640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Randy Mackay 3910ab807f Copter: replace input filtering with smoothing gain 2014-03-04 22:23:50 +09:00
Randy Mackay fdae812814 Copter: DO_SET_ROI persists across waypoints
Users should add a DO_SET_ROI command with zero lat, lon and alt to
restore the yaw control to the default control (which is normally
look-at-next-wp)
2014-02-18 21:36:02 +09:00
Randy Mackay 5e8fede19e Copter: comment fix to Attitude.pde 2014-02-15 05:27:50 +11:00
Randy Mackay 38d5148b99 Copter: remove reset_I_all
Each controller should reset the I terms as needed
2014-02-15 05:27:47 +11:00
Randy Mackay 90c5fe4be4 Copter: surface_tracking takes current_alt_target param 2014-02-15 05:27:46 +11:00
Randy Mackay 223c6fd4de Copter: remove deadwood, update_thr_cruise always runs 2014-02-15 05:27:45 +11:00
Randy Mackay c632211c8c Copter: get_of_roll, get_of_pitch moved to control_ofloiter 2014-02-15 05:27:42 +11:00
Randy Mackay 96c61fcf28 Copter: removed get_throttle_land
Now in the control_land.pde
2014-02-15 05:27:38 +11:00
Randy Mackay d92e894af6 Copter: get_throttle_surface_tracking returns climb rate 2014-02-15 05:27:37 +11:00
Randy Mackay 65f7bf92f4 Copter: replace yaw_mode with auto_yaw_mode 2014-02-15 05:27:37 +11:00
Randy Mackay b29a963fd6 Copter: remove unused Attitude.pde functions 2014-02-15 05:27:36 +11:00
Randy Mackay b34664ea07 Copter: remove unused altitude error 2014-02-15 05:27:34 +11:00
Randy Mackay abb42bcb41 Copter: remove unused run_rate_controllers 2014-02-15 05:27:34 +11:00
Randy Mackay 77c38f4de4 Copter: integrate init take-off 2014-02-15 05:27:34 +11:00
Randy Mackay faf1e99f1a Copter: surface tracking to use pos_control 2014-02-15 05:27:33 +11:00
Randy Mackay 7784fc7645 Copter: update pos_control's hover throttle 2014-02-15 05:27:33 +11:00
Randy Mackay cbe56bba25 Copter: integrate AC_AttitudeControl 2014-02-15 05:27:32 +11:00
Randy Mackay 7b9a48107e Copter: move angle_max parameter to AP_Vehicle 2014-02-15 05:27:32 +11:00
Randy Mackay 2219f21744 Copter: add RC_FEEL_RP parameter
Values from 0 ~ 100 control amount of filtering on roll and pitch input.
100 = no filter so crisp feel, 0 = a lot of filtering so very sluggish
response
2014-02-12 16:28:41 +09:00
Randy Mackay 8f5585423c Copter: use ahrs trig values 2014-02-08 18:16:49 +09:00
Ju1ien 311bba1419 Copter: landing_complete stays true until thr is raised
The idea of the fix is we can't leave land while throttle is 0 and then
we ignore the baro and it's disturbances.
2014-01-22 14:38:35 +09:00
Randy Mackay a9f1a2ee5e Copter: disarm on land even if pilot throttle not zero
default behaviour remains as before, this is an compile time option only
2014-01-15 11:31:00 +09:00