Pierre Kancir
8ef5067e12
AP_Motors: MotorsHeli_Single utilize an explicit type cast to avoid the loss of a fractional part.
8 years ago
Peter Barker
06b616f761
AP_Motors: add missing parameter metadata
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
7cd7f03d56
AP_Motors: fixed use of trim on heli servos
...
this was broken by the servo range 0 to 1 changes
8 years ago
Andrew Tridgell
270fa95a8d
AP_Morors: scale colyaw to match previous behaviour
...
this was missed in the motor scaling changes. Thanks to Rob for
noticing this.
9 years ago
Andrew Tridgell
11975223dd
AP_Motors: added H_RSC_POWER_NEGC and H_RSC_SLEWRATE
...
this gives more control over throttle for petrol
helis. H_RSC_POWER_NEGC allows for a asymmetric V-curve, which allows
for less power being put into the head when landing or when sitting on
the ground. That can lead to significantly less vibration and chance
of ground oscillation. A heli not being flown with aerobatics does not
need to use high throttle at negative collective pitch.
The H_RSC_SLEWRATE allows for a maximum throttle slew rate to be
set. Some petrol motors can cut if the throttle is moved too
quickly. We had this happen at a height of 6m when switching from
ALT_HOLD to STABILIZE mode. It also lowers the chance of the blades
skewing in their holders with the sudden change of power when the heli
is disarmed. In general it is a bad idea to do instantaneous large
movements of a IC engine throttle.
9 years ago
Andrew Tridgell
7a9b4c7572
AP_Motors: fixed motor load calculation
...
scale to 1.0 for max collective
9 years ago
Andrew Tridgell
f58d837026
AP_Motors: fixed heli RSC output range and float conversion
...
adds H_RSC_PWM_MIN, H_RSC_PWM_MAX and H_RSC_PWM_REV
9 years ago
Ricardo de Almeida Gonzaga
2802775e7d
AP_Motors: Fix typos
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
c4b88aafef
AP_MotorsHeli: swash and tail servo objects moved into class
9 years ago
Randy Mackay
b5593431bf
AP_MotorsHeli_Single: replace collective_mid_pwm with collective_mid_pct
9 years ago
Randy Mackay
a39bbc5421
AP_MotorsHeli: servo_test in range -1 to 1
9 years ago
Randy Mackay
e1e4e37c92
AP_MotorsHeli_Single: use RSC class's get_idle_output function
...
No functional change
9 years ago
Randy Mackay
2cdc5da226
AP_MotorsHeli_Single: rotor speed functions in 0 to 1 range
9 years ago
Randy Mackay
68945df45d
AP_MotorsHeli_Single: write_aux uses 0 to 1 range
9 years ago
Randy Mackay
f2fc39943e
AP_MotorsHeli_Single: remove unused delta_phase_angle
9 years ago
Randy Mackay
27fed39671
AP_MotorsHeli_Single: remove roll_scalar, pitch_scalar
9 years ago
Randy Mackay
71866be652
AP_MotorsHeliSingle: move_yaw in -1 to +1 range
9 years ago
Randy Mackay
f6120b801b
AP_MotorsHeliSingle: move_actuators in -1 to +1 range
9 years ago
Leonard Hall
879e12ba43
AP_MotorsHeli_Single: roll, pitch, yaw input in -1 to +1 range
9 years ago
Leonard Hall
d2a1cdf906
MotorsHeli: replace throttle_control_input with throttle_in
...
throttle_control_input was 0 to 1000 range, throttle_in is 0 to 1
9 years ago
Peter Barker
a66da7be00
AP_Motors: correct parameter documenation
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
Andrew Tridgell
7c9ee9363b
AP_Motors: added rc_map_mask() function
9 years ago
Andrew Tridgell
dfccf8f713
AP_Motors: also wrap set_freq and enable_ch for motor mapping
9 years ago
Andrew Tridgell
d31ba2b380
AP_Motors: added rc_write function
...
this is intended to make remapping motors and rescaling output easier
9 years ago
Andrew Tridgell
79c90d37f6
AP_Motors: apply HELI_RSC output type if available
9 years ago
Don Gagne
ed7cd8d3f4
AP_Motors: fix invalid Range meta data
9 years ago
Robert Lefebvre
3a13db9333
AP_MotorsHeli: Add more parameter checks.
9 years ago
Andrew Tridgell
47b9f6598a
AP_Motors: allow change to heli rotor speed controls while armed
...
this helps a lot with tuning for gas helis
9 years ago
Robert Lefebvre
b89b0d7f9e
AP_MotorsHeli_Single: Move Servo_Test static variables to be class members
9 years ago
Robert Lefebvre
bb7f8c1999
AP_MotorsHeli: Create Servo Test functionality
9 years ago
Robert Lefebvre
eeb544d098
AP_MotorsHeli: Create SV_MAN=5=Oscillate servo setup mode.
9 years ago
Robert Lefebvre
22729e6927
AP_MotorsHeli: Change servo manual #defines into enum
9 years ago
Robert Lefebvre
750728fa1e
AP_MotorsHeli_Single: Add motor enable aux output functionality
9 years ago
Jolyon Saunders
ca28a49fa6
AP_Motors: Circular swash-plate limits for AP_MotorsHeli
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Randy Mackay
ca942f39dd
AP_Motors_Heli: remove unused allow_arming check
9 years ago
Lucas De Marchi
f43f6c53f7
AP_Motors: Group writes to motors
...
Surround calls to rcout->write() with rcout->cork() and rcout->push().
If the RCOutput implementation allows the writes are grouped and only
sent together to the underlying hardware.
9 years ago
Lucas De Marchi
43268b9822
AP_MotorsHeli: get rid of _motor_to_channel_map
9 years ago
Andrew Tridgell
9da2b2b430
AP_Motors: added H_GYR_GAIN_ACRO
10 years ago
Randy Mackay
e3ff4ed9c4
MotorsHeli: integrate RotorControlState
10 years ago
Robert Lefebvre
bde43412d8
AP_MotorsHeli: Fix RSC Mode 3
10 years ago
Robert Lefebvre
38ccd6e04f
AP_MotorsHeli_RSC: Fix tail_type control
10 years ago
Robert Lefebvre
535da1d79a
AP_MotorsHeli_Single: DDVPT to use it's own ramp and runup times
10 years ago
Robert Lefebvre
28318c4116
AP_MotorsHeli: Move Output functions into parent class
10 years ago
Robert Lefebvre
84102c3e3f
AP_MotorsHeli: Rework how servo setup is done.
10 years ago
Robert Lefebvre
345663f705
AP_MotorsHeli: Simplify servo init/reset
10 years ago
Robert Lefebvre
b11600aebe
AP_MotorsHeli: Move set_delta_phase_angle into _Single class
10 years ago