Commit Graph

45 Commits

Author SHA1 Message Date
Robert Lefebvre aff98e34e5 TradHeli: Force recalc scalers after setting main loop time in MotorsHeli so that ramp scalers are right for 32-bit. 2014-07-13 17:11:25 +09:00
Robert Lefebvre c7ccd22d96 TradHeli: Set main loop rate time in motors class. 2014-07-08 20:18:24 +09:00
Robert Lefebvre 7ef4c11c92 TradHeli: Initialize Rate FF filters. 2014-07-08 20:18:16 +09:00
Robert Lefebvre 8eb557d1e0 TradHeli: Add Heli.h file 2014-07-08 20:18:10 +09:00
Robert Lefebvre 08e135151a TradHeli: Add Mode Filter on RC8 input for RSC Controller. 2014-07-08 20:18:00 +09:00
Robert Lefebvre ff71b0fa35 TradHeli: Create new function to move data between AP_MotorsHeli and AP_AttitudeControl. 2014-07-08 20:17:57 +09:00
Randy Mackay b37b0c5061 TradHeli: remove use of throttle_mode 2014-02-15 05:27:47 +11:00
Randy Mackay 91124bcf8b TradHeli: remove get_heli_rate_yaw from main code 2014-02-15 05:27:43 +11:00
Randy Mackay 3b0de0d23d Copter: integrate trad heli AttControl 2014-02-15 05:27:43 +11:00
Randy Mackay df9d1614e2 Copter: remove PID logging
Almost never used and eats up limited log description space
2014-01-13 17:23:39 +09:00
Robert Lefebvre 794890884c TradHeli: enable Landing Collective when we are not moving
This prevents full negative pitch when touching down in Alt Hold or Auto-Landing.
2014-01-10 10:50:58 +09:00
Randy Mackay 9485363c53 TradHeli: dynamic flight speed minimum to 5m/s 2013-11-16 16:58:14 +09:00
Randy Mackay 8c9ab50ba2 TradHeli: restore CC_COMP and PIRO_COMP 2013-11-15 22:58:43 +09:00
Randy Mackay c9c803ffd4 TradHeli: move STAB_COL_MIN to main parameter list 2013-11-15 22:58:32 +09:00
Randy Mackay 197fc67897 TradHeli: move pilot desired rotor speed to heli.pde 2013-11-15 22:58:24 +09:00
Randy Mackay 527f05ddec Copter: remove unused init_rate_controllers 2013-11-15 22:58:22 +09:00
Robert Lefebvre 232a116973 TradHeli: Use Leaky Integrator on Yaw Rate controller
Use when rotor is not running to prevent the rudder from slowly moving over
2013-11-15 22:58:02 +09:00
Randy Mackay 3ce16113b5 TradHeli: use landing collective when landed or landing 2013-11-15 22:58:00 +09:00
Randy Mackay 34fb70cfc7 TradHeli: formatting and param description changes 2013-11-15 22:57:45 +09:00
Randy Mackay 46118b59d7 TradHeli: integrate motor lib changes 2013-11-15 22:57:43 +09:00
Randy Mackay 8f2c9591ff TradHeli: dynamic_flight flag based on inertial nav speed
Created new heli.pde for heli_integrated_swash and check_dynamic_flight
2013-11-15 22:57:20 +09:00
rmackay9 998058ec07 ArduCopter - removed unused motor pde files including heli.pde, motors_hexa.pde, motors_octa.pde, motors_octa_quad.pde, motors_tri.pde and motors_y6.pde 2012-04-04 23:06:12 +09:00
Robert Lefebvre be3fe36c52 Small fix on the Traditional Helicopter Collective-Yaw compensation calculation. 2012-03-15 20:14:18 -04:00
Robert Lefebvre a480b32400 Added support for TradHeli H1 swashplate type. Added new param heli_h1_swash_enabled.
Signed-off-by: Robert Lefebvre <robert.lefebvre@gmail.com>
2012-03-03 08:14:14 -05:00
Andrew Tridgell 0ff44563ec ACM: use g.rc_speed for all APM_RC.SetFastOutputChannels calls 2012-03-02 17:57:08 +11:00
Robert Lefebvre e49c2d2871 Rescale TradHeli roll_out and pitch_out into the min and max ranges to provide linear motion across the input range instead of stopping when the input hits the constrain value. These calculations are based on an assumption of the user specified roll_max and pitch_max coming into this equation at 4500 or less, and based on the original assumption of the total g.heli_servo_x.servo_out range being -4500 to 4500.
Signed-off-by: Robert Lefebvre <robert.lefebvre@gmail.com>
2012-03-01 22:04:50 -05:00
Randy Mackay 232359186e TradHeli - fixed small parameter bug affecting helis. The servo parameters were declared as GSCALAR instead of GGROUP in Parameters.pde.
also renamed heli parameters from _coll_ to the more descriptive _collective_
2012-02-18 20:57:51 +09:00
Randy Mackay 498970a948 TradHeli - tiny fix for yaw_offset. Yaw_offset is used to proactively counteract rotational force caused by changing the collective pitch (i.e. rapidly climbing or decending). There was a small bug for when the collective pitch is negative (i.e. powered decent) in which case the offset was in the incorrect direction. 2012-02-05 11:04:38 +09:00
Randy Mackay 693a2cfdcd TradHeli - fix to servo limits. They had been unnecessarily limited to the collective pitch's min and max but actually there are cases (for example when the swash is leaning over 45degrees) where one servo goes well beyond the collective pitch's min or max. 2012-01-29 21:14:37 +09:00
Pat Hickey 6c03307217 ArduCopter Heli: add motors_output_enable function 2012-01-25 22:41:09 -08:00
Pat Hickey a19afd926a APM_RC & ArduCopter: Change interface to SetFastOutputChannels to use _BV
* Every use of MSK_CH_n changed to _BV(CH_n)
* Easier to read, and will allow CH_n to be parameterized without needing
  a separate macro expansion for the MSK value.
2012-01-09 21:57:01 -08:00
Jason Short 37cda3c364 Cosmetic 2012-01-04 09:28:36 -08:00
Randy Mackay 68e6be5eeb TradHeli - fixed roll/pitch so it's not scaled when throttle is scaled 2011-12-08 21:30:47 +09:00
Pat Hickey eee2da01ac Arducopter: each motors_ pde uses APM_RC.SetFastOutputChannels 2011-11-25 20:00:18 -08:00
Randy Mackay f397bae793 ArduCopter Alt Hold - Change to not run get_nav_throttle if manually adjusting altitude with manual_boost - removes possibility of I term running up
Tuning - added ability to modify altitude (position, not rate) controller
TradHeli - Fairly large change to how throttle is scaled and collective moves.
2011-11-20 22:30:42 +09:00
Randy Mackay c8d2341156 TradHeli - automatically reinitialise swash plate if HSV_MAN is switched from 1 to 0.
Turn-off feed forward correction to yaw based on collect when in HIL mode.
2011-11-17 20:43:07 +09:00
Randy Mackay 2112f74324 TradHeli - reversed the direction of "phase angle" to make it more intuitive. This parameter is used to correct for a heli's tendency to lean left or right when the pilot gives it a pitch forward command. 2011-11-13 22:40:46 +09:00
Randy Mackay 70aadd4afc TradHeli - added two parameters to improve heli control.
heli_phase_angle allows pilot roll/pitch command to be translated into mixed roll and pitch.
heli_coll_yaw_effect mixes some collective into the yaw so tail can counter act collective movements more easily.
2011-11-13 22:20:57 +09:00
unknown a7038cbaf9 TradHeli - new parameter HSV_MAN to allow better set-up from APMissionPlanner. Also changed swash movement to use radio_out which fixes some setup bugs 2011-11-12 23:23:07 +09:00
unknown 12f5f3f96e TradHeli - fix to allow tail servo to be reversed. Also increase max movement of tail servo to 45 degrees. 2011-11-05 12:31:30 +08:00
unknown ea66c74ff0 TradHeli - added throttle scaling and heli specific angle_boost function that takes into account that heli's main blades can have -ve pitch. 2011-10-29 17:27:43 +09:00
Jason Short 142707711e Updates to guided mode from Michael O.
removed or commented unused static vars
2011-10-15 13:09:04 -07:00
rmackay9 b5ea05698e TradHeli - added servo averaging to allow support of analog servos
- moved heli parameters to 80 because they were causing flight modes to overlap with waypoints
2011-09-25 16:51:25 +09:00
rmackay9 ddb4de1949 TradHeli - fix to set motor_auto_armed = true if throttle > 0. Required to let ALT_HOLD work! 2011-09-25 12:30:37 +09:00
Andrew Tridgell 1456a2a912 renamed top level directories
ArduCopterMega -> ArduCopter
added archives directory for old code
2011-09-09 11:27:41 +10:00